-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add electron-packager examples #137
Comments
create new folder in app such as imgs, and then add icon both ico and icns "buildAll": "electron-packager ./app --all --out ./OutApp --version 1.4.6 --overwrite --icon=./app/imgs/logo.ico", "buildWin": "electron-packager ./app --platform=win32 --arch=ia32,x64 --out ./OutApp --version 1.4.6 --overwrite --icon=./app/imgs/logo.ico", "buildMac": "electron-packager ./app --platform=mas --arch=x64 --out ./OutApp --version 1.4.6 --overwrite --icon=./app/imgs/logo.icns", |
Hello and thank you for the example scripts. I am trying to use the buildWin script you provided, leaving off the icon as I'm having troubles with that for now. This allows the build to complete. But when i run the created exe, I keep getting the error below. The error message 'SyntaxError: Unexpected token import' indicates that the javascript interpreter isn't groking import (es5 feature I think). This app has been working fine when started with
|
I was able to get this working by copying package.json into app folder and changing a line
to
here is my script entry:
|
electron-builder seems more straightforward to use |
Maybe this issue can be closed in favor of #115? |
eg.
The text was updated successfully, but these errors were encountered: