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 }