From 50a8912891cdc9f28d98ad96a930cd72afe840b7 Mon Sep 17 00:00:00 2001 From: Gerald Pinder <4626052+gmpinder@users.noreply.github.com> Date: Sun, 13 Oct 2024 14:51:31 -0400 Subject: [PATCH] Build helix with a default runtime location and copy runtime into correct spot --- files/scripts/install-helix.sh | 6 +++--- recipes/common/helix.yml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/files/scripts/install-helix.sh b/files/scripts/install-helix.sh index 27458a4..8aa2d73 100644 --- a/files/scripts/install-helix.sh +++ b/files/scripts/install-helix.sh @@ -10,9 +10,9 @@ cd /src/ git clone https://github.com/helix-editor/helix.git cd helix -RUSTFLAGS="-C target-feature=-crt-static" -cargo install --path helix-term +export HELIX_DEFAULT_RUNTIME=/usr/lib/helix/runtime +cargo build --profile opt --locked mkdir -p /out/ -mv $CARGO_HOME/bin/hx /out/hx +mv target/opt/hx /out/hx mv runtime /out/ diff --git a/recipes/common/helix.yml b/recipes/common/helix.yml index b20766c..2254f92 100644 --- a/recipes/common/helix.yml +++ b/recipes/common/helix.yml @@ -12,5 +12,5 @@ modules: dest: /usr/bin/ - type: copy from: helix - src: /out/runtime - dest: /usr/lib64/helix/ + src: /out/runtime/ + dest: /usr/lib/helix/runtime