-
Notifications
You must be signed in to change notification settings - Fork 0
/
HowToPackage.txt
19 lines (12 loc) · 1.16 KB
/
HowToPackage.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
to create package
electron-packager . AntaresDataOrganizer --platform=win32 --arch=ia32 --asar --icon=AntaresDataOrganizer.ico
or
electron-packager . AntaresStudyManager --platform=win32 --arch=x64 --asar=true --icon=AntaresDataOrganizer.ico
On linux
electron-packager ./electron_app AntaresDataOrganizer --platform=linux --arch=x64 --asar --icon=AntaresDataOrganizer.png
if electron-packager is installed but not recognized, and dl of electron is required:
D:\Users\****\AppData\Roaming\npm\electron-packager.cmd . AntaresDataOrganizer --platform=win32 --arch=ia32 --asar=true --icon=AntaresDataOrganizer.ico --proxy http://************** --no-prune
or add --download.cache=C:\Users\sylvmara\AppData\Roaming\npm-cache with the required version of electron and SHA its file, for example SHASUMS256.txt-1.8.1
The --no-prune option is to take elements directly from node modules, which is sometimes necessary
Ex :
C:\Users\sylvmara\AppData\Roaming\npm\electron-packager.cmd .\electron_app AntaresDataOrganizer --platform=win32 --arch=ia32 --asar=true --icon=AntaresDataOrganizer.ico --electron-version=1.8.2 --no-prune --download.cache=C:\Users\sylvmara\AppData\Roaming\npm-cache