Skip to content

Commit

Permalink
Merge branch 'release/v1.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
StarrySky-skyler committed May 11, 2024
2 parents 0e5e6d1 + 1485018 commit 7c68a53
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Auto PyInstaller Windows

on:
# Trigger the workflow on new version tag
push:
tags:
- "v*.*.*"

# Allow to run this workflow manually in web browser
workflow_dispatch:

jobs:
build-windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.12.3'
architecture: 'x64'

- name: Install pyinstaller
run: |
pip install pyinstaller
- name: Build
run: |
python -m PyInstaller main.spec
- name: Release
uses: softprops/action-gh-release@v2
with:
files: dist/FreeC-win-x64.exe
38 changes: 38 additions & 0 deletions main.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# -*- mode: python ; coding: utf-8 -*-


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

exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
name='FreeC-win-x64',
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,
)

0 comments on commit 7c68a53

Please sign in to comment.