diff options
| author | vg <vgm+dev@devys.org> | 2026-02-04 16:53:33 +0100 |
|---|---|---|
| committer | vg <vgm+dev@devys.org> | 2026-02-04 16:53:33 +0100 |
| commit | fef531c2fa800d84be51d16844f27ead7f2521a1 (patch) | |
| tree | f4ecfbe66aef32aec9c604c8947f4f5d05687562 | |
| parent | ac2ae69e8c3cb2d937510f519a8b1bb7ce2d9822 (diff) | |
| download | gamechest-fef531c2fa800d84be51d16844f27ead7f2521a1.tar.gz gamechest-fef531c2fa800d84be51d16844f27ead7f2521a1.tar.bz2 gamechest-fef531c2fa800d84be51d16844f27ead7f2521a1.zip | |
git-sync on dita
| -rw-r--r-- | Makefile | 7 | ||||
| -rw-r--r-- | gamechestcli/pyproject.toml | 2 |
2 files changed, 9 insertions, 0 deletions
@@ -1,3 +1,4 @@ +.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 @@ -5,6 +6,7 @@ all: zipapp 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 @@ -13,3 +15,8 @@ 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 + diff --git a/gamechestcli/pyproject.toml b/gamechestcli/pyproject.toml index 57e1888..ad30a3e 100644 --- a/gamechestcli/pyproject.toml +++ b/gamechestcli/pyproject.toml @@ -11,6 +11,8 @@ dependencies = [ "rich>=14.3.2", "xdg>=6.0.0", ] +[project.script] +gamechest = "__main__:main" [dependency-groups] dev = [ |
