Comments (11)
thanks for the bug report! heres the line of code we're calling in the implementation for reference https://github.com/maxogden/electron-packager/blob/554f3b735483319450c2ad8d0e0cba90e041ebe2/common.js#L10, it's pretty weird the asar
file that you get is empty.
I or another maintainer will try and reproduce when we get a chance
from electron-packager.
This sounds like a similar problem to what #73 is trying to solve. Apparently it's an issue on more than a single platform. It certainly looks as if mac.js
is already adding Resources
to the path, and then asarApp
is adding resources
again, which is wrong.
from electron-packager.
@kfranqueiro yep. On windows the app is packaged at /path/to/app/resources
but electron-packager
adds another resources
path component. This probably happened by porting the os x code to windows. The OS X app generates the resources folder under the MyApp.app/Resources
which does not exists on windows.
from electron-packager.
Seems like problems got introduced in 8134009
from electron-packager.
8134009#diff-a16e9b0497c5d6579f17c2c139cb3abaL140 was modified to append resources
but some file operations did not take this into considerations.
from electron-packager.
Yeah, sorry about that. Give me a second to revert the behavior.
from electron-packager.
from electron-packager.
@masom #73 is not quite right in the Mac code, it adds an extra folder.
@enkows please test 178b3d4 with a Mac build, it reverted the behavior to what it was before my refactoring.
from electron-packager.
@malept 178b3d4 works for us on both windows and OS X
from electron-packager.
The Mac code should be fine now, as it already adds Resources
on its side of the code.
Edit: ah, sorry, now I see what you were referring to in the original PR.
from electron-packager.
@malept @masom
178b3d4 fixed the path issue, but the app.asar
still has a problem.
$ cp electron/Electron.app/Contents/Resources/app.asar app.asar
$ asar list app.asar
/app.asar
$ asar extract app.asar app/app.asar
$ asar list app/app.asar
/package.json
/index.html
/main.js
It seems like the .asar file packaged twice.
UPDATE:
It's works fine now!
I wrote some scripts to solve the path problem before. After I remove those scripts, it works fine.
Thanks!
from electron-packager.
Related Issues (20)
- Using sqlite3, it appears that the sqlite3 module is not found after compilation. HOT 4
- Package an Electron app on an Apple Silicon chip for Windows with Electron Packager HOT 1
- electron-packager does not recognize 64-bit wine installations that do not include the wine64 command HOT 2
- Preserve file attributes while copying with 'extra-resource' option HOT 2
- `--arch=all` broken on macOS
- parallel download race condition errors out with: dest already exists HOT 2
- --win32metadata.requested-execution-level=requireAdministrator Can't create shortcut desktop app when install app after build. HOT 1
- Error: spawn /usr/bin/node ENOENT when launching a process with child_process.spawn from app packaged with electron-packager HOT 6
- risc-v is not supported HOT 2
- Mac OS Arm64 is corrupted when built on Linux 64
- The link to API documentation is broken HOT 3
- Electron Packager 18.1.2 breaks electron-forge HOT 2
- EPERM: operation not permitted, rmdir <path> HOT 1
- Unable to read preload script cdv-electron-preload.js HOT 2
- App crashes on MAS after uploading correctly app
- error when packageConfig.tmpdir set to false HOT 4
- Provide an option to preserve the state of the node_modules when packaging HOT 2
- Incorrect error message when --out is set to the folder containing the entry point HOT 1
- API regression: default is not a function in 18.1.2 HOT 2
- Publish version 17 to npm HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from electron-packager.