From 9925c29302e6ebd9c049a3c75cb9b32c627c8104 Mon Sep 17 00:00:00 2001 From: Wojciech Kulik <3128467+wojciech-kulik@users.noreply.github.com> Date: Mon, 25 Nov 2024 01:31:03 +0100 Subject: [PATCH] docs: updated documentation to be compatible with old macOS versions Resolves #254 --- doc/xcodebuild.txt | 14 ++++++++------ lua/xcodebuild/docs/ios17.lua | 7 ++++--- lua/xcodebuild/integrations/xcodebuild-offline.lua | 7 ++++--- 3 files changed, 16 insertions(+), 12 deletions(-) diff --git a/doc/xcodebuild.txt b/doc/xcodebuild.txt index 8e2cd2b..9df441b 100644 --- a/doc/xcodebuild.txt +++ b/doc/xcodebuild.txt @@ -605,11 +605,12 @@ Update your config with: 👉 Run the following command to install & protect the script >bash - DEST="$HOME/Library/xcodebuild.nvim/remote_debugger" && \ + DEST="$HOME/Library/xcodebuild.nvim" && \ SOURCE="$HOME/.local/share/nvim/lazy/xcodebuild.nvim/tools/remote_debugger" && \ ME="$(whoami)" && \ - sudo install -m 755 -o root -D "$SOURCE" "$DEST" && \ - sudo bash -c "echo \"$ME ALL = (ALL) NOPASSWD: $DEST\" >> /etc/sudoers" + sudo install -d -m 755 -o root "$DEST" && \ + sudo install -m 755 -o root "$SOURCE" "$DEST" && \ + sudo bash -c "echo \"$ME ALL = (ALL) NOPASSWD: $DEST/remote_debugger\" >> /etc/sudoers" < See also: https://github.com/doronz88/pymobiledevice3/blob/master/misc/RemoteXPC.md#trusted-tunnel @@ -4002,11 +4003,12 @@ Update your config with: 👉 Run the following command to install & protect the script >bash - DEST="$HOME/Library/xcodebuild.nvim/xcodebuild_offline" && \ + DEST="$HOME/Library/xcodebuild.nvim" && \ SOURCE="$HOME/.local/share/nvim/lazy/xcodebuild.nvim/tools/xcodebuild_offline" && \ ME="$(whoami)" && \ - sudo install -m 755 -o root -D "$SOURCE" "$DEST" && \ - sudo bash -c "echo \"$ME ALL = (ALL) NOPASSWD: $DEST\" >> /etc/sudoers" + sudo install -d -m 755 -o root "$DEST" && \ + sudo install -m 755 -o root "$SOURCE" "$DEST" && \ + sudo bash -c "echo \"$ME ALL = (ALL) NOPASSWD: $DEST/xcodebuild_offline\" >> /etc/sudoers" < diff --git a/lua/xcodebuild/docs/ios17.lua b/lua/xcodebuild/docs/ios17.lua index 2d9184b..b2b12a7 100644 --- a/lua/xcodebuild/docs/ios17.lua +++ b/lua/xcodebuild/docs/ios17.lua @@ -38,11 +38,12 @@ ---👉 Run the following command to install & protect the script --- --->bash ---- DEST="$HOME/Library/xcodebuild.nvim/remote_debugger" && \ +--- DEST="$HOME/Library/xcodebuild.nvim" && \ --- SOURCE="$HOME/.local/share/nvim/lazy/xcodebuild.nvim/tools/remote_debugger" && \ --- ME="$(whoami)" && \ ---- sudo install -m 755 -o root -D "$SOURCE" "$DEST" && \ ---- sudo bash -c "echo \"$ME ALL = (ALL) NOPASSWD: $DEST\" >> /etc/sudoers" +--- sudo install -d -m 755 -o root "$DEST" && \ +--- sudo install -m 755 -o root "$SOURCE" "$DEST" && \ +--- sudo bash -c "echo \"$ME ALL = (ALL) NOPASSWD: $DEST/remote_debugger\" >> /etc/sudoers" ---< --- ---See also: https://github.com/doronz88/pymobiledevice3/blob/master/misc/RemoteXPC.md#trusted-tunnel diff --git a/lua/xcodebuild/integrations/xcodebuild-offline.lua b/lua/xcodebuild/integrations/xcodebuild-offline.lua index 18cc300..887cd5f 100644 --- a/lua/xcodebuild/integrations/xcodebuild-offline.lua +++ b/lua/xcodebuild/integrations/xcodebuild-offline.lua @@ -67,11 +67,12 @@ ---👉 Run the following command to install & protect the script --- --->bash ---- DEST="$HOME/Library/xcodebuild.nvim/xcodebuild_offline" && \ +--- DEST="$HOME/Library/xcodebuild.nvim" && \ --- SOURCE="$HOME/.local/share/nvim/lazy/xcodebuild.nvim/tools/xcodebuild_offline" && \ --- ME="$(whoami)" && \ ---- sudo install -m 755 -o root -D "$SOURCE" "$DEST" && \ ---- sudo bash -c "echo \"$ME ALL = (ALL) NOPASSWD: $DEST\" >> /etc/sudoers" +--- sudo install -d -m 755 -o root "$DEST" && \ +--- sudo install -m 755 -o root "$SOURCE" "$DEST" && \ +--- sudo bash -c "echo \"$ME ALL = (ALL) NOPASSWD: $DEST/xcodebuild_offline\" >> /etc/sudoers" ---< --- ---