mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-06 20:42:57 +08:00
📦 Chore(custom): update test build file
This commit is contained in:
10
.github/workflows/test-build.yml
vendored
10
.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'
|
||||||
@@ -207,7 +203,7 @@ jobs:
|
|||||||
dist_electron/github/*
|
dist_electron/github/*
|
||||||
retention-days: 30
|
retention-days: 30
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
- name: Upload Linux yml
|
- name: Upload Linux yml
|
||||||
if: matrix.os == 'ubuntu-latest'
|
if: matrix.os == 'ubuntu-latest'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user