forked from parzulpan/livebox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathReleaseBuild.sh
executable file
·36 lines (32 loc) · 1009 Bytes
/
ReleaseBuild.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
36
#!/usr/bin/env bash
# 请修改为自己的环境
# 請修改為自己的環境
# Please modify it to your own environment
pyinstaller_path="C:\parzulpan\App\Python3.6.8\Scripts\pyinstaller.exe"
rm -rf build dist
rm -rf release
mkdir release
sysOS=$(uname -s)
if [ "$sysOS" == "Darwin" ];then
echo "System is MacOS"
$pyinstaller_path --windowed --clean --noconfirm real_live_macos.spec
mv -f dist/RealLive.app release
echo "realease successful!"
elif [ "$sysOS" == "Linux" ];then
echo "System is Linux"
$pyinstaller_path real_live_linux.spec --clean -y
mv -f dist/RealLive release
echo "realease successful!"
elif [ "$sysOS" == "Windows" ];then
echo "System is Windows"
$pyinstaller_path real_live_windows.spec --clean -y
mv -f dist/RealLive release
echo "realease successful!"
else
echo "System is Windows"
$pyinstaller_path real_live_windows.spec --clean -y
# mv -f dist/RealLive release
echo "realease successful!"
# echo "realease error: Other OS $sysOS"
fi
#rm -rf build dist