ci: fix release

This commit is contained in:
Maxim Slipenko 2023-09-26 21:52:36 +03:00
parent b353a6a473
commit e102eae964
3 changed files with 40 additions and 6 deletions

View File

@ -35,11 +35,8 @@ jobs:
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Установка зависимостей - name: Установка зависимостей
run: poetry install run: poetry install
- run: |
echo ${{ github.workspace }}
ls -la ${{ github.workspace }}
- name: Сборка - name: Сборка
run: poetry run pyinstaller ${{ github.workspace }}/statapp.spec run: poetry run pyinstaller statapp.spec
- name: Загрузка артефактов - name: Загрузка артефактов
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:

2
.gitignore vendored
View File

@ -34,7 +34,7 @@ MANIFEST
# Usually these files are written by a python script from a template # 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. # before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest *.manifest
*.spec # *.spec
# Installer logs # Installer logs
pip-log.txt pip-log.txt

37
statapp.spec Normal file
View File

@ -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,
)