重新构建代码
This commit is contained in:
39
.github/workflows/build-exe.yml
vendored
39
.github/workflows/build-exe.yml
vendored
@@ -1,39 +0,0 @@
|
||||
name: Build Windows EXE
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["main"]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: windows
|
||||
defaults:
|
||||
run:
|
||||
shell: powershell
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: https://github.com/actions/checkout@v4
|
||||
|
||||
- name: Set up Python 3.9.1
|
||||
uses: https://github.com/actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.9.1"
|
||||
architecture: "x64"
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install pyinstaller keyboard pywin32
|
||||
|
||||
- name: Build EXE
|
||||
run: |
|
||||
python -m PyInstaller --clean --noconfirm --onefile --windowed --name Shortcut_Sync_PotPlayer main.py
|
||||
|
||||
- name: Upload artifact
|
||||
uses: https://github.com/actions/upload-artifact@v4
|
||||
with:
|
||||
name: Shortcut_Sync_PotPlayer-windows
|
||||
path: dist/Shortcut_Sync_PotPlayer.exe
|
||||
if-no-files-found: error
|
||||
|
||||
Reference in New Issue
Block a user