Proper implementation

This commit is contained in:
√(noham)²
2026-08-27 16:15:57 +02:00
parent ce1df6f27d
commit 3f1b4fd728
13 changed files with 866 additions and 891 deletions

View File

@@ -29,7 +29,7 @@ case "$BUILD_MODE" in
DYLIB_NAME="all.dylib"
;;
*)
DYLIB_NAME="reMarkable.dylib"
DYLIB_NAME="RMHook.dylib"
;;
esac
@@ -55,7 +55,7 @@ case "$BUILD_MODE" in
;;
esac
echo "🔨 Compiling reMarkable.dylib (mode: $BUILD_MODE)..."
echo "🔨 Compiling RMHook.dylib (mode: $BUILD_MODE)..."
echo "📦 Qt path: $QT_PATH"
# Create build directories if necessary
@@ -70,12 +70,12 @@ else
cmake $CMAKE_OPTIONS ..
fi
make reMarkable
make RMHook
if [ $? -eq 0 ]; then
# Rename the produced dylib so each build mode has a distinct file name
DYLIB_DIR="$PROJECT_DIR/build/dylibs"
DEFAULT_DYLIB="$DYLIB_DIR/reMarkable.dylib"
DEFAULT_DYLIB="$DYLIB_DIR/RMHook.dylib"
TARGET_DYLIB="$DYLIB_DIR/$DYLIB_NAME"
if [ -f "$DEFAULT_DYLIB" ]; then