-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompile.sh
More file actions
executable file
·31 lines (26 loc) · 1006 Bytes
/
compile.sh
File metadata and controls
executable file
·31 lines (26 loc) · 1006 Bytes
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
#!/bin/bash
export USE_CCACHE=1
export CCACHE_EXEC=/usr/bin/ccache
ccache -M 10G
# uncomment if you have localisation errors
# export LC_ALL=C
mkdir bin.build
python3 -m nuitka --standalone --remove-output --show-progress --output-dir=bin.build --file-reference-choice=runtime DungeonCli.py
if [[ "$OSTYPE" == "darwin"* ]]; then
cp ./DungeonCli.bin ./bin.build/DungeonCli_osx
sudo codesign -f -s - ./bin.build/DungeonCli.dist/Python
elif [[ "$OSTYPE" == "linux-gnu" ]]; then
cp ./DungeonCli.bin ./bin.build/DungeonCli_linux
else
cp ./DungeonCli.bin ./bin.build/DungeonCli
fi
cp -r ./Music ./bin.build/DungeonCli.dist/
cp -r ./Sounds ./bin.build/DungeonCli.dist/
if [[ "$OSTYPE" == "darwin"* ]]; then
cp -r /Library/Frameworks/Python.framework ./bin.build/DungeonCli.dist/
zip -r DungeonCli_MacOS.zip ./bin.build/DungeonCli.dist/
elif [[ "$OSTYPE" == "linux-gnu" ]]; then
zip -r DungeonCli_Linux.zip ./bin.build/DungeonCli.dist/
else
zip -r DungeonCli_Other.zip ./bin.build/DungeonCli.dist/
fi