Build both DMG and ZIP for both arm64 and intel architectures

Save ZIP file in mac build artifact instead of DMG file
This commit is contained in:
Jonatan Heyman 2023-01-17 01:24:38 +01:00
parent 0862fb6a07
commit d361a5a073
2 changed files with 5 additions and 6 deletions

View File

@ -43,7 +43,7 @@ jobs:
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: heynote-macos-${{ github.sha }} name: heynote-macos-${{ github.sha }}
path: release/*/Heynote_[0-9].[0-9].[0-9]*.dmg path: release/*/Heynote_[0-9].[0-9].[0-9]*.zip
retention-days: 1 retention-days: 1
- name: Upload Windows artifact - name: Upload Windows artifact

View File

@ -14,17 +14,16 @@
"dist" "dist"
], ],
"mac": { "mac": {
"artifactName": "${productName}_${version}.${ext}", "artifactName": "${productName}_${version}_${arch}.${ext}",
"target": [ "target": [
"dmg", {
/*{
target: 'default', target: 'default',
arch: [ arch: [
'x64', 'x64',
'arm64' 'arm64'
] ]
}*/ }
] ],
}, },
"win": { "win": {
"target": [ "target": [