diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e0d39e3..22f82c8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,11 +35,8 @@ jobs: key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} - name: Установка зависимостей run: poetry install - - run: | - echo ${{ github.workspace }} - ls -la ${{ github.workspace }} - name: Сборка - run: poetry run pyinstaller ${{ github.workspace }}/statapp.spec + run: poetry run pyinstaller statapp.spec - name: Загрузка артефактов uses: actions/upload-artifact@v3 with: diff --git a/.gitignore b/.gitignore index 90f8fbb..ae6fe2a 100644 --- a/.gitignore +++ b/.gitignore @@ -34,7 +34,7 @@ MANIFEST # Usually these files are written by a python script from a template # before PyInstaller builds the exe, so as to inject date/other infos into it. *.manifest -*.spec +# *.spec # Installer logs pip-log.txt @@ -173,4 +173,4 @@ poetry.toml # LSP config files pyrightconfig.json -# End of https://www.toptal.com/developers/gitignore/api/python \ No newline at end of file +# End of https://www.toptal.com/developers/gitignore/api/python diff --git a/statapp.spec b/statapp.spec new file mode 100644 index 0000000..bea3955 --- /dev/null +++ b/statapp.spec @@ -0,0 +1,37 @@ +# -*- mode: python ; coding: utf-8 -*- + + +a = Analysis( + ['statapp/__main__.py'], + pathex=[], + binaries=[], + datas=[], + hiddenimports=[], + hookspath=[], + hooksconfig={}, + runtime_hooks=[], + excludes=[], + noarchive=False, +) +pyz = PYZ(a.pure) + +exe = EXE( + pyz, + a.scripts, + a.binaries, + a.datas, + [], + name='statapp', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + upx_exclude=[], + runtime_tmpdir=None, + console=False, + disable_windowed_traceback=False, + argv_emulation=False, + target_arch=None, + codesign_identity=None, + entitlements_file=None, +)