Harden build and injection shell scripts

This commit is contained in:
√(noham)²
2026-08-25 23:40:08 +02:00
parent b672c6596f
commit b7f27b1671
3 changed files with 89 additions and 67 deletions

View File

@@ -95,6 +95,7 @@ echo "✅ Qt libraries ready at $QT_LIB_DIR"
# --- Step 2: Compile native hooking library ---
echo "[2/2] Compiling $SO_NAME..."
# shellcheck disable=SC2086
"$CC" -shared -fPIC -O2 -std=c++17 -stdlib=libc++ -fno-exceptions -fno-rtti \
-DQT_NO_VERSION_TAGGING \
-o "$BUILD_DIR/$SO_NAME" \
@@ -120,4 +121,4 @@ echo "📍 Library: $BUILD_DIR/$SO_NAME ($(ls -lh "$BUILD_DIR/$SO_NAME" | awk '{
echo ""
echo "🚀 To inject into the reMarkable application:"
echo " ./script/inject.sh"
echo ""
echo ""