Coder Social home page Coder Social logo

Comments (3)

vikrantpogula avatar vikrantpogula commented on August 11, 2024

Ok I seem to have figured out the issue by comparing with the prebuilt versions available here https://github.com/atom/electron/releases

It seems npm install -g electron-prebuilt is not including a default .asar archive (in this case atom.asar) in the resources folder. The following 2 folders are missing from the npm-install version and the .zip from electron releases page

 - resources
 - locales

Is this difference between the two intended ?
Might just be a issue with unzipping in electron-download

from electron-prebuilt.

mal avatar mal commented on August 11, 2024

Seems this is not exclusive to Windows, just got it on linux x64. Culprit looks to be the recent bump to the extract-zip module, it doesn't seem to extract directories correctly for the electron zips. Filed an issue: max-mapper/extract-zip#10.

[email protected]

 $ npm install

 > [email protected] postinstall /home/mal/code/mal/photon/node_modules/electron-prebuilt
 > node install.js

 [email protected] node_modules/extract-zip
 ├── [email protected]
 ├── [email protected]
 ├── [email protected] ([email protected], [email protected])
 ├── [email protected] ([email protected])
 └── [email protected] ([email protected], [email protected], [email protected])

 $ ll dist/
 total 93956
 -rw-r--r-- 1 mal mal  8743327 Sep 16 08:48 content_shell.pak
 -rwxr-xr-x 1 mal mal 58922768 Sep 16 08:48 electron
 -rw-r--r-- 1 mal mal 10206624 Sep 16 08:48 icudtl.dat
 -rw-r--r-- 1 mal mal   520152 Sep 16 08:48 libgcrypt.so.11
 -rwxr-xr-x 1 mal mal 16765152 Sep 16 08:48 libnode.so
 -rw-r--r-- 1 mal mal    31256 Sep 16 08:48 libnotify.so.4
 -rw-r--r-- 1 mal mal     1055 Sep 16 08:48 LICENSE
 -rw-r--r-- 1 mal mal   410849 Sep 16 08:48 natives_blob.bin
 -rw-r--r-- 1 mal mal   587068 Sep 16 08:48 snapshot_blob.bin
 -rw-r--r-- 1 mal mal        7 Sep 16 08:48 version

[email protected]

 $ npm install
 -
 > [email protected] postinstall /home/mal/code/mal/photon/node_modules/electron-prebuilt
 > node install.js

 [email protected] node_modules/extract-zip
 ├── [email protected]
 ├── [email protected]
 ├── [email protected]
 ├── [email protected] ([email protected], [email protected])
 ├── [email protected] ([email protected])
 ├── [email protected] ([email protected], [email protected], [email protected])
 └── [email protected] ([email protected], [email protected])

 $ ll dist
 total 93964
 -rw-r--r-- 1 mal mal  8743327 Sep 16 08:47 content_shell.pak
 -rwxr-xr-x 1 mal mal 58922768 Sep 16 08:47 electron
 -rw-r--r-- 1 mal mal 10206624 Sep 16 08:47 icudtl.dat
 -rw-r--r-- 1 mal mal   520152 Sep 16 08:47 libgcrypt.so.11
 -rwxr-xr-x 1 mal mal 16765152 Sep 16 08:47 libnode.so
 -rw-r--r-- 1 mal mal    31256 Sep 16 08:47 libnotify.so.4
 -rw-r--r-- 1 mal mal     1055 Sep 16 08:47 LICENSE
+drwxrwxr-x 2 mal mal     4096 Sep 16 08:47 locales
 -rw-r--r-- 1 mal mal   410849 Sep 16 08:47 natives_blob.bin
+drwxrwxr-x 3 mal mal     4096 Sep 16 08:47 resources
 -rw-r--r-- 1 mal mal   587068 Sep 16 08:47 snapshot_blob.bin
 -rw-r--r-- 1 mal mal        7 Sep 16 08:47 version

from electron-prebuilt.

max-mapper avatar max-mapper commented on August 11, 2024

Thanks for the detailed bug reports, the issue has been fixed with extract-zip 1.1.1, so reinstalling electron-prebuilt should get the new working version

from electron-prebuilt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.