might work now..

This commit is contained in:
pika 2025-05-25 12:51:16 +02:00
parent a8ecf08e55
commit 4f104d32be

24
ly.sh
View file

@ -194,30 +194,32 @@
echo-error "${err:-}" echo-error "${err:-}"
return 69 return 69
fi fi
cd ly || echo-error "cannot cd into ly" && exit 69
} }
build-ly() { build-ly() {
build-error() {
upclear
pen bold red "Could not build ly!"
throw bold red "${out:-}"
echo-error "${err:-}"
return 69
}
spin bold blue "Building ly with zig.." spin bold blue "Building ly with zig.."
zig init # zig init
if run --err err --out out zig build; then if run --err err --out out zig build; then
if run --err err --out out zig build installexe; then if run --err err --out out zig build installexe; then
upclear upclear
check "Build ly with zig successfully!" check "Build ly with zig successfully!"
else else
upclear build-error
pen bold red "Could not build ly!"
throw bold red "${out:-}"
echo-error "${err:-}"
return 69
fi fi
else else
upclear build-error
pen bold red "Could not build ly!"
throw bold red "${out:-}"
echo-error "${err:-}"
return 69
fi fi
} }