mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-07-12 08:01:26 +08:00
📦 Chore(custom): update test build file
This commit is contained in:
8
.github/workflows/test-build.yml
vendored
8
.github/workflows/test-build.yml
vendored
@@ -81,17 +81,13 @@ jobs:
|
||||
if: matrix.os == 'macos-13'
|
||||
run: |
|
||||
# Remove arm64 from the arch array, keep only x64
|
||||
$config = Get-Content electron-builder.json | ConvertFrom-Json
|
||||
$config.mac.target[0].arch = @("x64")
|
||||
$config | ConvertTo-Json -Depth 10 | Set-Content electron-builder.json
|
||||
jq '.mac.target[0].arch = ["x64"]' electron-builder.json > tmp.json && mv tmp.json electron-builder.json
|
||||
|
||||
- name: Modify electron-builder.json for Macos ARM64
|
||||
if: matrix.os == 'macos-latest'
|
||||
run: |
|
||||
# Remove x64 from the arch array, keep only arm64
|
||||
$config = Get-Content electron-builder.json | ConvertFrom-Json
|
||||
$config.mac.target[0].arch = @("arm64")
|
||||
$config | ConvertTo-Json -Depth 10 | Set-Content electron-builder.json
|
||||
jq '.mac.target[0].arch = ["arm64"]' electron-builder.json > tmp.json && mv tmp.json electron-builder.json
|
||||
|
||||
- name: Build application (Windows x64)
|
||||
if: matrix.os == 'windows-latest' || matrix.os == 'windows-11-arm'
|
||||
|
||||
Reference in New Issue
Block a user