mirror of
https://github.com/LostCityRS/Server.git
synced 2026-05-06 08:56:48 -04:00
7c1ba90b8c
Users still need Java for the Java applet (optional), may need to check/prompt for that later
37 lines
896 B
Bash
Executable File
37 lines
896 B
Bash
Executable File
#!/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 couldn’t 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
|