Closed skaynetmen closed 8 years ago
Binary modules will not work if packaged to any archive.
Binary modules will not work if packaged to any archive.
Yes, I understand, but this is an package for os x
this is an package for os x
i.e. bundle
in Apple terms.
It's just folder, so look inside, and check all binary modules are there.
i.e. bundle in Apple terms. It's just folder, so look inside, and check all binary modules are there.
I replaced webchimera's files in electron.app and everything starts to work. Thank you!
I have the same problem in OSX . I can't understand your answer.
I am not found bundle
. What should I do ? @skaynetmen @RSATom
This is contents of electron.app .
@heuuLZP
Contents/Resources/app/node_modules/wcjs-prebuilt/
I know this folder 'Contents/Resources/app/node_modules/wcjs-prebuilt/' , and then ?
It's hard to explain in details, but usually problem is in symlinks inside lib folder. So just extract files from archive for Mac OS X from releases page
@heuuLZP Download WebChimera.js_v0.2.7_electron_v1.4.13_VLC_v2.2.4_x64_osx.tar.gz from https://github.com/RSATom/WebChimera.js/releases and replace files in Contents/Resources/app/node_modules/wcjs-prebuilt/bin/
Before asking questions ,I download WebChimera.js_v0.2.7_electron_v1.4.13_VLC_v2.2.4_x64_osx.tar
。
Just now I replaced the contents of the folder bin
, it's work !
thank you very much.
@skaynetmen Hi , I have a question , can you help me ?
Now I need to package the app to app.asar , you know the asar is can't open , so I can't replace these vlc's files.
Very large package using electron-package , so I using electron-builder ,and pack to dmg , but it's no app filder .
Hi @heuuLZP
https://github.com/electron/asar
npm install -g asar
asar extract /path/to/app.asar ~/tmp
replace bin files in ~/tmp
asar pack ~/tmp ~/app.asar
cp ~/app.asar /path/to/app.asar
I understand your solution , but there have some questions about your answer.
first
second
You know the app.dmg can use after install , I want to make the app.dmg is normal work.
Have you tried to replace the files in the project folder before packaging?
If it still did not work, then there are 2 ways: Do dmg manually, or try using the afterPack/beforeBuild callback function in https://github.com/electron-userland/electron-builder/wiki/Options#Config
Or Options.Config
asar: false, extraResources: [ //list webchimera bin files FilePattern ]
YES. I had try that . It's has replaced files inner asar . It's not work .
I want to only the asar , don't have app folder, but can't work .
I have an important question . The asar is not secrecy ,because people can use asar extract /path/to/app.asar ~/tmp
to get resource .
Yes it is. Anyone can access the app files if they want to)
If I start Electron without compilation - it works perfect. But if I compile it with electron-packager - player doesn't work and shows the black screen.
OS X 10.10.5 electron 1.2.6 wcjs-player 6.0.1 wcjs-prebuilt 3.0.0
a similar problem https://github.com/jaruba/wcjs-player/issues/21