comparison .chezmoiscripts/run_once_after_39-install-helix.sh.tmpl @ 865:6326025918fa

feat: install custom helix build with mercurial support
author Zeger Van de Vannet <zeger@vandevan.net>
date Fri, 05 Apr 2024 18:47:56 +0200
parents
children 7af4c092f6c2 3e2b701ca7f1
comparison
equal deleted inserted replaced
860:333a6c27fdf2 865:6326025918fa
1 {{ if (eq .chezmoi.os "linux") -}}
2 #!/usr/bin/env bash
3
4 # Increment to trigger a new build
5 # Build version 24.03-3
6
7 set -xe
8
9 HELIX_BUILD_DIR=/tmp/helix
10 HELIX_INSTALL_DIR=$HOME/helix
11 HELIX_DEFAULT_RUNTIME=$HELIX_INSTALL_DIR/runtime
12
13 rm -rf $HELIX_BUILD_DIR
14 git clone https://github.com/zegervdv/helix $HELIX_BUILD_DIR
15 cd $HELIX_BUILD_DIR
16
17 git checkout zegervdv
18 pushd vendor
19 bash setup.sh
20 popd
21
22 cargo build --release --locked
23 cp -r runtime $HELIX_DEFAULT_RUNTIME
24 cp target/release/hx $HELIX_INSTALL_DIR/hx
25
26 ln -s $HELIX_INSTALL_DIR/hx $HOME/bin/hx
27
28 {{ end }}