JAL-3631 Use the icon file passed by install4j if a newer getdown-launcher is relaunched
authorBen Soares <b.soares@dundee.ac.uk>
Tue, 25 Jun 2024 10:31:17 +0000 (11:31 +0100)
committerBen Soares <b.soares@dundee.ac.uk>
Tue, 25 Jun 2024 10:31:17 +0000 (11:31 +0100)
13 files changed:
getdown/lib/FJVL_VERSION
getdown/lib/JVL_VERSION
getdown/lib/getdown-core.jar
getdown/lib/getdown-launcher-local.jar
getdown/lib/getdown-launcher.jar
getdown/src/getdown/ant/pom.xml
getdown/src/getdown/core/pom.xml
getdown/src/getdown/core/src/main/java/com/threerings/getdown/data/EnvConfig.java
getdown/src/getdown/launcher/pom.xml
getdown/src/getdown/mvn_cmd
getdown/src/getdown/pom.xml
j11lib/getdown-core.jar
j8lib/getdown-core.jar

index 5658c0d..9a27132 100644 (file)
@@ -1 +1 @@
-1.8.3-1.4.1_FJVL
+1.8.3-1.5.0_FJVL
index de777a1..5446e8b 100644 (file)
@@ -1 +1 @@
-1.8.3-1.4.1_JVL
+1.8.3-1.5.0_JVL
index 7cb005e..3174687 100644 (file)
Binary files a/getdown/lib/getdown-core.jar and b/getdown/lib/getdown-core.jar differ
index cd0824c..85ed80e 100644 (file)
Binary files a/getdown/lib/getdown-launcher-local.jar and b/getdown/lib/getdown-launcher-local.jar differ
index d30f084..6809084 100644 (file)
Binary files a/getdown/lib/getdown-launcher.jar and b/getdown/lib/getdown-launcher.jar differ
index 75ec538..95aea5a 100644 (file)
@@ -4,7 +4,7 @@
   <parent>
     <groupId>com.threerings.getdown</groupId>
     <artifactId>getdown</artifactId>
-    <version>1.8.3-1.4.1_FJVL</version>
+    <version>1.8.3-1.5.0_FJVL</version>
   </parent>
 
   <artifactId>getdown-ant</artifactId>
index 4670d8d..6cd52f7 100644 (file)
@@ -4,7 +4,7 @@
   <parent>
     <groupId>com.threerings.getdown</groupId>
     <artifactId>getdown</artifactId>
-    <version>1.8.3-1.4.1_FJVL</version>
+    <version>1.8.3-1.5.0_FJVL</version>
   </parent>
 
   <artifactId>getdown-core</artifactId>
index e46904c..7271088 100644 (file)
@@ -205,8 +205,24 @@ public final class EnvConfig {
               List<String> addArgs = new ArrayList<>();
               addArgs.add(appDir);
               addArgs.add(appId);
+              
+              List<String> removeJvmArgs = null;
+              List<String> addJvmArgs = null;
+              String macIcons = System.getProperty("installer.mac_icons");
+              // we love our Mac users, so we do nice things to preserve our application identity
+              if (LaunchUtil.isMacOS()) {
+                removeJvmArgs = new ArrayList<>();
+                addJvmArgs = new ArrayList<>();
+                if (macIcons != null) {
+                  removeJvmArgs.add("-Xdock:icon=");
+                  addJvmArgs.add("-Xdock:icon=" + installerAppdir + File.separator + "resource" + File.separator + macIcons );
+                }
+                removeJvmArgs.add("-Xdock:name=");
+                addJvmArgs.add("-Xdock:name=" + ( appName != null ? appName : ChannelProperties.FALLBACK_APPNAME ));
+              }
+
               String startClassName = startClass == null ? null : startClass.getName();
-              int exitValue = LaunchUtils.startNewJvm(javaBin, null, null, prependClasspath, null, removeClasspath, startClassName, removeArgs, addArgs, Arrays.asList(argv), true, true, false, true, false); 
+              int exitValue = LaunchUtils.startNewJvm(javaBin, removeJvmArgs, addJvmArgs, prependClasspath, null, removeClasspath, startClassName, removeArgs, addArgs, Arrays.asList(argv), true, true, false, true, false); 
 
               if (exitValue == 0) {
                 notes.add(Note.info("Relaunching getdown succeeded.  Original getdown exiting now."));
index 13303fa..fbd20cf 100644 (file)
@@ -4,7 +4,7 @@
   <parent>
     <groupId>com.threerings.getdown</groupId>
     <artifactId>getdown</artifactId>
-    <version>1.8.3-1.4.1_FJVL</version>
+    <version>1.8.3-1.5.0_FJVL</version>
   </parent>
 
   <artifactId>getdown-launcher</artifactId>
index 50e69d6..41725cf 100755 (executable)
@@ -3,7 +3,7 @@
 if [ x$JVLVERSION != x ]; then
   export VERSION=$JVLVERSION
 else
-  export VERSION=1.8.3-1.4.1_JVL
+  export VERSION=1.8.3-1.5.0_JVL
 fi
 
 if [ x${VERSION%_JVL} = x$VERSION ]; then
index 4d7b0ec..3eb0565 100644 (file)
@@ -10,7 +10,7 @@
   <groupId>com.threerings.getdown</groupId>
   <artifactId>getdown</artifactId>
   <packaging>pom</packaging>
-  <version>1.8.3-1.4.1_FJVL</version>
+  <version>1.8.3-1.5.0_FJVL</version>
 
   <name>getdown</name>
   <description>An application installer and updater.</description>
index 7cb005e..3174687 100644 (file)
Binary files a/j11lib/getdown-core.jar and b/j11lib/getdown-core.jar differ
index 7cb005e..3174687 100644 (file)
Binary files a/j8lib/getdown-core.jar and b/j8lib/getdown-core.jar differ