From b996ab9f4b6e64f946495170fa4c63daf36cb89d Mon Sep 17 00:00:00 2001 From: kraanzu Date: Sat, 27 Jan 2024 01:08:28 +0530 Subject: [PATCH] fix: use __init__ --- .github/workflows/app.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/app.yml b/.github/workflows/app.yml index b987f801..27231b93 100644 --- a/.github/workflows/app.yml +++ b/.github/workflows/app.yml @@ -24,7 +24,7 @@ jobs: pip install pyinstaller - name: Package app with pyinstaller run: | - python -c "with open('smassh.py', 'w') as f: f.write('from smassh.__main__ import main\nmain()\n')" + python -c "with open('smassh.py', 'w') as f: f.write('from smassh.__init__ import main\nmain()\n')" pyinstaller -F smassh.py --add-data="smassh/assets/languages/:smassh/assets/languages" --add-data="smassh/ui/css/:smassh/ui/css" - name: Upload a Build Artifact uses: actions/upload-artifact@v3.1.0 @@ -54,7 +54,7 @@ jobs: pip install pyinstaller - name: Package app with pyinstaller run: | - python -c "with open('smassh.py', 'w') as f: f.write('from smassh.__main__ import main\nmain()\n')" + python -c "with open('smassh.py', 'w') as f: f.write('from smassh.__init__ import main\nmain()\n')" pyinstaller -F smassh.py --add-data="smassh/assets/languages/:smassh/assets/languages" --add-data="smassh/ui/css/:smassh/ui/css" - name: Upload a Build Artifact uses: actions/upload-artifact@v3.1.0 @@ -84,7 +84,7 @@ jobs: pip install pyinstaller - name: Package app with pyinstaller run: | - python -c "with open('smassh.py', 'w') as f: f.write('from smassh.__main__ import main\nmain()\n')" + python -c "with open('smassh.py', 'w') as f: f.write('from smassh.__init__ import main\nmain()\n')" pyinstaller -F smassh.py --add-data="smassh/assets/languages/:smassh/assets/languages" --add-data="smassh/ui/css/:smassh/ui/css" - name: Upload a Build Artifact uses: actions/upload-artifact@v3.1.0