fix(actions): update macOS notarization workflow to include Homebrew installation and DMG upload step for improved artifact management
Some checks failed
Test macOS Build Action / test-macos-build (push) Failing after 47m36s
Some checks failed
Test macOS Build Action / test-macos-build (push) Failing after 47m36s
This commit is contained in:
parent
48f6f631b5
commit
8344738968
@ -166,6 +166,36 @@ jobs:
|
|||||||
bundle-id: ${{ env.BUNDLE_ID }}
|
bundle-id: ${{ env.BUNDLE_ID }}
|
||||||
fallback-to-adhoc: 'false'
|
fallback-to-adhoc: 'false'
|
||||||
|
|
||||||
|
# Upload only the DMG file from the macos-notarize action
|
||||||
|
- name: Upload Standard DMG
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
if: steps.sign-and-notarize.outputs.notarized == 'true' && steps.sign-and-notarize.outputs.signed != 'none'
|
||||||
|
with:
|
||||||
|
name: LuckyWorld-macOS-Signed-Notarized-DMG
|
||||||
|
path: ${{ steps.sign-and-notarize.outputs.package-path }}
|
||||||
|
retention-days: 30
|
||||||
|
|
||||||
|
# Install create-dmg tool
|
||||||
|
- name: Install create-dmg tool
|
||||||
|
run: |
|
||||||
|
if ! command -v brew &> /dev/null; then
|
||||||
|
echo "Homebrew is not installed. Installing now..."
|
||||||
|
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
||||||
|
# Homebrew path'i environment'a ekle (Apple Silicon Mac için)
|
||||||
|
if [[ -d "/opt/homebrew/bin/" ]]; then
|
||||||
|
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
|
||||||
|
eval "$(/opt/homebrew/bin/brew shellenv)"
|
||||||
|
fi
|
||||||
|
# Intel Mac için
|
||||||
|
if [[ -d "/usr/local/bin/" ]]; then
|
||||||
|
echo 'eval "$(/usr/local/bin/brew shellenv)"' >> ~/.zprofile
|
||||||
|
eval "$(/usr/local/bin/brew shellenv)"
|
||||||
|
fi
|
||||||
|
echo "Homebrew installed successfully!"
|
||||||
|
fi
|
||||||
|
brew install create-dmg
|
||||||
|
shell: bash
|
||||||
|
|
||||||
# Create custom DMG with installer script
|
# Create custom DMG with installer script
|
||||||
- name: Create Custom DMG with Installer
|
- name: Create Custom DMG with Installer
|
||||||
if: steps.sign-and-notarize.outputs.notarized == 'true' && steps.sign-and-notarize.outputs.signed != 'none'
|
if: steps.sign-and-notarize.outputs.notarized == 'true' && steps.sign-and-notarize.outputs.signed != 'none'
|
||||||
@ -198,14 +228,6 @@ jobs:
|
|||||||
path: ${{ env.CUSTOM_DMG_PATH }}
|
path: ${{ env.CUSTOM_DMG_PATH }}
|
||||||
retention-days: 30
|
retention-days: 30
|
||||||
|
|
||||||
# Upload only the DMG file from the macos-notarize action
|
|
||||||
- name: Upload Standard DMG
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
if: steps.sign-and-notarize.outputs.notarized == 'true' && steps.sign-and-notarize.outputs.signed != 'none'
|
|
||||||
with:
|
|
||||||
name: LuckyWorld-macOS-Signed-Notarized-DMG
|
|
||||||
path: ${{ steps.sign-and-notarize.outputs.package-path }}
|
|
||||||
retention-days: 30
|
|
||||||
|
|
||||||
# Report results
|
# Report results
|
||||||
- name: Report Results
|
- name: Report Results
|
||||||
|
Loading…
x
Reference in New Issue
Block a user