mirror of
https://github.com/NohamR/RMHook-iOS.git
synced 2026-08-26 10:12:15 +00:00
Adds a new 3.28.0 build target with its macro, Qt 6.10.3 toolchain version, and iOS target settings in `script/build.sh`. Updates hook offsets in `src/Tweak.xm` for `QNetworkAccessManager::createRequest` and `QWebSocket::open`, bumps package version in `src/control` to 3.28.0, and aligns README setup instructions with the new Qt/app version mapping.
48 lines
1.4 KiB
Bash
Executable File
48 lines
1.4 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# Default to 3.25.0 if no argument is provided
|
|
VERSION=${1:-3.25.0}
|
|
|
|
if [ "$VERSION" == "3.17.0" ]; then
|
|
MACRO="-DV3_17_0=1"
|
|
QT_VERSION="6.5.3"
|
|
TARGET="iphone:latest:14.0"
|
|
elif [ "$VERSION" == "3.25.0" ]; then
|
|
MACRO="-DV3_25_0=1"
|
|
QT_VERSION="6.8.2"
|
|
TARGET="iphone:latest:16.0"
|
|
elif [ "$VERSION" == "3.26.0" ]; then
|
|
MACRO="-DV3_26_0=1"
|
|
QT_VERSION="6.8.2"
|
|
TARGET="iphone:latest:17.0"
|
|
elif [ "$VERSION" == "3.27.0" ]; then
|
|
MACRO="-DV3_27_0=1"
|
|
QT_VERSION="6.10.0"
|
|
TARGET="iphone:latest:17.0"
|
|
elif [ "$VERSION" == "3.27.1" ]; then
|
|
MACRO="-DV3_27_1=1"
|
|
QT_VERSION="6.10.0"
|
|
TARGET="iphone:latest:17.0"
|
|
elif [ "$VERSION" == "3.28.0" ]; then
|
|
MACRO="-DV3_28_0=1"
|
|
QT_VERSION="6.10.3"
|
|
TARGET="iphone:latest:17.0"
|
|
else
|
|
echo "Error: Unknown version '$VERSION'. Supported versions are: 3.17.0, 3.25.0, 3.26.0, 3.27.0, 3.27.1 and 3.28.0."
|
|
exit 1
|
|
fi
|
|
|
|
MODE=${2:-dev}
|
|
|
|
echo "Building for reMarkable version: $VERSION ($MACRO) in $MODE mode"
|
|
|
|
make clean
|
|
|
|
if [ "$MODE" == "release" ]; then
|
|
# Modify control file to set the version to match the target app version
|
|
sed -i '' "s/^Version: .*/Version: $VERSION/" control
|
|
make package THEOS_PACKAGE_SCHEME=rootless FINALPACKAGE=1 RM_VERSION_FLAG="$MACRO" QT_VERSION="$QT_VERSION" TARGET="$TARGET"
|
|
else
|
|
make package THEOS_PACKAGE_SCHEME=rootless DEBUG=0 RM_VERSION_FLAG="$MACRO" QT_VERSION="$QT_VERSION" TARGET="$TARGET"
|
|
fi
|