-
Notifications
You must be signed in to change notification settings - Fork 300
/
BUILD_FOR_LINUX.sh
executable file
·34 lines (26 loc) · 1.03 KB
/
BUILD_FOR_LINUX.sh
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
27
28
29
30
31
32
33
34
cd "`dirname "$0"`"
# Uses: https://github.com/electron-userland/electron-packager
# To install it globally:
#
# npm install electron-packager -g
#
# Clean
rm -rf Inky-linux-x64/
rm -rf ReleaseUpload
# Ensure it's correctly/fully installed first
( cd app && npm install )
# Linux
electron-packager app Inky --platform=linux --arch=x64 --icon=resources/Icon.icns --extend-info=resources/info.plist --prune --asar.unpackDir="main-process/ink" --ignore="inklecate_mac"
# Create a zip files ready for upload on Windows/Linux
mkdir -p ReleaseUpload
zip -r ReleaseUpload/Inky_linux.zip Inky-linux-x64
#Prepare AppImage build structure
mkdir -p AppImage/opt/inky
mkdir -p AppImage/usr/share/pixmaps
cp resources/AppRun AppImage/
cp resources/com.inkle.inky.desktop AppImage/
cp resources/Icon1024.png AppImage/inky.png
cp resources/Icon1024.png AppImage/usr/share/pixmaps/inky.png
cp -r Inky-linux-x64/* AppImage/opt/inky/
#Build AppImage File ready for upload
ARCH=x86_64 ./build/appimagetool-x86_64.AppImage -n AppImage ReleaseUpload/Inky.AppImage