-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sh
executable file
·37 lines (30 loc) · 972 Bytes
/
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
36
37
#!/usr/bin/env bash
#-----------------------------------------------------------#
# Build via PyInstaller #
#-----------------------------------------------------------#
start_build() {
case "$(uname -s)" in
Darwin)
echo -e "\x1B[92mStart building under MacOS...\x1B[0m"
;;
Linux)
echo -e "\x1B[92mStart building under Linux...\x1B[0m"
apt install -y binutils git python3 python3-pip
;;
*)
echo -e "\x1B[91mYour OS is currently not supported :(\x1B[0m"
exit
;;
esac
pip3 install setuptools --upgrade
pip3 install pyinstaller
pip3 install -r requirements.txt
pyinstaller --onefile bundla.py
cp -r dist/ bundla/
cp LICENSE.md bundla/
cp -r configs/ bundla/configs/
tar -zcvf "bundla-$(uname -s).tar.gz" bundla
rm -r bundla/ dist/ build/ bundla.spec
echo -e "\x1B[92mBuilding completed. Created file:\x1B[0m bundla-$(uname -s).tar.gz"
}
start_build