forked from LostCityRS/Server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.bat
More file actions
40 lines (33 loc) · 793 Bytes
/
start.bat
File metadata and controls
40 lines (33 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
@echo off
where /q git
if errorlevel 1 (
echo You must install Git to proceed: https://git-scm.com
exit /b
)
where /q node
if errorlevel 1 (
echo You must install Node to proceed: https://nodejs.org/en
exit /b
)
where /q bun
if errorlevel 1 (
npm i -g bun
)
where /q bun
if errorlevel 1 (
echo You must install Bun to proceed: https://bun.sh
exit /b
)
where /q java
if errorlevel 1 (
echo You must install Java 17 or newer to proceed: https://adoptium.net/
exit /b
)
for /f tokens^=2-5^ delims^=.-_^" %%j in ('java -fullversion 2^>^&1') do set "jver=%%j%%k%"
if %jver% lss 170 (
echo You must install Java 17 or newer to proceed: https://adoptium.net/
echo And it must be your primary Java version!
exit /b
)
bun install
bun run start.ts