From 3748a6fc8f2025b5071cb8b5146e4e4e798692ba Mon Sep 17 00:00:00 2001 From: Andreas Wrede Date: Fri, 6 Feb 2026 15:39:26 -0500 Subject: [PATCH] add install script --- hbd/install.sh | 6 ------ install.sh | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 6 deletions(-) delete mode 100644 hbd/install.sh create mode 100644 install.sh diff --git a/hbd/install.sh b/hbd/install.sh deleted file mode 100644 index c86adf1..0000000 --- a/hbd/install.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -# install hbd/hbc from wheel and create symlinks for hbd and hbc in /usr/local/bin - -set -e -pip install --upgrade --force-reinstall --no-deps --find-links https://github.com/andreas-h/heartbeat/releases/latest/download/ heartbeat-hbd \ No newline at end of file diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..0a9139b --- /dev/null +++ b/install.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +# install hbd/hbc from wheel and create symlinks for hbd and hbc in ~/bin + +set -e +if [ ! -d ~/venvs/hbd ]; then + mkdir -p ~/venvs + python3 -m venv ~/venvs/hbd +fi +. ~/venvs/hbd/bin/activate +pip install 'git+ssh://git@git.wrede.ca/andreas/heartbeat.git' +rm -f ~/bin/hbd +rm -f ~/bin/hbc +ln -sf $(which hbd) ~/bin/hbd +ln -sf $(which hbc) ~/bin/hbc