fix cliamp panel header, home dir lookup, and go install path

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-05 01:30:15 +00:00
co-authored by Claude Opus 4.6
parent 330b882d00
commit 451a61afb4
3 changed files with 28 additions and 34 deletions
+7 -5
View File
@@ -423,10 +423,12 @@ install_go() {
esac
echo " Installing Go ${GOLANG_VERSION} from official tarball..."
curl -fsSL "https://go.dev/dl/go${GOLANG_VERSION}.linux-${GO_ARCH}.tar.gz" -o /tmp/go.tar.gz
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf /tmp/go.tar.gz
rm -rf "$HOME/.local/go"
mkdir -p "$HOME/.local"
tar -C "$HOME/.local" -xzf /tmp/go.tar.gz
rm /tmp/go.tar.gz
export PATH="/usr/local/go/bin:$PATH"
export GOPATH="$HOME/.local/go-path"
export PATH="$HOME/.local/go/bin:$GOPATH/bin:$PATH"
;;
brew)
brew install go
@@ -503,7 +505,7 @@ fi
echo ""
echo "── cliamp ──"
GOPATH_BIN="${GOPATH:-$HOME/go}/bin"
GOPATH_BIN="${GOPATH:-$HOME/.local/go-path}/bin"
export PATH="$GOPATH_BIN:$PATH"
if has cliamp; then
@@ -844,7 +846,7 @@ echo "════════════════════════
echo ""
echo "Notes:"
echo " • PulseAudio null sink starts automatically with the server"
echo " • Make sure ~/go/bin is in your PATH for cliamp"
echo " • Make sure ~/.local/go/bin and ~/.local/go-path/bin are in your PATH for Go tools"
echo " • Make sure ~/.cargo/bin is in your PATH for Rust tools"
echo " • sharp, whisper-cpp, mlx-audio can be installed from Settings > Applications"
echo ""