Merge branch 'main' of https://git.hsdi.cc/Hsdi/Shortcut_Sync_PotPlayer
Some checks failed
Build Windows EXE / build (push) Has been cancelled
Some checks failed
Build Windows EXE / build (push) Has been cancelled
This commit is contained in:
25
.github/workflows/build-exe.yml
vendored
25
.github/workflows/build-exe.yml
vendored
@@ -7,27 +7,32 @@ on:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: windows-latest
|
||||
runs-on:
|
||||
group: 全局
|
||||
labels: windows
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Python
|
||||
- name: Set up Python 3.9.1
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.9"
|
||||
python-version: "3.9.1"
|
||||
architecture: "x64"
|
||||
|
||||
- name: Install deps
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
pip install pyinstaller keyboard pywin32
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install pyinstaller keyboard pywin32
|
||||
|
||||
- name: Build EXE
|
||||
run: |
|
||||
pyinstaller --onefile --windowed --name Shortcut_Sync_PotPlayer main.py
|
||||
python -m PyInstaller --clean --noconfirm --onefile --windowed --name Shortcut_Sync_PotPlayer main.py
|
||||
|
||||
- name: Upload
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: exe
|
||||
path: dist/Shortcut_Sync_PotPlayer.exe
|
||||
name: Shortcut_Sync_PotPlayer-windows
|
||||
path: dist/Shortcut_Sync_PotPlayer.exe
|
||||
if-no-files-found: error
|
||||
|
||||
Reference in New Issue
Block a user