mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-23 09:12:57 +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'
|
if: matrix.os == 'macos-13'
|
||||||
run: |
|
run: |
|
||||||
# Remove arm64 from the arch array, keep only x64
|
# Remove arm64 from the arch array, keep only x64
|
||||||
$config = Get-Content electron-builder.json | ConvertFrom-Json
|
jq '.mac.target[0].arch = ["x64"]' electron-builder.json > tmp.json && mv tmp.json electron-builder.json
|
||||||
$config.mac.target[0].arch = @("x64")
|
|
||||||
$config | ConvertTo-Json -Depth 10 | Set-Content electron-builder.json
|
|
||||||
|
|
||||||
- name: Modify electron-builder.json for Macos ARM64
|
- name: Modify electron-builder.json for Macos ARM64
|
||||||
if: matrix.os == 'macos-latest'
|
if: matrix.os == 'macos-latest'
|
||||||
run: |
|
run: |
|
||||||
# Remove x64 from the arch array, keep only arm64
|
# Remove x64 from the arch array, keep only arm64
|
||||||
$config = Get-Content electron-builder.json | ConvertFrom-Json
|
jq '.mac.target[0].arch = ["arm64"]' electron-builder.json > tmp.json && mv tmp.json electron-builder.json
|
||||||
$config.mac.target[0].arch = @("arm64")
|
|
||||||
$config | ConvertTo-Json -Depth 10 | Set-Content electron-builder.json
|
|
||||||
|
|
||||||
- name: Build application (Windows x64)
|
- name: Build application (Windows x64)
|
||||||
if: matrix.os == 'windows-latest' || matrix.os == 'windows-11-arm'
|
if: matrix.os == 'windows-latest' || matrix.os == 'windows-11-arm'
|
||||||
|
|||||||
Reference in New Issue
Block a user