diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index b614b50..5525c18 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -35,3 +35,12 @@ jobs: - name: Test with pytest run: | pytest + - name: Package Application + uses: Alcance-Innovation-Consulting/pyinstaller-action-windows@main + with: + path: . + spec: tsumemi.spec + - uses: actions/upload-artifact@v2 + with: + name: tsumemi + path: dist/windows diff --git a/tsumemi.spec b/tsumemi.spec new file mode 100644 index 0000000..7d2e210 --- /dev/null +++ b/tsumemi.spec @@ -0,0 +1,34 @@ +# -*- mode: python ; coding: utf-8 -*- + + +block_cipher = None + + +a = Analysis(['tsumemi_launcher.py'], + pathex=['/home/tsumemi/tsumemi'], + binaries=[], + datas=[], + hiddenimports=[], + hookspath=[], + runtime_hooks=[], + excludes=[], + win_no_prefer_redirects=False, + win_private_assemblies=True, + cipher=block_cipher, + noarchive=False) +pyz = PYZ(a.pure, a.zipped_data, + cipher=block_cipher) +exe = EXE(pyz, + a.scripts, + a.binaries, + a.zipfiles, + a.datas, + [], + name='tsumemi', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + upx_exclude=[], + runtime_tmpdir=None, + console=True )