fix(actions): set CI environment variables in macOS notarization workflow to streamline DMG creation process

This commit is contained in:
Ozgur 2025-04-17 15:48:39 +02:00
parent fb88e4f057
commit bbd5bc67f0
No known key found for this signature in database
GPG Key ID: 66CDF27505A35546

View File

@ -195,6 +195,14 @@ jobs:
fi
brew install create-dmg
shell: bash
# Set CI environment variables
- name: Set CI Environment Variables
run: |
echo "Setting CI environment variables"
echo "CI=true" >> $GITHUB_ENV
echo "GITEA_ACTIONS=true" >> $GITHUB_ENV
shell: bash
# Create custom DMG with installer script
- name: Create Custom DMG with Installer
@ -202,16 +210,9 @@ jobs:
run: |
echo "🔧 Creating custom DMG with installer script..."
# Set CI environment variables
export CI=true
export GITEA_ACTIONS=true
# Ensure app is in the expected location after notarization
APP_PATH="${{ env.APP_PATH }}"
# Direct DMG creation approach for CI
echo "Creating DMG directly with hdiutil for CI environment..."
# Setup directories
mkdir -p "./PackagedReleases/Install"
rm -rf "./PackagedReleases/Install/*" 2>/dev/null || true