Build helix with a default runtime location and copy runtime into correct spot

This commit is contained in:
Gerald Pinder
2024-10-13 14:51:31 -04:00
parent 534edcfdcb
commit 50a8912891
2 changed files with 5 additions and 5 deletions

View File

@@ -10,9 +10,9 @@ cd /src/
git clone https://github.com/helix-editor/helix.git git clone https://github.com/helix-editor/helix.git
cd helix cd helix
RUSTFLAGS="-C target-feature=-crt-static" export HELIX_DEFAULT_RUNTIME=/usr/lib/helix/runtime
cargo install --path helix-term cargo build --profile opt --locked
mkdir -p /out/ mkdir -p /out/
mv $CARGO_HOME/bin/hx /out/hx mv target/opt/hx /out/hx
mv runtime /out/ mv runtime /out/

View File

@@ -12,5 +12,5 @@ modules:
dest: /usr/bin/ dest: /usr/bin/
- type: copy - type: copy
from: helix from: helix
src: /out/runtime src: /out/runtime/
dest: /usr/lib64/helix/ dest: /usr/lib/helix/runtime