From 95f1d439aba8e567b5c8971460ad6a74607bae2f Mon Sep 17 00:00:00 2001 From: Alberto De Bortoli Date: Sun, 26 Jul 2026 11:48:52 +0100 Subject: [PATCH] docs: reflect ~/.local/bin as the default no-sudo install location LucaScripts PR #17 switched install.sh's default INSTALL_DIR from /usr/local/bin to ~/.local/bin to avoid requiring sudo. Update the lingering /usr/local/bin references here to match: the "From Source" build instructions and the SudoInstalling doc comment, which now only applies as a fallback for non-writable install directories. --- README.md | 3 ++- Sources/ManagerCore/Core/SelfUpdater/SudoInstalling.swift | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 156b0a3..6fadf68 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,8 @@ echo "0.15.0" > .luca-version git clone https://github.com/LucaTools/Luca.git cd Luca swift build -c release -cp -f .build/release/luca /usr/local/bin/luca +mkdir -p ~/.local/bin +cp -f .build/release/luca ~/.local/bin/luca ``` On Linux, you can build a portable binary that doesn't require the Swift runtime: diff --git a/Sources/ManagerCore/Core/SelfUpdater/SudoInstalling.swift b/Sources/ManagerCore/Core/SelfUpdater/SudoInstalling.swift index 4ec81dd..832412c 100644 --- a/Sources/ManagerCore/Core/SelfUpdater/SudoInstalling.swift +++ b/Sources/ManagerCore/Core/SelfUpdater/SudoInstalling.swift @@ -15,7 +15,8 @@ protocol SudoInstalling { /// /// - Parameters: /// - source: Path of the file to install. - /// - destination: Target path (typically a privileged location such as `/usr/local/bin/luca`). + /// - destination: Target path. Only used as a fallback when the install directory isn't + /// user-writable, e.g. a privileged location such as `/usr/local/bin/luca`. /// - Returns: The `sudo` process termination status. func install(from source: URL, to destination: URL) async throws -> Int32 }