Updated code to check if there is JVM already running

This commit is contained in:
2025-10-10 16:58:49 +01:00
parent b30b104f7a
commit c4b568dde1
2 changed files with 2 additions and 2 deletions

View File

@@ -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/"

View File

@@ -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),
);