浏览代码

MacOS installer

Toni Helenius 2 周之前
父节点
当前提交
5493eeaecf

+ 19 - 0
installers/build-installers.sh

@@ -87,7 +87,26 @@ function download_inno_setup {
     fi
     fi
 }
 }
 
 
+function build_macos_pgk {
+    echo "> Building the MacOS pgk"
+    
+    build_macos_x64_pgk
+
+    echo "< OK!"
+}
+
+function build_macos_x64_pgk {
+    echo ">> Building the MacOS x64 pgk"
+    
+    setup_inno_setup
+
+    ./nbpackage/nbpackage-$nbpackage_version/bin/nbpackage --input ../dist/jmonkeyplatform.zip --config macos-x64/jmonkeyengine-macos-x64.properties --output ../dist/ -Ppackage.version=3.8.0
+
+    echo "<< OK!"
+}
+
 download_nbpackage
 download_nbpackage
 prepare_nbpackage
 prepare_nbpackage
 build_linux_deb
 build_linux_deb
 build_windows_installer
 build_windows_installer
+build_macos_pgk

+ 30 - 0
installers/macos-x64/jmonkeyengine-macos-x64.properties

@@ -0,0 +1,30 @@
+# Application name (required).
+package.name=jMonkeyEngine SDK
+# Packaging type.
+package.type=macos-pkg
+# Path to Java runtime to include in the package (default none).
+package.runtime=${CONFIG}/jdk-x64_mac.tar.gz
+# A single-line description of the package. Not all packagers will display this.
+package.description=A complete 3D game development suite written purely in Java.
+# Application publisher. Not all packagers will display this.
+package.publisher=${package.name}
+# Link to application / publisher website. Not all packagers will display this.
+package.url=https://jmonkeyengine.org
+# Value for CFBundleIdentifier.
+package.macos.bundleid=org.jmonkeyengine.sdk
+# Path to icon file (*.icns). Defaults to Apache NetBeans logo.
+package.macos.icon=${CONFIG}/jmonkeyplatform.icns
+# Optional path to Info.plist template.
+package.macos.info-template=
+# Optional path to launcher (main.swift) template.
+package.macos.launcher-template=
+# Optional path to codesign entitlements template.
+package.macos.entitlements-template=
+# Search pattern for native binaries that need to be code signed.
+package.macos.codesign-files={*.dylib,*.jnilib,**/nativeexecution/MacOSX-*/*,Contents/Home/bin/*,Contents/Home/lib/jspawnhelper}
+# Search pattern for JARs that bundle native binaries that need to be code signed.
+package.macos.codesign-jars={flatlaf-*.jar,jna-5*.jar,junixsocket-native-common-*.jar,launcher-common-*.jar,jansi-*.jar,nbi-engine.jar,truffle-runtime-*.jar}
+# Code signing identity as passed to Codesign.
+package.macos.codesign-id=
+# Installer signing identity as passed to Pkgbuild.
+package.macos.pkgbuild-id=

+ 0 - 0
jmonkeyplatform.icns → installers/macos-x64/jmonkeyplatform.icns