Fix: Build Mac no dmg job failing due to MACOS_NOTIFICATION_STATE_NO_SDK_CHECK (#3394)
This commit is contained in:
7
.github/workflows/ci.yaml
vendored
7
.github/workflows/ci.yaml
vendored
@@ -161,6 +161,11 @@ jobs:
|
||||
brew install yq
|
||||
jq '.mac.target=["zip"]' electron-builder.json | jq '.mac.gatekeeperAssess=false' > /tmp/electron-builder.json && cp /tmp/electron-builder.json .
|
||||
sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
|
||||
export SDKROOT=$(xcrun --sdk macosx --show-sdk-path)
|
||||
echo "SDKROOT=$SDKROOT" >> $GITHUB_ENV
|
||||
xcrun --sdk macosx --show-sdk-version
|
||||
xcodebuild -version
|
||||
ls -l /Applications/Xcode_16.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
|
||||
npm ci
|
||||
- name: ci/test
|
||||
uses: ./.github/actions/test
|
||||
@@ -170,6 +175,8 @@ jobs:
|
||||
npm run package:mac
|
||||
bash -x ./scripts/patch_updater_yml.sh
|
||||
bash -x ./scripts/cp_artifacts.sh release ./build/macos/
|
||||
env:
|
||||
SDKROOT: ${{ env.SDKROOT }}
|
||||
- name: ci/upload-test-results
|
||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
||||
with:
|
||||
|
Reference in New Issue
Block a user