更新 .github/workflows/build-exe.yml
Some checks failed
Build Windows EXE / build (push) Failing after 10s

This commit is contained in:
miu
2026-03-15 04:59:16 +08:00
Unverified
parent c0003b533b
commit ed650cc590

View File

@@ -1,5 +1,4 @@
name: Build Windows EXE
on:
push:
branches: ["main"]
@@ -7,37 +6,24 @@ on:
jobs:
build:
runs-on: Ubuntu_docker_act # 使用上面的标签
container:
image: ubuntu-latest
runs-on: Ubuntu_docker_act # 现在这个标签指向 runner-images
steps:
- uses: actions/checkout@v4
# Node.js 已经预装,直接使用
- name: Node.js version
run: node --version
# Python 已经预装,直接使用
- name: Python version
run: python --version
- name: Checkout
uses: actions/checkout@v4
# 直接使用,不需要 container 指定
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.13.9"
- name: Install dependencies
shell: powershell
shell: pwsh
run: |
python -m pip install --upgrade pip
pip install pyinstaller keyboard pywin32
- name: Build EXE
shell: powershell
shell: pwsh
run: |
pyinstaller --onefile --windowed --name Shortcut_Sync_PotPlayer main.py