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 ..
|
||||
|
||||
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
|
||||
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");
|
||||
|
||||
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 f = selectProgramFile();
|
||||
File contents = f.getParentFile().getParentFile();
|
||||
File programs = selectProgramFile();
|
||||
|
||||
File home = selectHome();
|
||||
if (!home.exists())
|
||||
@@ -36,11 +31,7 @@ public class WinLauncher {
|
||||
System.exit(1);
|
||||
}
|
||||
|
||||
|
||||
File resources = new File(contents, "Resources");
|
||||
File bundleLocation = contents.getParentFile().getParentFile();
|
||||
|
||||
System.setProperty("i2p.dir.base", resources.getAbsolutePath());
|
||||
System.setProperty("i2p.dir.base", programs.getAbsolutePath());
|
||||
System.setProperty("i2p.dir.config", home.getAbsolutePath());
|
||||
System.setProperty("router.pid", String.valueOf(ProcessHandle.current().pid()));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user