set i2p.dir.base to PROGRAMFILES/i2p
This commit is contained in:
2
build.sh
2
build.sh
@@ -35,7 +35,7 @@ cd build
|
|||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
if [ -z $I2P_VERSION ]; then
|
if [ -z $I2P_VERSION ]; then
|
||||||
I2P_VERSION=$("$JAVA_HOME"/bin/java -cp build/router.jar net.i2p.router.RouterVersion | sed "s/.*: //" | head -n 1)
|
I2P_VERSION=$("$JAVA_HOME"/bin/java -cp build/router.jar net.i2p.router.RouterVersion | sed "s/.*: //" | head -n 1 | sed 's|-|.|g')
|
||||||
fi
|
fi
|
||||||
echo "preparing to invoke jpackage for I2P version $I2P_VERSION"
|
echo "preparing to invoke jpackage for I2P version $I2P_VERSION"
|
||||||
|
|
||||||
|
|||||||
@@ -20,13 +20,8 @@ public class WinLauncher {
|
|||||||
private static final String LOCALAPPDATA = System.getenv("LOCALAPPDATA");
|
private static final String LOCALAPPDATA = System.getenv("LOCALAPPDATA");
|
||||||
|
|
||||||
public static void main(String[] args) throws Exception {
|
public static void main(String[] args) throws Exception {
|
||||||
for (int i = 0; i < args.length; i++){
|
|
||||||
System.out.println("arguments" + i + args[i]);
|
|
||||||
}
|
|
||||||
|
|
||||||
// String path = System.getProperty(APP_PATH, "unknown");
|
File programs = selectProgramFile();
|
||||||
File f = selectProgramFile();
|
|
||||||
File contents = f.getParentFile().getParentFile();
|
|
||||||
|
|
||||||
File home = selectHome();
|
File home = selectHome();
|
||||||
if (!home.exists())
|
if (!home.exists())
|
||||||
@@ -36,11 +31,7 @@ public class WinLauncher {
|
|||||||
System.exit(1);
|
System.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
System.setProperty("i2p.dir.base", programs.getAbsolutePath());
|
||||||
File resources = new File(contents, "Resources");
|
|
||||||
File bundleLocation = contents.getParentFile().getParentFile();
|
|
||||||
|
|
||||||
System.setProperty("i2p.dir.base", resources.getAbsolutePath());
|
|
||||||
System.setProperty("i2p.dir.config", home.getAbsolutePath());
|
System.setProperty("i2p.dir.config", home.getAbsolutePath());
|
||||||
System.setProperty("router.pid", String.valueOf(ProcessHandle.current().pid()));
|
System.setProperty("router.pid", String.valueOf(ProcessHandle.current().pid()));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user