From 2b4dc7cc62eaba077278ab496e6da2c2c17032d8 Mon Sep 17 00:00:00 2001 From: kraanzu Date: Tue, 6 Feb 2024 08:26:06 +0530 Subject: [PATCH] refactor: use `__main__` for pyinstaller --- .github/workflows/app.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/app.yml b/.github/workflows/app.yml index e6f2bac9..1f2be0c3 100644 --- a/.github/workflows/app.yml +++ b/.github/workflows/app.yml @@ -31,7 +31,7 @@ jobs: - name: Package app with pyinstaller run: | - python -c "with open('smassh.py', 'w') as f: f.write('from smassh.__init__ import main\nmain()\n')" + python -c "with open('smassh.py', 'w') as f: f.write('from smassh.__main__ import main\nmain()\n')" pyinstaller -F smassh.py --add-data="smassh/ui/css/:smassh/ui/css" # Setup File name