Add an i2p.dir.lib property

This commit is contained in:
idk
2021-10-26 16:22:36 +00:00
parent 685a2f1e39
commit 7e1c8c7983
9 changed files with 25 additions and 11 deletions

View File

@@ -1349,7 +1349,7 @@ public class Router implements RouterClock.ClockShiftListener {
// only do this on these OSes
boolean goodOS = isWin || isMac ||
osName.contains("linux") || osName.contains("freebsd");
File jbigiJar = new File(_context.getBaseDir(), "lib/jbigi.jar");
File jbigiJar = new File(_context.getLibDir(), "jbigi.jar");
if (goodOS && jbigiJar.exists() && _context.getBaseDir().canWrite()) {
String libPrefix = isWin ? "" : "lib";
String libSuffix = isWin ? ".dll" : isMac ? ".jnilib" : ".so";

View File

@@ -135,7 +135,7 @@ public class InstallUpdate {
boolean goodOS = isWin || isMac ||
osName.contains("linux") || osName.contains("freebsd");
File jbigiJar = new File(context.getBaseDir(), "lib/jbigi.jar");
File jbigiJar = new File(context.getLibDir(), "jbigi.jar");
if (goodOS && jbigiJar.exists()) {
String libPrefix = (isWin ? "" : "lib");
String libSuffix = (isWin ? ".dll" : isMac ? ".jnilib" : ".so");