Added new jar and support for manga (tachiyomi)
This commit is contained in:
28
installJRE.sh
Normal file → Executable file
28
installJRE.sh
Normal file → Executable file
@@ -1,10 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Usage: ./setup_jre.sh <platform>
|
||||
# Example: ./setup_jre.sh macos
|
||||
|
||||
set -e
|
||||
|
||||
PLATFORM=$1
|
||||
|
||||
if [ -z "$PLATFORM" ]; then
|
||||
@@ -13,16 +9,15 @@ if [ -z "$PLATFORM" ]; then
|
||||
fi
|
||||
|
||||
PROJECT_DIR=$(pwd)
|
||||
JRE_SRC="$PROJECT_DIR/jre/$PLATFORM/customjre"
|
||||
|
||||
if [ ! -d "$JRE_SRC" ]; then
|
||||
echo "Error: JRE source folder not found: $JRE_SRC"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
case "$PLATFORM" in
|
||||
macos)
|
||||
# Locate Flutter macOS build output
|
||||
JRE_SRC="/Users/kevin/IdeaProjects/k3vinb5_aniyomi_bridge/jre/$PLATFORM/customjre"
|
||||
if [ ! -d "$JRE_SRC" ]; then
|
||||
echo "Error: JRE source folder not found: $JRE_SRC"
|
||||
exit 1
|
||||
fi
|
||||
APP_BUNDLE="$PROJECT_DIR/build/macos/Build/Products/Debug/Runner.app"
|
||||
RESOURCES_DIR="$APP_BUNDLE/Contents/Resources"
|
||||
mkdir -p "$RESOURCES_DIR/jre"
|
||||
@@ -32,20 +27,17 @@ case "$PLATFORM" in
|
||||
|
||||
linux)
|
||||
# Linux Flutter executable folder
|
||||
JRE_SRC="/home/kevin/Projects/k3vinb5_aniyomi_bridge/jre/$PLATFORM/customjre"
|
||||
if [ ! -d "$JRE_SRC" ]; then
|
||||
echo "Error: JRE source folder not found: $JRE_SRC"
|
||||
exit 1
|
||||
fi
|
||||
BUILD_DIR="$PROJECT_DIR/build/linux/x64/debug/bundle"
|
||||
mkdir -p "$BUILD_DIR/jre"
|
||||
cp -R "$JRE_SRC" "$BUILD_DIR/jre/"
|
||||
echo "Copied custom JRE to $BUILD_DIR/jre/"
|
||||
;;
|
||||
|
||||
windows)
|
||||
# Windows Flutter executable folder
|
||||
BUILD_DIR="$PROJECT_DIR/build/windows/runner/Debug"
|
||||
mkdir -p "$BUILD_DIR/jre"
|
||||
cp -R "$JRE_SRC" "$BUILD_DIR/jre/"
|
||||
echo "Copied custom JRE to $BUILD_DIR/jre/"
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Unsupported platform: $PLATFORM"
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user