fix builder

This commit is contained in:
pompurin404 2024-08-06 20:02:26 +08:00
parent 0aed136366
commit e6a33f093e
No known key found for this signature in database
2 changed files with 19 additions and 1 deletions

View File

@ -32,10 +32,16 @@ jobs:
with:
version: 9
- name: Install Dependencies
env:
npm_config_arch: ${{ matrix.arch }}
npm_config_target_arch: ${{ matrix.arch }}
run: |
pnpm install
pnpm prepare --${{ matrix.arch }}
- name: Build
env:
npm_config_arch: ${{ matrix.arch }}
npm_config_target_arch: ${{ matrix.arch }}
run: pnpm build:win --${{ matrix.arch }}
- name: Upload Artifacts
uses: actions/upload-artifact@v4
@ -74,10 +80,16 @@ jobs:
with:
version: 9
- name: Install Dependencies
env:
npm_config_arch: ${{ matrix.arch }}
npm_config_target_arch: ${{ matrix.arch }}
run: |
pnpm install
pnpm prepare --${{ matrix.arch }}
- name: Build
env:
npm_config_arch: ${{ matrix.arch }}
npm_config_target_arch: ${{ matrix.arch }}
run: pnpm build:linux --${{ matrix.arch }}
- name: Upload Artifacts
uses: actions/upload-artifact@v4
@ -118,10 +130,16 @@ jobs:
with:
version: 9
- name: Install Dependencies
env:
npm_config_arch: ${{ matrix.arch }}
npm_config_target_arch: ${{ matrix.arch }}
run: |
pnpm install
pnpm prepare --${{ matrix.arch }}
- name: Build
env:
npm_config_arch: ${{ matrix.arch }}
npm_config_target_arch: ${{ matrix.arch }}
run: pnpm build:mac --${{ matrix.arch }}
- name: Upload Artifacts
uses: actions/upload-artifact@v4

View File

@ -53,5 +53,5 @@ linux:
maintainer: mihomo-party
category: Utility
artifactName: ${name}-linux-${version}-${arch}.${ext}
npmRebuild: false
npmRebuild: true
publish: []