diff --git a/.github/workflows/upload-dmg.yml b/.github/workflows/upload-dmg.yml index ce5113b2..b400029d 100644 --- a/.github/workflows/upload-dmg.yml +++ b/.github/workflows/upload-dmg.yml @@ -18,7 +18,7 @@ jobs: runs-on: macos-latest strategy: matrix: - arch: [64, arm64] + arch: [ arm64 ] # 64, arm64 steps: - uses: actions/checkout@v4 @@ -27,11 +27,11 @@ 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" ] && ${{ github.event.inputs.arm-signed-archive-url }} || ${{ 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 + ARCHITECTURE=${{ matrix.arch }} VERSION=${{ github.event.inputs.pharo-launcher-version }} APP_NAME=PharoLauncher SHOULD_SIGN=false ./mac/build-dmg.sh local generated_dmg generated_dmg=$(echo *.dmg) mv "$generated_dmg" "PharoLauncher-$VERSION_NUMBER.dmg" @@ -42,4 +42,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 \ No newline at end of file