mirror of
https://github.com/Hommy-master/capcut-mate.git
synced 2026-08-28 23:27:50 +08:00
使用指定版本进行打包。
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user