mirror of
https://github.com/blw1138/Zordon.git
synced 2025-12-17 16:58:12 +00:00
Compare commits
11 Commits
master
...
github-act
| Author | SHA1 | Date | |
|---|---|---|---|
| 1aa1d55954 | |||
| 1b2f005ab9 | |||
| 78131df096 | |||
| 69e377835e | |||
| 14bbff48da | |||
| 75cd12803f | |||
| ad5d132589 | |||
| 5d124ae378 | |||
| 21ad9c7e7e | |||
| 9fb7fae567 | |||
| a50dc3ab32 |
75
.github/workflows/create-executables.yml
vendored
75
.github/workflows/create-executables.yml
vendored
@@ -3,36 +3,65 @@ name: Create Executables
|
|||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
release:
|
release:
|
||||||
- types: [created]
|
types:
|
||||||
|
- created
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- github-actions
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pyinstaller-build-windows:
|
# pyinstaller-build-windows:
|
||||||
runs-on: windows-latest
|
# runs-on: windows-latest
|
||||||
steps:
|
# steps:
|
||||||
- name: Create Executables (Windows)
|
# - name: Checkout code
|
||||||
uses: sayyid5416/pyinstaller@v1
|
# uses: actions/checkout@v4
|
||||||
with:
|
# - name: Extract Version
|
||||||
python_ver: '3.11'
|
# id: get_version
|
||||||
spec: 'main.spec'
|
# run: |
|
||||||
requirements: 'requirements.txt'
|
# $version = python -c "from version import APP_VERSION; print(APP_VERSION)"
|
||||||
upload_exe_with_name: 'Zordon'
|
# echo "VERSION=$version" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8
|
||||||
pyinstaller-build-linux:
|
# - name: Create Executable (Windows-x64)
|
||||||
runs-on: ubuntu-latest
|
# uses: sayyid5416/pyinstaller@v1
|
||||||
steps:
|
# with:
|
||||||
- name: Create Executables (Linux)
|
# python_ver: '3.11'
|
||||||
uses: sayyid5416/pyinstaller@v1
|
# python_arch: 'x64'
|
||||||
with:
|
# spec: 'main.spec'
|
||||||
python_ver: '3.11'
|
# requirements: 'requirements.txt'
|
||||||
spec: 'main.spec'
|
# upload_exe_with_name: 'Zordon-${{env.VERSION}}-Windows-x64'
|
||||||
requirements: 'requirements.txt'
|
# pyinstaller-build-linux:
|
||||||
upload_exe_with_name: 'Zordon'
|
# runs-on: ubuntu-latest
|
||||||
|
# steps:
|
||||||
|
# - name: Checkout code
|
||||||
|
# uses: actions/checkout@v4
|
||||||
|
# - name: Extract Version
|
||||||
|
# id: get_version
|
||||||
|
# run: |
|
||||||
|
# version=$(python -c 'from version import APP_VERSION; print(APP_VERSION)')
|
||||||
|
# echo "VERSION=$version" >> $GITHUB_ENV
|
||||||
|
# - name: Create Executable (Linux-x64)
|
||||||
|
# uses: sayyid5416/pyinstaller@v1
|
||||||
|
# with:
|
||||||
|
# python_ver: '3.11'
|
||||||
|
# python_arch: 'x64'
|
||||||
|
# spec: 'main.spec'
|
||||||
|
# requirements: 'requirements.txt'
|
||||||
|
# upload_exe_with_name: 'Zordon-${{env.VERSION}}-Linux-x64'
|
||||||
pyinstaller-build-macos:
|
pyinstaller-build-macos:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Create Executables (macOS)
|
# - name: Checkout code
|
||||||
|
# uses: actions/checkout@v4
|
||||||
|
# - name: Extract Version
|
||||||
|
# id: get_version
|
||||||
|
# run: |
|
||||||
|
# version=$(python -c 'from version import APP_VERSION; print(APP_VERSION)')
|
||||||
|
# echo "VERSION=$version" >> $GITHUB_ENV
|
||||||
|
- name: Create Executable (macOS-arm64)
|
||||||
uses: sayyid5416/pyinstaller@v1
|
uses: sayyid5416/pyinstaller@v1
|
||||||
with:
|
with:
|
||||||
python_ver: '3.11'
|
python_ver: '3.11'
|
||||||
|
python_arch: 'arm64'
|
||||||
spec: 'main.spec'
|
spec: 'main.spec'
|
||||||
requirements: 'requirements.txt'
|
requirements: 'requirements.txt'
|
||||||
upload_exe_with_name: 'Zordon'
|
upload_exe_with_name: 'Zordon-testing-macOS-arm64'
|
||||||
|
options: --onefile
|
||||||
|
|||||||
@@ -49,10 +49,17 @@ if platform.system() == 'Darwin': # macOS
|
|||||||
codesign_identity=None,
|
codesign_identity=None,
|
||||||
entitlements_file=None,
|
entitlements_file=None,
|
||||||
)
|
)
|
||||||
app = BUNDLE(
|
coll = COLLECT(
|
||||||
exe,
|
exe,
|
||||||
a.binaries,
|
a.binaries,
|
||||||
a.datas,
|
a.datas,
|
||||||
|
strip=False,
|
||||||
|
upx=True,
|
||||||
|
upx_exclude=[],
|
||||||
|
name='server',
|
||||||
|
)
|
||||||
|
app = BUNDLE(
|
||||||
|
coll,
|
||||||
strip=True,
|
strip=True,
|
||||||
name=f'{APP_NAME}.app',
|
name=f'{APP_NAME}.app',
|
||||||
icon=None,
|
icon=None,
|
||||||
|
|||||||
Reference in New Issue
Block a user