-1.8.3-1.5.0_FJVL
+1.8.3-1.5.1_FJVL
-1.8.3-1.5.0_JVL
+1.8.3-1.5.1_JVL
<parent>
<groupId>com.threerings.getdown</groupId>
<artifactId>getdown</artifactId>
- <version>1.8.3-1.5.0_FJVL</version>
+ <version>1.8.3-1.5.1_FJVL</version>
</parent>
<artifactId>getdown-ant</artifactId>
<parent>
<groupId>com.threerings.getdown</groupId>
<artifactId>getdown</artifactId>
- <version>1.8.3-1.5.0_FJVL</version>
+ <version>1.8.3-1.5.1_FJVL</version>
</parent>
<artifactId>getdown-core</artifactId>
String appDataPath;
String append;
+ boolean addHome = true;
if (LaunchUtil.isMacOS()) {
appDataPath = osAppDataPathMap.get("macos");
append = appname;
appDataPath = osAppDataPathMap.get("other");
append = appdirname.toLowerCase(Locale.ROOT);
}
- String returnString = home + FS + appDataPath + FS + append + FS+ appDirHash + FS + "app";
- return returnString;
+ String setUserAppDirPath = System.getProperty(SET_USER_APPDIR_PATH);
+ // do not use a setUserAppDirPath with ".." in it
+ if (!StringUtil.isBlank(setUserAppDirPath) && setUserAppDirPath.indexOf("..") == -1) {
+ if (setUserAppDirPath.startsWith("~" + FS)) {
+ setUserAppDirPath = home + setUserAppDirPath.substring(1);
+ }
+ appDataPath = setUserAppDirPath.replaceAll("%u", System.getProperty("user.name")).replaceAll("%h", home);
+ addHome = false;
+ }
+
+ StringBuilder sb = new StringBuilder();
+ if (addHome) {
+ sb.append(home).append(FS);
+ }
+ sb.append(appDataPath).append(FS);
+ sb.append(append).append(FS);
+ sb.append(appDirHash).append(FS);
+ sb.append("app");
+ return sb.toString();
}
public static void setRelaunched(boolean b) {
protected static final String APPLICATION_APPDIR_PROPERTY = "installer.appdir";
- protected static final String POPULATE_DEFAULT_APPDIR_PROPERTY= "populatedefaultappdir";
+ protected static final String POPULATE_DEFAULT_APPDIR_PROPERTY = "populatedefaultappdir";
+
+ protected static final String SET_USER_APPDIR_PATH = "setuserappdirpath";
private static final Map<String,String> osAppDataPathMap;
<parent>
<groupId>com.threerings.getdown</groupId>
<artifactId>getdown</artifactId>
- <version>1.8.3-1.5.0_FJVL</version>
+ <version>1.8.3-1.5.1_FJVL</version>
</parent>
<artifactId>getdown-launcher</artifactId>
+++ /dev/null
-//
-// Getdown - application installer, patcher and launcher
-// Copyright (C) 2004-2018 Getdown authors
-// https://github.com/threerings/getdown/blob/master/LICENSE
-
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <modelVersion>4.0.0</modelVersion>
- <groupId>jregistrykey</groupId>
- <artifactId>jregistrykey</artifactId>
- <version>1.0</version>
- <description>POM was created from install:install-file</description>
-</project>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<metadata>
- <groupId>jregistrykey</groupId>
- <artifactId>jregistrykey</artifactId>
- <version>1.0</version>
- <versioning>
- <versions>
- <version>1.0</version>
- </versions>
- <lastUpdated>20101118155146</lastUpdated>
- </versioning>
-</metadata>
+++ /dev/null
-Main-Class: com.threerings.getdown.launcher.Getdown
-Permissions: all-permissions
-Application-Name: Getdown
-Codebase: *
-Application-Library-Allowable-Codebase: *
-Caller-Allowable-Codebase: *
if [ x$JVLVERSION != x ]; then
export VERSION=$JVLVERSION
else
- export VERSION=1.8.3-1.5.0_JVL
+ export VERSION=1.8.3-1.5.1_JVL
fi
if [ x${VERSION%_JVL} = x$VERSION ]; then
<groupId>com.threerings.getdown</groupId>
<artifactId>getdown</artifactId>
<packaging>pom</packaging>
- <version>1.8.3-1.5.0_FJVL</version>
+ <version>1.8.3-1.5.1_FJVL</version>
<name>getdown</name>
<description>An application installer and updater.</description>