更新mac inter
This commit is contained in:
parent
bbbd6c294a
commit
d6d142c35f
20
.github/workflows/debug.yml
vendored
20
.github/workflows/debug.yml
vendored
@ -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 }}
|
||||
|
||||
@ -37,6 +37,9 @@ extraResources:
|
||||
win:
|
||||
target:
|
||||
- target: nsis
|
||||
arch:
|
||||
- x64
|
||||
- arm64
|
||||
icon: ./scripts/logo.ico
|
||||
|
||||
nsis:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user