forked from inkle/inky
-
Notifications
You must be signed in to change notification settings - Fork 2
/
BUILD_PACKAGE.command
executable file
·26 lines (19 loc) · 1.03 KB
/
BUILD_PACKAGE.command
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
cd "`dirname "$0"`"
# Uses: https://github.com/electron-userland/electron-packager
# To install it globally:
#
# npm install electron-packager -g
#
rm -rf Inky-darwin-x64/
rm -rf Inky-win32-x64/
# Create icon from PNG
./resources/makeIcns.command
# Mac
electron-packager app Inky --platform=darwin --arch=x64 --icon=resources/Icon.icns --extend-info=resources/info.plist --prune --asar --asar-unpack-dir="main-process/ink" --ignore="inklecate_win.exe"
# Windows (requires Wine - `brew install wine`)
electron-packager app Inky --platform=win32 --arch=x64 --icon=resources/Icon1024.png.ico --prune --asar --asar-unpack-dir="main-process/ink" --ignore="inklecate_mac" --version-string.ProductName="Inky" --version-string.CompanyName="inkle Ltd" --version-string.FileDescription="Inky" --version-string.OriginalFilename="Inky" --version-string.InternalName="Inky"
# Remove .icns again
rm resources/Icon.icns
# Create a zip file ready for upload
zip -r Inky-darwin-x64/Inky.app.zip Inky-darwin-x64/Inky.app
zip -r Inky_windows.zip Inky-win32-x64