Update README and inject.sh for compatibility and ownership

Added compatibility information for reMarkable Desktop v3.23.0 and included a new screenshot in the README. Moved the ownership change step earlier in scripts/inject.sh to ensure correct permissions before code signing.
This commit is contained in:
√(noham)²
2025-11-05 22:00:37 +01:00
parent 55c41e78bf
commit 18abae42b7
3 changed files with 14 additions and 6 deletions

View File

@@ -45,6 +45,12 @@ fi
echo "[INFO] Executable name: $APP_NAME"
# Change ownership to current user
CURRENT_USER=$(whoami)
CURRENT_GROUP=$(id -gn)
echo "Changing ownership to $CURRENT_USER:$CURRENT_GROUP for $APP_PATH ..."
sudo chown -R "$CURRENT_USER:$CURRENT_GROUP" "$APP_PATH"
EXECUTABLE_PATH="$APP_PATH/Contents/MacOS/$APP_NAME"
if [ ! -f "$EXECUTABLE_PATH" ]; then
echo "[ERROR] The specified executable ($EXECUTABLE_PATH) does not exist."
@@ -67,12 +73,6 @@ sudo xattr -cr "$EXECUTABLE_PATH"
echo "Signed successfully."
# Change ownership to current user
CURRENT_USER=$(whoami)
CURRENT_GROUP=$(id -gn)
echo "Changing ownership to $CURRENT_USER:$CURRENT_GROUP for $APP_PATH ..."
sudo chown -R "$CURRENT_USER:$CURRENT_GROUP" "$APP_PATH"
# Remove _MASReceipt if it exists
RECEIPT_PATH="$APP_PATH/Contents/_MASReceipt"
if [ -d "$RECEIPT_PATH" ]; then