forked from Hsdi/Shortcut_Sync_PotPlayer
43 lines
995 B
YAML
43 lines
995 B
YAML
name: Build Windows EXE
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: windows
|
|
|
|
steps:
|
|
- name: Show workspace
|
|
shell: powershell
|
|
run: |
|
|
Write-Host "Workspace: $pwd"
|
|
Get-ChildItem
|
|
|
|
- name: Check Python
|
|
shell: powershell
|
|
run: |
|
|
python --version
|
|
pip --version
|
|
|
|
- name: Install dependencies
|
|
shell: powershell
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install pyinstaller keyboard pywin32
|
|
|
|
- name: Build executable
|
|
shell: powershell
|
|
run: |
|
|
pyinstaller --noconfirm --onefile --windowed --name Shortcut_Sync_PotPlayer main.py
|
|
|
|
- name: Collect build output
|
|
shell: powershell
|
|
run: |
|
|
New-Item -ItemType Directory -Force output | Out-Null
|
|
Copy-Item dist/Shortcut_Sync_PotPlayer.exe output/Shortcut_Sync_PotPlayer.exe -Force
|
|
Get-ChildItem output
|