Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: add GHA for windows
Browse files Browse the repository at this point in the history
truenicoco committed Dec 16, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 1d8fe1c commit de11dd7
Showing 3 changed files with 52 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build-win.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- name: PyInstaller Windows
uses: JackMcKew/pyinstaller-action-windows@main
with:
path: .
spec: pyinstaller/__main__.spec
44 changes: 44 additions & 0 deletions pyinstaller/__main__.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# -*- mode: python ; coding: utf-8 -*-


a = Analysis(
['..\\hh_creator\\__main__.py'],
pathex=[],
binaries=[],
datas=[('..\\hh_creator\\resource', 'resource')],
hiddenimports=[],
hookspath=['.'],
hooksconfig={},
runtime_hooks=[],
excludes=['FixTk', 'tcl', 'tk', '_tkinter', 'tkinter', 'Tkinter'],
noarchive=False,
optimize=0,
)
pyz = PYZ(a.pure)

exe = EXE(
pyz,
a.scripts,
[],
exclude_binaries=True,
name='__main__',
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='__main__',
)
3 changes: 3 additions & 0 deletions pyinstaller/hook-poker.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from PyInstaller.utils.hooks import copy_metadata

datas = copy_metadata('poker')

0 comments on commit de11dd7

Please sign in to comment.