更新mac inter

This commit is contained in:
ACT丶流星雨 2026-04-05 23:20:16 +08:00
parent bbbd6c294a
commit d6d142c35f
2 changed files with 9 additions and 14 deletions

View File

@ -16,17 +16,8 @@ env:
jobs:
# ==================== Windows 构建 ====================
build-Windows:
strategy:
fail-fast: false
matrix:
include:
- arch: x64
name: x64
- arch: arm64
name: ARM64
runs-on: windows-latest
name: 构建 Windows (${{ matrix.name }})
name: 构建 Windows
steps:
- name: 检出代码
@ -39,8 +30,6 @@ jobs:
- name: 安装依赖
run: yarn install --frozen-lockfile
env:
npm_config_arch: ${{ matrix.arch }}
- name: 打包 Windows 安装程序
run: yarn dist:win
@ -50,7 +39,7 @@ jobs:
- name: 上传构建产物
uses: actions/upload-artifact@v4
with:
name: windows-${{ matrix.arch }}
name: windows
path: dist/*.exe
retention-days: 7
@ -85,7 +74,10 @@ jobs:
npm_config_arch: ${{ matrix.arch }}
- name: 安装目标平台 sharp
run: npm install --os=darwin --cpu=${{ matrix.arch }} sharp
if: matrix.arch == 'x64'
run: |
yarn add --ignore-scripts @img/sharp-darwin-x64
ls node_modules/@img/
- name: 打包 macOS 安装程序
run: yarn dist:mac --${{ matrix.arch }}

View File

@ -37,6 +37,9 @@ extraResources:
win:
target:
- target: nsis
arch:
- x64
- arm64
icon: ./scripts/logo.ico
nsis: