Skip to content

Commit

Permalink
Merge branch 'leslievan:main' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
huj13k4n9 committed Nov 13, 2023
2 parents 78d92c6 + 8d1cb37 commit 962abc3
Show file tree
Hide file tree
Showing 6 changed files with 84 additions and 1 deletion.
45 changes: 45 additions & 0 deletions .github/workflows/build_win_pkg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build Windows Release Package

on:
pull_request:
push:
tags:
- 'build*' # Push events to matching build* tags

jobs:
build:
runs-on: windows-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'

- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pyinstaller
- name: Build Executable
run: |
pyinstaller build_win_pkg.spec
- name: Add Release Resource to Package
run: |
Move-Item -Path "./input" -Destination "./dist"
Move-Item -Path "./logos" -Destination "./dist"
Move-Item -Path "./fonts" -Destination "./dist"
Move-Item -Path "./config.yaml" -Destination "./dist/config.yaml"
New-Item -Path "./dist/exiftool" -ItemType "directory" -Force | Out-Null
Invoke-WebRequest -Uri "https://github.com/leslievan/semi-utils/raw/exiftool/exiftool/exiftool.exe" -OutFile "./dist/exiftool/exiftool.exe"
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: semi-utils-latest_win_amd64_pkg
path: dist
38 changes: 38 additions & 0 deletions build_win_pkg.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# -*- mode: python ; coding: utf-8 -*-


a = Analysis(
['main.py'],
pathex=[],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
noarchive=False,
)
pyz = PYZ(a.pure)

exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
name='semi-utils',
icon='logo.ico',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)
2 changes: 1 addition & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ logo:
path: ./logos/hasselblad.png
huawei:
id: HUAWEI
path: ./logos/xmage.jpg
path: ./logos/xmage.png
leica:
id: leica
path: ./logos/leica_logo.png
Expand Down
Binary file added logo.ico
Binary file not shown.
Binary file removed logos/xmage.jpg
Binary file not shown.
Binary file added logos/xmage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 962abc3

Please sign in to comment.