# HG changeset patch # User Zeger Van de Vannet # Date 1712335676 -7200 # Node ID 6326025918faae971118c34b4aa8e32194dcac0e # Parent 333a6c27fdf2e258b1db1f674b0894bd2e064c1d feat: install custom helix build with mercurial support diff -r 333a6c27fdf2 -r 6326025918fa .chezmoiscripts/run_once_after_39-install-helix.sh.tmpl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.chezmoiscripts/run_once_after_39-install-helix.sh.tmpl Fri Apr 05 18:47:56 2024 +0200 @@ -0,0 +1,28 @@ +{{ if (eq .chezmoi.os "linux") -}} +#!/usr/bin/env bash + +# Increment to trigger a new build +# Build version 24.03-3 + +set -xe + +HELIX_BUILD_DIR=/tmp/helix +HELIX_INSTALL_DIR=$HOME/helix +HELIX_DEFAULT_RUNTIME=$HELIX_INSTALL_DIR/runtime + +rm -rf $HELIX_BUILD_DIR +git clone https://github.com/zegervdv/helix $HELIX_BUILD_DIR +cd $HELIX_BUILD_DIR + +git checkout zegervdv +pushd vendor +bash setup.sh +popd + +cargo build --release --locked +cp -r runtime $HELIX_DEFAULT_RUNTIME +cp target/release/hx $HELIX_INSTALL_DIR/hx + +ln -s $HELIX_INSTALL_DIR/hx $HOME/bin/hx + +{{ end }}