使用指定版本进行打包。

This commit is contained in:
Hommy
2026-05-27 07:58:17 +08:00
parent 43f768d049
commit 5448c716d2
+12 -3
View File
@@ -14,13 +14,14 @@ jobs:
strategy:
matrix:
include:
- os: windows-latest
# 固定 runner 大版本,避免 -latest 自动迁移导致构建环境突变
- os: windows-2022
platform: win
artifact_name: windows-build
build_command: build-win
installer_command: build-win-installer
green_command: build-win-green
- os: macos-latest
- os: macos-14
platform: mac
artifact_name: macos-build
build_command: build-mac
@@ -40,10 +41,18 @@ jobs:
- name: 设置Node.js环境
uses: actions/setup-node@v4
with:
node-version: '22'
node-version: '22.14.0'
cache: 'npm'
cache-dependency-path: desktop-client/package-lock.json
- name: 打印构建环境信息
run: |
echo "Runner OS: ${{ runner.os }}"
echo "Runner image: ${{ matrix.os }}"
node -v
npm -v
shell: bash
- name: 安装Electron依赖
run: npm ci
working-directory: ./desktop-client