compile cliphist

This commit is contained in:
Simon Rieger 2025-04-12 14:12:05 +02:00
parent 100be6c7a1
commit 5da6cee273

View file

@ -75,14 +75,13 @@ fi
# Cliphist mit Prüfung # Cliphist mit Prüfung
if [[ ! -f /usr/bin/cliphist ]]; then if [[ ! -f /usr/bin/cliphist ]]; then
ARCH="$(uname -m)" mkdir -p ${HOME}/repos
if [[ "$ARCH" == "aarch64" || "$ARCH" == "armv7l" ]]; then cd ${HOME}/repos
CLIPHIST_URL="https://github.com/sentriz/cliphist/releases/download/v0.6.1/v0.6.1-linux-arm" git clone https://github.com/sentriz/cliphist.git
else cd cliphist
CLIPHIST_URL="https://github.com/sentriz/cliphist/releases/download/v0.6.1/v0.6.1-linux-amd64" go build -o cliphist .
fi sudo cp cliphist /usr/bin/
sudo wget -O /usr/bin/cliphist "$CLIPHIST_URL" echo "cliphist wurde auf dem System installiert"
sudo chmod +x /usr/bin/cliphist
else else
echo "cliphist ist bereits installiert, überspringe Download" echo "cliphist ist bereits installiert, überspringe Download"
fi fi