From ed650cc5901149feb63d5a65d689a6b52f0cba53 Mon Sep 17 00:00:00 2001 From: miu <205594122@qq.com> Date: Sun, 15 Mar 2026 04:59:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.github/workflows/build-ex?= =?UTF-8?q?e.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-exe.yml | 30 ++++++++---------------------- 1 file changed, 8 insertions(+), 22 deletions(-) diff --git a/.github/workflows/build-exe.yml b/.github/workflows/build-exe.yml index 12ba46d..4c7deb9 100644 --- a/.github/workflows/build-exe.yml +++ b/.github/workflows/build-exe.yml @@ -1,5 +1,4 @@ name: Build Windows EXE - on: push: branches: ["main"] @@ -7,42 +6,29 @@ 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 - + - name: Upload Artifact uses: actions/upload-artifact@v4 with: name: Shortcut_Sync_PotPlayer - path: dist/Shortcut_Sync_PotPlayer.exe + path: dist/Shortcut_Sync_PotPlayer.exe \ No newline at end of file