File tree 2 files changed +30
-3
lines changed
2 files changed +30
-3
lines changed Original file line number Diff line number Diff line change 22
22
run : sudo pip3 install pyxel pyinstaller
23
23
- name : build
24
24
run : |
25
- pyxel package . ticoban.py
26
- pyxel app2exe ticoban-pyxel.pyxapp
25
+ ./build-linux.sh --appimage
27
26
- name : Copy files
28
27
run : |
29
- mkdir -p AppDir/usr/bin
30
28
mkdir -p AppDir/usr/share/icons
31
29
install -Dm755 ticoban-pyxel AppDir/usr/bin/ticoban
32
30
install -Dm644 icon.png AppDir/usr/share/icons/ticoban.png
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ echo -e " \033[0;34mPreparing build folder\033[0m"
3
+ if [ -d build_pyxapp ]; then rm -r build_pyxapp; fi
4
+ mkdir -p build_pyxapp/levels
5
+ cd build_pyxapp
6
+ cp ../levels.py .
7
+ cp ../rock.py .
8
+ cp ../player.py .
9
+ cp ../ticoban.py .
10
+ cp ../levels/oficial.txt levels/
11
+ cp ../assets.pyxres .
12
+ cp ../assets.pyxpal .
13
+ echo -e " \033[0;34mPackaging the game\033[0m"
14
+ pyxel package . ticoban.py
15
+ mv build_pyxapp.pyxapp ../ticoban-pyxel.pyxapp
16
+
17
+ echo -e " \033[0;34mMaking the executable\033[0m"
18
+ pyxel app2exe ticoban-pyxel.pyxapp
19
+ cd ..
20
+ # rm -r build_pyxapp
21
+ echo -e " \033[0;34mMaking the executable\033[0m"
22
+ pyxel app2exe ticoban-pyxel.pyxapp
23
+
24
+ if [[ $# -eq 1 && $1 = ' --appimage' ]]; then
25
+ echo -e " \033[0;34mPreparing AppImage\033[0m"
26
+ mkdir -p AppDir/usr/bin
27
+ cp ticoban-pyxel AppDir/usr/bin/ticoban
28
+ fi
29
+ echo -e " \033[0;32mFinished\033[0m"
You can’t perform that action at this time.
0 commit comments