mirror of
https://github.com/NohamR/RMHook.git
synced 2026-01-10 06:28:12 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user