From 6cea5e053d37807ad5e4af781107665639e775cb Mon Sep 17 00:00:00 2001 From: Vince Grassia <593223+vgrassia@users.noreply.github.com> Date: Tue, 2 Nov 2021 11:24:33 -0400 Subject: [PATCH] Add Universal DMG Artifact (#1136) --- .github/workflows/build.yml | 24 ++++++++++-------------- .github/workflows/release.yml | 6 +++--- package.json | 2 +- 3 files changed, 14 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fe0e222bb9..d62376e2ec 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -341,7 +341,7 @@ jobs: macos-build: name: MacOS Build - runs-on: macos-10.15 + runs-on: macos-11 needs: setup env: _PACKAGE_VERSION: ${{ needs.setup.outputs.package_version }} @@ -489,7 +489,7 @@ jobs: macos-package-github: name: MacOS Package GitHub Release Assets - runs-on: macos-10.15 + runs-on: macos-11 needs: [setup, macos-build] env: _PACKAGE_VERSION: ${{ needs.setup.outputs.package_version }} @@ -649,22 +649,22 @@ jobs: - name: Upload .zip artifact uses: actions/upload-artifact@ee69f02b3dfdecd58bb31b4d133da38ba6fe3700 # v2.2.3 with: - name: Bitwarden-${{ env._PACKAGE_VERSION }}-mac.zip - path: ./dist/Bitwarden-${{ env._PACKAGE_VERSION }}-mac.zip + name: Bitwarden-${{ env._PACKAGE_VERSION }}-universal-mac.zip + path: ./dist/Bitwarden-${{ env._PACKAGE_VERSION }}-universal-mac.zip if-no-files-found: error - name: Upload .dmg artifact uses: actions/upload-artifact@ee69f02b3dfdecd58bb31b4d133da38ba6fe3700 # v2.2.3 with: - name: Bitwarden-${{ env._PACKAGE_VERSION }}.dmg - path: ./dist/Bitwarden-${{ env._PACKAGE_VERSION }}.dmg + name: Bitwarden-${{ env._PACKAGE_VERSION }}-universal.dmg + path: ./dist/Bitwarden-${{ env._PACKAGE_VERSION }}-universal.dmg if-no-files-found: error - name: Upload .dmg blockmap artifact uses: actions/upload-artifact@ee69f02b3dfdecd58bb31b4d133da38ba6fe3700 # v2.2.3 with: - name: Bitwarden-${{ env._PACKAGE_VERSION }}.dmg.blockmap - path: ./dist/Bitwarden-${{ env._PACKAGE_VERSION }}.dmg.blockmap + name: Bitwarden-${{ env._PACKAGE_VERSION }}-universal.dmg.blockmap + path: ./dist/Bitwarden-${{ env._PACKAGE_VERSION }}-universal.dmg.blockmap if-no-files-found: error - name: Upload latest auto-update artifact @@ -677,7 +677,7 @@ jobs: macos-package-mas: name: MacOS Package Prod Release Asset - runs-on: macos-10.15 + runs-on: macos-11 needs: [setup, macos-build] env: _PACKAGE_VERSION: ${{ needs.setup.outputs.package_version }} @@ -833,8 +833,6 @@ jobs: env: APPLE_ID_USERNAME: ${{ secrets.APPLE_ID_USERNAME }} APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }} - SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/ - SDK_DIR: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/ - name: Upload .pkg artifact uses: actions/upload-artifact@ee69f02b3dfdecd58bb31b4d133da38ba6fe3700 # v2.2.3 @@ -847,7 +845,7 @@ jobs: macos-package-dev: name: MacOS Package Dev Release Asset if: false # We need to look into how code signing works for dev - runs-on: macos-10.15 + runs-on: macos-11 needs: [setup, macos-build] env: _PACKAGE_VERSION: ${{ needs.setup.outputs.package_version }} @@ -1003,8 +1001,6 @@ jobs: env: APPLE_ID_USERNAME: ${{ secrets.APPLE_ID_USERNAME }} APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }} - SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/ - SDK_DIR: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/ - name: Zip masdev asset working-directory: ./dist/mas-dev-universal diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c88915ba27..8dc87fe518 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -76,9 +76,9 @@ jobs: Bitwarden-${{ env.PKG_VERSION }}-arm64.nsis.7z, bitwarden.${{ env.PKG_VERSION }}.nupkg, latest.yml, - Bitwarden-${{ env.PKG_VERSION }}-mac.zip, - Bitwarden-${{ env.PKG_VERSION }}.dmg, - Bitwarden-${{ env.PKG_VERSION }}.dmg.blockmap, + Bitwarden-${{ env.PKG_VERSION }}-universal-mac.zip, + Bitwarden-${{ env.PKG_VERSION }}-universal.dmg, + Bitwarden-${{ env.PKG_VERSION }}-universal.dmg.blockmap, latest-mac.yml, Bitwarden-${{ env.PKG_VERSION }}-universal.pkg" commit: ${{ github.sha }} diff --git a/package.json b/package.json index b196a75cbf..574fefd5f4 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "clean:l10n": "git push origin --delete l10n_master", "pack:dir": "npm run clean:dist && electron-builder --dir -p never", "pack:lin": "npm run clean:dist && electron-builder --linux --x64 -p never", - "pack:mac": "npm run clean:dist && electron-builder --mac -p never", + "pack:mac": "npm run clean:dist && electron-builder --mac --universal -p never", "pack:mac:arm64": "npm run clean:dist && electron-builder --mac --arm64 -p never", "pack:mac:mas": "npm run clean:dist && electron-builder --mac mas --universal -p never", "pack:mac:masdev": "npm run clean:dist && electron-builder --mac mas-dev --universal -p never",