Skip to content

Commit 0b0df54

Browse files
Update build.sh
1 parent 4608e9d commit 0b0df54

File tree

1 file changed

+19
-14
lines changed

1 file changed

+19
-14
lines changed

build.sh

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
1-
mkdir dist >> /dev/null
2-
set osbuild=%1
1+
#!/bin/bash
2+
3+
mkdir -p dist
4+
osbuild="$1"
35
clear
4-
if [osbuild==W]
6+
7+
if [ "$osbuild" = "W" ]; then
58
nuitka --mode="onefile" --no-deployment-flag=self-execution --output-dir=dist sussy.py
69
nuitka --mode="onefile" --output-dir=dist vent.py
7-
copy /y dist\sussy.exe C:\Users\George\Documents\sus\bin\sussy.exe >> /dev/null
8-
copy /y dist\vent.exe C:\Users\George\Documents\sus\bin\vent.exe >> /dev/null
9-
rmdir /s /q dist
10-
clear
11-
else if osbuild==M
12-
exit
13-
else if osbuild==L
14-
exit
15-
else
16-
echo Invalid OS build option. Please choose W, M, or L.
17-
exit /b 1
10+
cp -f dist/sussy.exe "/mnt/c/Users/George/Documents/sus/bin/sussy.exe"
11+
cp -f dist/vent.exe "/mnt/c/Users/George/Documents/sus/bin/vent.exe"
12+
rm -rf dist
13+
elif [ "$osbuild" = "M" ]; then
14+
exit 0
15+
elif [ "$osbuild" = "L" ]; then
16+
exit 0
17+
else
18+
echo "Invalid OS build option. Please choose W, M, or L."
19+
exit 1
20+
fi
21+
22+
echo "Build complete."

0 commit comments

Comments
 (0)