pyinstaller

This commit is contained in:
Denys SAVCHENKO 2024-06-29 21:47:13 +02:00
parent fdaa15265b
commit 9494879946
3 changed files with 72 additions and 1 deletions

25
.github/workflows/pyinstaller.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: Package Application with Pyinstaller
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Package Application
uses: JackMcKew/pyinstaller-action-windows@main
with:
path: .
- uses: actions/upload-artifact@v2
with:
name: name-of-artifact
path: dist/windows

4
.gitignore vendored
View File

@ -1,3 +1,5 @@
__pycache__/
*.pem
.venv
.venv
build
dist

44
screenshare.spec Normal file
View File

@ -0,0 +1,44 @@
# -*- mode: python ; coding: utf-8 -*-
a = Analysis(
['screenshare.py'],
pathex=[],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
noarchive=False,
optimize=0,
)
pyz = PYZ(a.pure)
exe = EXE(
pyz,
a.scripts,
[],
exclude_binaries=True,
name='screenshare',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)
coll = COLLECT(
exe,
a.binaries,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='screenshare',
)