diff --git a/.github/workflows/pyinstaller.yml b/.github/workflows/pyinstaller.yml new file mode 100644 index 0000000..cca6bd3 --- /dev/null +++ b/.github/workflows/pyinstaller.yml @@ -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 \ No newline at end of file diff --git a/.gitignore b/.gitignore index 94a7128..89deb53 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ __pycache__/ *.pem -.venv \ No newline at end of file +.venv +build +dist \ No newline at end of file diff --git a/screenshare.spec b/screenshare.spec new file mode 100644 index 0000000..62dd5d7 --- /dev/null +++ b/screenshare.spec @@ -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', +)