Update spec file and create GitHub workflow
This commit is contained in:
parent
7a6df24109
commit
6dad9d8a9b
2 changed files with 38 additions and 17 deletions
33
.github/workflows/build_artifacts.yaml
vendored
Normal file
33
.github/workflows/build_artifacts.yaml
vendored
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
name: Build artifacts
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
directory:
|
||||||
|
description: 'Directory to run Docker command in'
|
||||||
|
required: true
|
||||||
|
default: '.'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-windows:
|
||||||
|
runs-on:
|
||||||
|
- ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: batonogov/pyinstaller-windows:latest
|
||||||
|
options: --rm
|
||||||
|
volumes:
|
||||||
|
- ${{ github.workspace }}:/src/
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Run PyInstaller
|
||||||
|
run: |
|
||||||
|
pyinstaller BTClockOTA.spec
|
||||||
|
|
||||||
|
- name: Archive artifacts
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: windows-artifacts
|
||||||
|
path: dist/
|
|
@ -6,7 +6,7 @@ a = Analysis(
|
||||||
pathex=[],
|
pathex=[],
|
||||||
binaries=[],
|
binaries=[],
|
||||||
datas=[],
|
datas=[],
|
||||||
hiddenimports=['zeroconf._utils.ipaddress', 'zeroconf._handlers.answers'],
|
hiddenimports=['zeroconf._utils.ipaddress', 'zeroconf._handlers.answers', 'pyserial'],
|
||||||
hookspath=[],
|
hookspath=[],
|
||||||
hooksconfig={},
|
hooksconfig={},
|
||||||
runtime_hooks=[],
|
runtime_hooks=[],
|
||||||
|
@ -19,13 +19,16 @@ pyz = PYZ(a.pure)
|
||||||
exe = EXE(
|
exe = EXE(
|
||||||
pyz,
|
pyz,
|
||||||
a.scripts,
|
a.scripts,
|
||||||
|
a.binaries,
|
||||||
|
a.datas,
|
||||||
[],
|
[],
|
||||||
exclude_binaries=True,
|
|
||||||
name='BTClockOTA',
|
name='BTClockOTA',
|
||||||
debug=False,
|
debug=False,
|
||||||
bootloader_ignore_signals=False,
|
bootloader_ignore_signals=False,
|
||||||
strip=False,
|
strip=False,
|
||||||
upx=True,
|
upx=True,
|
||||||
|
upx_exclude=[],
|
||||||
|
runtime_tmpdir=None,
|
||||||
console=False,
|
console=False,
|
||||||
disable_windowed_traceback=False,
|
disable_windowed_traceback=False,
|
||||||
argv_emulation=False,
|
argv_emulation=False,
|
||||||
|
@ -34,18 +37,3 @@ exe = EXE(
|
||||||
entitlements_file=None,
|
entitlements_file=None,
|
||||||
icon=['update-icon.icns'],
|
icon=['update-icon.icns'],
|
||||||
)
|
)
|
||||||
coll = COLLECT(
|
|
||||||
exe,
|
|
||||||
a.binaries,
|
|
||||||
a.datas,
|
|
||||||
strip=False,
|
|
||||||
upx=True,
|
|
||||||
upx_exclude=[],
|
|
||||||
name='BTClockOTA',
|
|
||||||
)
|
|
||||||
app = BUNDLE(
|
|
||||||
coll,
|
|
||||||
name='BTClockOTA.app',
|
|
||||||
icon='update-icon.icns',
|
|
||||||
bundle_identifier=None,
|
|
||||||
)
|
|
||||||
|
|
Loading…
Reference in a new issue