Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions deploy/install-host.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@ cd "$root"
test "$(git branch --show-current)" = "integration-v2"
test -z "$(git status --porcelain)"
test "$(git rev-parse HEAD)" = "$(git rev-parse origin/integration-v2)"
test "$(bun --version)" = "1.3.14"
bun_bin=$(command -v bun || true)
if [[ -z "$bun_bin" && -x "$HOME/.bun/bin/bun" ]]; then
bun_bin="$HOME/.bun/bin/bun"
fi
test -n "$bun_bin"
test "$("$bun_bin" --version)" = "1.3.14"

sha=$(git rev-parse HEAD)
if [[ "$mode" == "--check" ]]; then
Expand All @@ -37,7 +42,7 @@ case "$(uname -m)" in
esac

cd packages/cli
bun run script/build.ts --single --skip-install
"$bun_bin" run script/build.ts --single --skip-install
built="$PWD/dist/$target/bin/shuvcode"
destination="$HOME/.local/lib/shuvcode/$sha"
install -d -m 0755 "$destination"
Expand Down
Loading