summaryrefslogtreecommitdiffstats
path: root/pygame/Makefile
diff options
context:
space:
mode:
authorvg <vgm+dev@devys.org>2023-01-02 16:49:22 +0100
committervg <vgm+dev@devys.org>2023-01-02 16:49:22 +0100
commitf79d73440fa6b4e3f2641c86a477b5e5630d7fad (patch)
tree7f3fad78682d271dca8ebfd69091fce378634050 /pygame/Makefile
parentae768bc9758237bb6f99911dfa66ea5895bbca29 (diff)
downloadgamechest-f79d73440fa6b4e3f2641c86a477b5e5630d7fad.tar.gz
gamechest-f79d73440fa6b4e3f2641c86a477b5e5630d7fad.tar.bz2
gamechest-f79d73440fa6b4e3f2641c86a477b5e5630d7fad.zip
git-sync on dita
Diffstat (limited to 'pygame/Makefile')
-rw-r--r--pygame/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/pygame/Makefile b/pygame/Makefile
new file mode 100644
index 0000000..36729a7
--- /dev/null
+++ b/pygame/Makefile
@@ -0,0 +1,23 @@
+.PHONY: all
+all: deploy
+
+#.PHONY: zipapp
+#zipapp:
+# rm -rf /tmp/gamechestgui.zipapp
+# mkdir /tmp/gamechestgui.zipapp
+# pip3 install --target /tmp/gamechestgui.zipapp -r ../gamechestcli/requirements.txt
+# pip3 install --target /tmp/gamechestgui.zipapp -r requirements.txt
+# rsync -Pa ../gamechestcli/gamechest /tmp/gamechestgui.zipapp/.
+# rsync -Pa __main__.py profiledb.py /tmp/gamechestgui.zipapp/.
+# python3 -m zipapp -p "/usr/bin/env python3" /tmp/gamechestgui.zipapp
+# if [ -e ~/games/.saves ]; then mv /tmp/gamechestgui.pyz ~/games/.saves/tools/bin/. ; elif [ -e ~/game-saves ]; then mv /tmp/gamechestgui.pyz ~/game-saves/tools/bin/. ; fi
+
+.PHONY: deploy
+deploy:
+ rm -rf ~/games/.saves/tools/bin/libs/gamechestgui
+ mkdir -p ~/games/.saves/tools/bin/libs/gamechestgui
+ pip3 install --target ~/games/.saves/tools/bin/libs/gamechestgui -r ../gamechestcli/requirements.txt
+ pip3 install --target ~/games/.saves/tools/bin/libs/gamechestgui -r requirements.txt
+ rsync -Pa ../gamechestcli/gamechest ~/games/.saves/tools/bin/libs/gamechestgui/.
+ rsync -Pa __init__.py profiledb.py ~/games/.saves/tools/bin/libs/gamechestgui/.
+ rsync -Pa gamechestgui ~/games/.saves/tools/bin/.