From 7d29d9932ac8db255e2fe2cc2ca50f7366b4bdce Mon Sep 17 00:00:00 2001 From: BluDood Date: Fri, 15 Nov 2024 12:38:46 +0100 Subject: [PATCH] ci: upload artifacts, build macos universal --- .github/workflows/build-release.yml | 18 ++++++++++++++++++ electron-builder.yml | 3 +++ 2 files changed, 21 insertions(+) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 5a0fa12..c9f0f46 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -33,6 +33,12 @@ jobs: - name: Build the project run: npm run build:win + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: glancething-windows-artifact + path: ./dist/glancething-*-setup.exe + - name: Upload the zip to the GitHub Release if: github.event_name == 'release' && github.event.action == 'created' uses: softprops/action-gh-release@v2 @@ -57,6 +63,12 @@ jobs: - name: Build the project run: npm run build:mac + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: glancething-macos-artifact + path: ./dist/glancething-*.dmg + - name: Upload the zip to the GitHub Release if: github.event_name == 'release' && github.event.action == 'created' uses: softprops/action-gh-release@v2 @@ -88,6 +100,12 @@ jobs: run: zip -r /tmp/glancething-client-${GITHUB_REF_NAME}.zip ./* working-directory: ./client/dist + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: glancething-client-artifact + path: /tmp/glancething-client-*.zip + - name: Upload the zip to the GitHub Release if: github.event_name == 'release' && github.event.action == 'created' uses: softprops/action-gh-release@v2 diff --git a/electron-builder.yml b/electron-builder.yml index 557998d..9c27109 100644 --- a/electron-builder.yml +++ b/electron-builder.yml @@ -19,6 +19,9 @@ nsis: uninstallDisplayName: ${productName} createDesktopShortcut: always mac: + target: + - target: dmg + arch: universal entitlementsInherit: build/entitlements.mac.plist extendInfo: - NSCameraUsageDescription: Application requests access to the device's camera.