Window:

electron-packager . fsg-browser --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="FSG Browser"


--------------------------------------------------------------------------------------------
Linux: 

npx electron-packager . fsg-browser --overwrite --asar=true --platform=linux --arch=x64 --icon=assets/icons/png/icon.png --prune=true --out=release-builds


--------------------------------------------------------------------------------------------
macOS: 

npx electron-packager . --overwrite --platform=darwin --arch=x64 --icon=assets/icons/mac/icon.icns --prune=true --out=release-builds




https://www.christianengvall.se/electron-packager-tutorial/

Install complie package:

# for use in npm scripts
npm install electron-packager --save-dev

# for use from cli
npm install electron-packager -g

# setting productname and electron version
npm install --save-dev electron




Complie on Linux

Linux:
https://stackoverflow.com/questions/45097871/electron-packager-is-not-recognized-as-an-internal-or-external-command

npm install -g electron-packager

npm install -D electron-packager 

npx electron-packager .


