From 57a04500262aa88de881ffc231063429443acee0 Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Mon, 14 Oct 2024 22:56:22 -0700 Subject: [PATCH] Revert "remove GUI windows docker" This reverts commit 4fc5cc9dfbc192faeedb1ffe82807b4e75b937af. --- .../workflows/package-windows-with-docker.yml | 5 +++ kcc.spec | 39 +++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 kcc.spec diff --git a/.github/workflows/package-windows-with-docker.yml b/.github/workflows/package-windows-with-docker.yml index 051ff660..92951b35 100644 --- a/.github/workflows/package-windows-with-docker.yml +++ b/.github/workflows/package-windows-with-docker.yml @@ -25,6 +25,11 @@ jobs: # - name: build binary # run: | # pyi-makespec -F -i icons\\comic2ebook.ico -n KCC_test -w --noupx kcc.py + - name: Package Application + uses: JackMcKew/pyinstaller-action-windows@main + with: + path: . + spec: ./kcc.spec - name: Package Application uses: JackMcKew/pyinstaller-action-windows@main with: diff --git a/kcc.spec b/kcc.spec new file mode 100644 index 00000000..abc2fea6 --- /dev/null +++ b/kcc.spec @@ -0,0 +1,39 @@ +# -*- mode: python ; coding: utf-8 -*- + + +block_cipher = None + + +a = Analysis(['kcc.py'], + pathex=['.'], + binaries=[], + datas=[], + hiddenimports=[], + hookspath=[], + runtime_hooks=[], + excludes=[], + win_no_prefer_redirects=False, + win_private_assemblies=False, + 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='kcc', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=False, + upx_exclude=[], + runtime_tmpdir=None, + console=False, + disable_windowed_traceback=False, + target_arch=None, + codesign_identity=None, + entitlements_file=None , icon='icons\\comic2ebook.ico')