Package and qualify standalone macOS designer with bundled runtime

This commit is contained in:
2026-11-13 22:06:35 +01:00
parent 9ab1a4f530
commit e865d7b4df
10 changed files with 600 additions and 10 deletions
@@ -1,8 +1,27 @@
package de.neitzel.fxdesigner.standalone;
/** Plain launcher supports the development classpath packaging of JavaFX. */
/** Plain entry point shared by the packaged launcher and development runs. */
public final class Launcher {
public static void main(String[] args) {
if (args.length == 1 && args[0].equals("--help")) {
System.out.println(StandaloneOptions.USAGE);
return;
}
if (args.length == 1 && args[0].equals("--version")) {
System.out.println(
"Neitzel FX Designer 0.1.0-SNAPSHOT; Java "
+ System.getProperty("java.version")
+ "; runtime "
+ System.getProperty("java.home"));
return;
}
try {
StandaloneOptions.parse(java.util.List.of(args));
} catch (IllegalArgumentException error) {
System.err.println(error.getMessage() + "\n" + StandaloneOptions.USAGE);
System.exit(2);
return;
}
javafx.application.Application.launch(DesignerApplication.class, args);
}
}