blob: a9d05d8559e622915993098c37e8fbf0f8e3d1c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
.PHONY: all
all: zipapp
make -C pygame deploy
if [ -e ~/syncthing/gamesaves/ ]; then cp ./gamechesttui ~/syncthing/gamesaves/tools/bin/. ; elif [ -e ~/game-saves ]; then cp ./gamechesttui ~/game-saves/tools/bin/. ; fi
static-fix:
isort --order-by-type --atomic gamechestcli
.PHONY: zipapp
zipapp:
mkdir /tmp/gamechest.zipapp
pip3 install --target /tmp/gamechest.zipapp -r gamechestcli/requirements.txt
#pip3 install --target /tmp/gamechest.zipapp gamechestcli
rsync -Pa gamechestcli/. /tmp/gamechest.zipapp/.
python3 -m zipapp -p "/usr/bin/env python3" /tmp/gamechest.zipapp
rm -r /tmp/gamechest.zipapp
if [ -e ~/syncthing/gamesaves ]; then mv /tmp/gamechest.pyz ~/syncthing/gamesaves/tools/bin/. ; elif [ -e ~/game-saves ]; then mv /tmp/gamechest.pyz ~/game-saves/tools/bin/. ; fi
#.PHONY: clipcopy
#clicopy:
# if [ -e ~/syncthing/gamesaves ]; then cp /tmp/gamechest.pyz ~/syncthing/gamesaves/tools/bin/. ; elif [ -e ~/game-saves ]; then mv /tmp/gamechest.pyz ~/game-saves/tools/bin/. ; fi
|