From fb43706d65c0011d9e73b19d4bff076ee0abff5e Mon Sep 17 00:00:00 2001 From: miu <205594122@qq.com> Date: Sun, 15 Mar 2026 05:04:04 +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 | 35 +++++++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-exe.yml b/.github/workflows/build-exe.yml index 4c7deb9..6446773 100644 --- a/.github/workflows/build-exe.yml +++ b/.github/workflows/build-exe.yml @@ -6,24 +6,43 @@ on: jobs: build: - runs-on: Ubuntu_docker_act # 现在这个标签指向 runner-images + runs-on: Ubuntu_docker_act steps: + - name: Install Node.js and Python + run: | + apt-get update + apt-get install -y curl wget git + + # 安装 Node.js 18 + curl -fsSL https://deb.nodesource.com/setup_18.x | bash - + apt-get install -y nodejs + + # 安装 Python 3.13 + apt-get install -y software-properties-common + add-apt-repository ppa:deadsnakes/ppa -y + apt-get update + apt-get install -y python3.13 python3.13-dev python3.13-distutils + curl -sS https://bootstrap.pypa.io/get-pip.py | python3.13 + ln -sf /usr/bin/python3.13 /usr/bin/python + ln -sf /usr/bin/python3.13 /usr/bin/python3 + + # 验证安装 + node --version + python --version + - uses: actions/checkout@v4 - # 直接使用,不需要 container 指定 - - name: Setup Python - uses: actions/setup-python@v5 - with: - python-version: "3.13.9" + - name: Setup Python (确保使用正确的版本) + run: | + python --version + pip --version - name: Install dependencies - shell: pwsh run: | python -m pip install --upgrade pip pip install pyinstaller keyboard pywin32 - name: Build EXE - shell: pwsh run: | pyinstaller --onefile --windowed --name Shortcut_Sync_PotPlayer main.py