This commit is contained in:
LunaChocken
2025-06-07 18:35:39 +01:00
parent 6482cf0c91
commit 1373b95cf3
+28 -25
View File
@@ -1,30 +1,33 @@
name: Versatile PyInstaller name: Package Application with PyInstaller
uses: sayyid5416/pyinstaller@v1.8.0
on: on:
push: push:
pull_request: branches:
workflow_dispatch: - main
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
type: choice
options:
- info
- warning
- debug
jobs: jobs:
pyinstaller-build: build:
runs-on: ubuntu-latest runs-on: windows-latest
steps: steps:
- name: Create Executable
uses: sayyid5416/pyinstaller@v1 - name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with: with:
python-version: 3.14 python-version: '3.10'
pyinstaller_ver: '==6.14.0'
spec: 'main.spec' - name: Install dependencies
requirements: 'requirements.txt' run: >
upload_exe_with_name: 'steamPathCLI' python -m pip install --upgrade pip
options: --onefile, --name "SteamPathsCLI",
spec_options: # any custom arguments you want like: `--debug` pip install . # Install dependencies; modify if using requirements.txt
- name: Package Application with PyInstaller
run: |
pyinstaller steamPathCLI.spec
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: steamPathCLI
path: dist/steamPathCLI.exe