Build helix with a default runtime location and copy runtime into correct spot
This commit is contained in:
@@ -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/
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user