From 7c7eeec5532efd15f1627c12aff5e29e8ed9249b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ACT=E4=B8=B6=E6=B5=81=E6=98=9F=E9=9B=A8?= <1340145680@qq.com> Date: Sun, 5 Apr 2026 23:25:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3mac?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/debug.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/debug.yml b/.github/workflows/debug.yml index 7d94f8a..5306aef 100644 --- a/.github/workflows/debug.yml +++ b/.github/workflows/debug.yml @@ -76,8 +76,7 @@ jobs: - name: 安装目标平台 sharp if: matrix.arch == 'x64' run: | - yarn add --ignore-scripts @img/sharp-darwin-x64 - ls node_modules/@img/ + npm install --no-save --ignore-scripts --force @img/sharp-darwin-x64 - name: 打包 macOS 安装程序 run: yarn dist:mac --${{ matrix.arch }} @@ -119,6 +118,11 @@ jobs: env: npm_config_arch: ${{ matrix.arch }} + - name: 安装目标平台 sharp + if: matrix.arch == 'arm64' + run: | + npm install --no-save --ignore-scripts --force @img/sharp-linux-arm64 + - name: 打包 Linux 安装程序 run: yarn dist:linux --${{ matrix.arch }} env: @@ -142,10 +146,10 @@ jobs: - name: 输出构建结果 run: | echo "===== 构建测试完成 =====" - echo "Windows x64: ${{ needs.build-Windows.result }}" - echo "Windows arm64: ${{ needs.build-Windows.result }}" + echo "Windows: ${{ needs.build-Windows.result }}" echo "macOS Apple Silicon: ${{ needs.build-macOS.result }}" echo "macOS Intel: ${{ needs.build-macOS.result }}" echo "Linux x64: ${{ needs.build-Linux.result }}" + echo "Linux arm64: ${{ needs.build-Linux.result }}" echo "" echo "构建产物将保留 7 天,可在 Actions 页面下载。"