Created
October 13, 2018 19:51
-
-
Save gurkanakdeniz/2801281da4dbe2cbe3e663ba8d5fcc59 to your computer and use it in GitHub Desktop.
Electron framework packaging
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
# for use in npm scripts | |
npm install electron-packager --save-dev | |
# for use from cli | |
npm install electron-packager -g | |
#projenin olduğu yerde | |
npm install --save-dev electron | |
package.json | |
{ | |
"name": "electron-tutorial-app", | |
"productName": "Electron tutorial app", | |
"version": "0.1.0", | |
"main": "main.js", | |
"devDependencies": { | |
"electron": "^1.4.3", | |
"electron-packager": "^8.1.0" | |
} | |
} | |
mac: | |
electron-packager . --overwrite --platform=darwin --arch=x64 --icon=assets/icons/mac/icon.icns --prune=true --out=release-builds | |
windows: | |
electron-packager . electron-tutorial-app --overwrite --asar=true --platform=win32 --arch=ia32 --icon=assets/icons/win/icon.ico --prune=true --out=release-builds --version-string.CompanyName=CE --version-string.FileDescription=CE --version-string.ProductName="Electron Tutorial App" | |
linux: | |
electron-packager . electron-tutorial-app --overwrite --asar=true --platform=linux --arch=x64 --icon=assets/icons/png/1024x1024.png --prune=true --out=release-builds |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment