Skip to content

Commit

Permalink
mac fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
crschnick committed Oct 28, 2024
1 parent 2efa8f0 commit 2720c08
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
10 changes: 10 additions & 0 deletions gradle/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,16 @@ task writeVersion(type: DefaultTask) {
task copyResources(type: Copy) {
into getResourcesDir() + '/resources'
from "${projectDir}/resources"

doLast {
if (org.gradle.internal.os.OperatingSystem.current().isMacOsX()) {
copy {
from "${projectDir}/resources/bin/rakaly_mac"
into "${getDistDir()}/Contents/MacOS"
}
}

}
}

task copyLang(type: Copy) {
Expand Down
2 changes: 0 additions & 2 deletions misc/macos_dmg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ echo "$DMG_FILE"
mkdir -p "$1/build/dist/"
rm -f "$DMG_FILE"

mv -f "$APP_DIR/Contents/Resources/resources/bin/rakaly_mac" "$APP_DIR/Contents/MacOS/rakaly_mac" || true

create-dmg \
--volname "Pdx-Unlimiter" \
--volicon "$1/misc/logo.icns" \
Expand Down
1 change: 0 additions & 1 deletion misc/macos_notarize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ set -e
APP_DIR="$1/build/dist/Pdx-Unlimiter.app"
ARCHIVE="$TMPDIR/notarization.zip"

mv -f "$APP_DIR/Contents/Resources/resources/bin/rakaly_mac" "$APP_DIR/Contents/MacOS/rakaly_mac" || true
codesign -vvv --deep --entitlements "$1/misc/Entitlements.plist" --options=runtime --force --strict --sign "Developer ID Application: Christopher Schnick (PF6V9HYACS)" "$APP_DIR/Contents/MacOS/Pdx-Unlimiter"
codesign -vvv --deep --options=runtime --force --strict --sign "Developer ID Application: Christopher Schnick (PF6V9HYACS)" "$APP_DIR/Contents/MacOS/rakaly_mac"

Expand Down

0 comments on commit 2720c08

Please sign in to comment.