19 lines
314 B
Bash
19 lines
314 B
Bash
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
apt-get update && apt-get install -y git
|
|
|
|
mkdir -p /src/
|
|
cd /src/
|
|
|
|
git clone https://github.com/helix-editor/helix.git
|
|
cd helix
|
|
|
|
export HELIX_DEFAULT_RUNTIME=/usr/lib/helix/runtime
|
|
cargo build --profile opt --locked
|
|
|
|
mkdir -p /out/
|
|
mv target/opt/hx /out/hx
|
|
mv runtime /out/
|