might work now..
This commit is contained in:
parent
a8ecf08e55
commit
4f104d32be
1 changed files with 13 additions and 11 deletions
24
ly.sh
24
ly.sh
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue