Last active
July 14, 2018 11:19
-
-
Save pascalwacker/1890fada34b60c9b95175f83b0f0b14f to your computer and use it in GitHub Desktop.
Create Electron Executables (on Linux)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##################################################### | |
# Replace these: # | |
# # | |
# replace "your-name" at --executable-name # | |
# replace "/path/to" at --icon # | |
# # | |
# Create Icons: # | |
# https://www.npmjs.com/package/electron-icon-maker # | |
##################################################### | |
echo "build linux" | |
electron-packager ./ --executable-name=your-name --platform=linux --arch=ia32 --icon=/path/to/icons/png/1024x1024.png --out=release-builds --overwrite | |
electron-packager ./ --executable-name=your-name --platform=linux --arch=x64 --icon=/path/to/icons/png/1024x1024.png --out=release-builds --overwrite | |
echo "build windows" | |
electron-packager ./ --executable-name=your-name --platform=win32 --arch=ia32 --icon=/path/to/icons/win/icon.ico --out=release-builds --overwrite | |
electron-packager ./ --executable-name=your-name --platform=win32 --arch=x64 --icon=/path/to/icons/win/icon.ico --out=release-builds --overwrite | |
echo "build mac" | |
electron-packager ./ --executable-name=your-name --platform=darwin --arch=x64 --icon=/path/to/icons/mac/icon.icns --out=release-builds --overwrite |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If any one has an idea how to automatically pack the windows output in a single
.exe
executable to ship, please let me know!