Skip to content

Commit

Permalink
Build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
crschnick committed Nov 3, 2024
1 parent 987231e commit cf13398
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ jobs:
cache: gradle
github-token: ${{ secrets.JRELEASER_GITHUB_TOKEN }}

- name: Echo JAVA_HOME
run: echo $JAVA_HOME
- name: Verify Gradle Wrapper
uses: gradle/wrapper-validation-action@v1

- name: Install create-dmg for macOS
run: ${{ !startsWith(matrix.os, 'mac') }} || brew install create-dmg
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion gradle/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ task bundleDmg(type: org.gradle.api.DefaultTask) {
commandLine "$projectDir/misc/macos_notarize.sh", "$projectDir"
}
exec {
commandLine "$projectDir/misc/macos_dmg.sh", "$projectDir"
commandLine "$projectDir/misc/macos_dmg.sh", "$projectDir", System.getProperty("os.arch") == 'aarch64' ? 'arm64' : 'x86_64'
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion misc/macos_dmg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

set -e

ARCH="$2"
APP_DIR="$1/build/dist/Pdx-Unlimiter.app"
DMG_FILE="$1/build/pdx_unlimiter-macos-x86_64.dmg"
DMG_FILE="$1/build/pdx_unlimiter-macos-$ARCH.dmg"

echo "$DMG_FILE"
mkdir -p "$1/build/dist/"
Expand Down

0 comments on commit cf13398

Please sign in to comment.