Skip to content

Commit

Permalink
fix dmg build
Browse files Browse the repository at this point in the history
  • Loading branch information
demarey committed May 28, 2024
1 parent 9921a9f commit 6a691bf
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/upload-dmg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: macos-latest
strategy:
matrix:
arch: [64, arm64]
arch: [ arm64 ] # 64, arm64

steps:
- uses: actions/checkout@v4
Expand All @@ -27,12 +27,13 @@ jobs:

- name: Build ${{ matrix.arch }} mac os package
run: |
ARCHITECTURE=${{ matrix.arch }} VERSION=${{ github.event.inputs.pharo-launcher-version }} ./build.sh mac-package
APP_URL=$( [ "${{ matrix.arch }}" == "arm64" ] && echo "${{ github.event.inputs.arm-signed-archive-url }}" || echo "${{ github.event.inputs.signed-archive-url }}" )
curl -O $APP_URL
tar -xf *.tgz
find . -name PharoLauncher.app -exec mv {} . \;
VERSION=$VERSION_NUMBER APP_NAME=PharoLauncher SHOULD_SIGN=false ./mac/build-dmg.sh
local generated_dmg
# move PharoLauncher.app to the current directory
find . -name PharoLauncher.app -print0 | xargs -0 -I{} mv {} .
mv mac-installer-background.png background.png
ARCHITECTURE=${{ matrix.arch }} VERSION=${{ github.event.inputs.pharo-launcher-version }} APP_NAME=PharoLauncher SHOULD_SIGN=false ./mac/build-dmg.sh
generated_dmg=$(echo *.dmg)
mv "$generated_dmg" "PharoLauncher-$VERSION_NUMBER.dmg"
generated_dmg=$(echo *.dmg)
Expand All @@ -42,4 +43,5 @@ jobs:
with:
name: PharoLauncher-mac-installer-${{ github.event.inputs.pharo-launcher-version }}-${{ matrix.arch == '64' && 'x64' || matrix.arch }}
path: PharoLauncher-*.dmg
retention-days: 5

0 comments on commit 6a691bf

Please sign in to comment.