summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 5b520625a1d0d999ad2a0540051d0c9d97afd70f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
all: zipapp
	make -C pygame deploy
	if [ -e ~/games/.saves ]; then cp ./gamechesttui ~/games/.saves/tools/bin/. ; elif [ -e ~/game-saves ]; then cp ./gamechesttui ~/game-saves/tools/bin/. ; fi

static-fix:
	isort --order-by-type --atomic gamechestcli

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 ~/games/.saves ]; then mv /tmp/gamechest.pyz ~/games/.saves/tools/bin/. ; elif [ -e ~/game-saves ]; then mv /tmp/gamechest.pyz ~/game-saves/tools/bin/. ; fi