From fe769d84b32b7202d6dbb953a023c69c29809cb9 Mon Sep 17 00:00:00 2001 From: Anirudh Sevugan Date: Thu, 7 Aug 2025 20:39:42 -0500 Subject: [PATCH] Update build-macos.yml --- .github/workflows/build-macos.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.yml index 2b97a6a..122b29d 100644 --- a/.github/workflows/build-macos.yml +++ b/.github/workflows/build-macos.yml @@ -22,11 +22,25 @@ jobs: - name: Install dependencies run: npm install working-directory: simpliplay + + - name: Build and package macOS app + run: npx electron-builder --mac --x64 --arm64 + working-directory: simpliplay - - name: Build macOS app (Ad-hoc signing) - run: npx electron-builder --mac --x64 --arm64 --universal + - name: Force ad-hoc signing + run: | + # The path to your packaged .app file + APP_PATH="dist/mac/SimpliPlay.app" + + # Use the native codesign tool to apply an ad-hoc signature + codesign --force --deep --sign - "$APP_PATH" + codesign --force --deep --sign - "dist/mac-arm64/SimpliPlay.app" working-directory: simpliplay + - name: Build universal macOS app + run: npx electron-builder --mac --universal + working-directory: simpliplay + - name: Upload artifacts uses: actions/upload-artifact@v4 with: