Updated code to check if there is JVM already running
This commit is contained in:
@@ -18,7 +18,7 @@ case "$PLATFORM" in
|
||||
echo "Error: JRE source folder not found: $JRE_SRC"
|
||||
exit 1
|
||||
fi
|
||||
APP_BUNDLE="$PROJECT_DIR/build/macos/Build/Products/Debug/Runner.app"
|
||||
APP_BUNDLE="$PROJECT_DIR/build/macos/Build/Products/Debug/unyo.app"
|
||||
RESOURCES_DIR="$APP_BUNDLE/Contents/Resources"
|
||||
mkdir -p "$RESOURCES_DIR/jre"
|
||||
cp -R "$JRE_SRC" "$RESOURCES_DIR/jre/"
|
||||
|
||||
@@ -29,7 +29,7 @@ class AniyomiBridge {
|
||||
Directory supportDirectory = await getApplicationSupportDirectory();
|
||||
_supportDirectoryPath = supportDirectory.path;
|
||||
await _loadJarIfNeeded(supportDirectory);
|
||||
Jni.spawn(
|
||||
Jni.spawnIfNotExists(
|
||||
dylibDir: _getDylibDir(supportDirectory),
|
||||
classPath: _getClassPath(supportDirectory),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user