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
|
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/
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user