Skip to content

Commit 90fa4c8

Browse files
committed
Add MacOS aarch64
1 parent 0350b00 commit 90fa4c8

6 files changed

Lines changed: 43 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
distribution: temurin
1616
java-version: 21
1717
- name: Install wine
18-
run: sudo dpkg --add-architecture i386 && sudo apt-get update && sudo apt install -y xorg xvfb xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic wine32:i386 wine
18+
run: sudo dpkg --add-architecture i386 && sudo apt-get update && sudo apt install -y xorg xvfb xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic wine32:i386 wine makepkg
1919
- name: Grant execute permission for gradle
2020
run: chmod +x gradlew
2121
- name: Build the SDK

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@ installers/downloads/
3131
installers/nbpackage/
3232
installers/linux-x64/jdk-x64_linux.tar.gz
3333
installers/macos-x64/jdk-x64_macos.tar.gz
34-
installers/windows-x64/jdk-x64_windows.zip
34+
installers/windows-x64/jdk-x64_windows.zip
35+
installers/macos-aarch64/jdk-aarch64_macos.tar.gz

installers/build-installers.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ function build_macos_pgk {
9797
echo "> Building the MacOS pgk"
9898

9999
build_macos_x64_pgk $1
100+
build_macos_aarch64_pgk $1
100101

101102
echo "< OK!"
102103
}
@@ -109,6 +110,14 @@ function build_macos_x64_pgk {
109110
echo "<< OK!"
110111
}
111112

113+
function build_macos_aarch64_pgk {
114+
echo ">> Building the MacOS aarch64 pgk"
115+
116+
./nbpackage/nbpackage-$nbpackage_version/bin/nbpackage --input ../dist/jmonkeyplatform.zip --config macos-aarch64/jmonkeyengine-macos-aarch64.properties --output ../dist/ -v -Ppackage.version=$1
117+
118+
echo "<< OK!"
119+
}
120+
112121
echo "Building installers with version tag $1"
113122

114123
versionString=$1

installers/download-jdks.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ function build_mac_jdk {
2424
echo "> Getting the Mac JDK"
2525

2626
download_jdk x64 macos .tar.gz
27+
download_jdk aarch64 macos .tar.gz
2728

2829
echo "< OK!"
2930
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Application name (required).
2+
package.name=jMonkeyEngine SDK
3+
# Packaging type.
4+
package.type=macos-pkg
5+
# Path to Java runtime to include in the package (default none).
6+
package.runtime=${CONFIG}/jdk-aarch64_macos.tar.gz
7+
# A single-line description of the package. Not all packagers will display this.
8+
package.description=A complete 3D game development suite written purely in Java.
9+
# Application publisher. Not all packagers will display this.
10+
package.publisher=${package.name}
11+
# Link to application / publisher website. Not all packagers will display this.
12+
package.url=https://jmonkeyengine.org
13+
# Value for CFBundleIdentifier.
14+
package.macos.bundleid=org.jmonkeyengine.sdk
15+
# Path to icon file (*.icns). Defaults to Apache NetBeans logo.
16+
package.macos.icon=${CONFIG}/jmonkeyplatform.icns
17+
# Optional path to Info.plist template.
18+
package.macos.info-template=
19+
# Optional path to launcher (main.swift) template.
20+
package.macos.launcher-template=
21+
# Optional path to codesign entitlements template.
22+
package.macos.entitlements-template=
23+
# Search pattern for native binaries that need to be code signed.
24+
package.macos.codesign-files={*.dylib,*.jnilib,**/nativeexecution/MacOSX-*/*,Contents/Home/bin/*,Contents/Home/lib/jspawnhelper}
25+
# Search pattern for JARs that bundle native binaries that need to be code signed.
26+
package.macos.codesign-jars={flatlaf-*.jar,jna-5*.jar,junixsocket-native-common-*.jar,launcher-common-*.jar,jansi-*.jar,nbi-engine.jar,truffle-runtime-*.jar}
27+
# Code signing identity as passed to Codesign.
28+
package.macos.codesign-id=
29+
# Installer signing identity as passed to Pkgbuild.
30+
package.macos.pkgbuild-id=
363 KB
Binary file not shown.

0 commit comments

Comments
 (0)