Files
Pazaz 7c1ba90b8c chore: Removed Java dependency
Users still need Java for the Java applet (optional), may need to check/prompt for that later
2026-04-03 01:06:45 -04:00

37 lines
896 B
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/sh
if ! command -v git 2>&1 >/dev/null; then
echo You must install Git to proceed
exit 1
fi
if ! command -v bun 2>&1 >/dev/null; then
if command -v npm 2>&1 >/dev/null; then
npm i -g bun
fi
if ! command -v bun 2>&1 >/dev/null; then
echo You must install Bun to proceed
exit 1
fi
fi
# if ! command -v java 2>&1 >/dev/null; then
# echo You must install Java 17 or newer to proceed
# exit 1
# fi
# todo: this can return a non-empty string and fail on macOS
# "The operation couldnt be completed. Unable to locate a Java Runtime.
# Please visit http://www.java.com for information on installing Java."
# jver=$(java -version 2>&1 | head -1 | cut -d'"' -f2 | sed '/^1\./s///' | cut -d'.' -f1)
# if [ "$jver" -lt 17 ]; then
# echo You must install Java 17 or newer to proceed
# echo And it must be your primary Java version!
# exit 1
# fi
bun install
bun run start.ts