forked from geph-official/gephgui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
final-build.sh
executable file
·35 lines (30 loc) · 917 Bytes
/
final-build.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
35
#!/bin/sh
rm -rf socks2http
ISCC="/home/miyuruasuka/.wine/drive_c/Program Files/Inno Setup 6/ISCC.exe"
export VERSION=$(cat package.json | jq -r ".version")
rm -rf dist
npm run electron:allplat
# compile windoze
echo "Windows!"
wine "$ISCC" inno/setup.iss
mv inno/Output/geph-windows-setup.exe dist/geph-windows-$VERSION-setup.exe
echo "Linux 64-bit!"
#npm run electron:lin64
cd dist/linux-unpacked
echo "#!/bin/sh" >> RUN-ME.sh
echo "./gephgui4 --no-sandbox &" >> RUN-ME.sh
chmod +x RUN-ME.sh
tar -cvO * | xz -T 12 > ../geph-linux64-$VERSION.tar.xz
cd ../../
#exit 0;
#echo "Linux 32-bit!"
#npm run electron:lin32
#cd dist/linux-ia32-unpacked
#echo "#!/bin/sh" >> RUN-ME.sh
#echo "./gephgui4 --no-sandbox &" >> RUN-ME.sh
#chmod +x RUN-ME.sh
#tar -cvO * | pixz -p 8 > ../geph-linux32-$VERSION.tar.xz
#cd ../../
echo "MacOS 64-bit!"
#npm run electron:macos
#echo "*** FINISH ON A MAC BY RUNNING macos/makedmg **"