From ee19678416bee1c26c056a08e2bff2a09f12b318 Mon Sep 17 00:00:00 2001 From: vg Date: Wed, 4 Feb 2026 17:13:33 +0100 Subject: git-sync on dita --- Makefile | 46 ++++++++++++++++++++++++++-------------------- 1 file changed, 26 insertions(+), 20 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index a9d05d8..47f7024 100644 --- a/Makefile +++ b/Makefile @@ -1,22 +1,28 @@ -.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: 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 -.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 +.PHONY: all +all: upgrade +.PHONY: upgrade +upgrade: + uv tool upgrade gamechest -- cgit v1.2.3