diff --git a/LICENSE b/LICENSE index e4597ac..a8903b4 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2025 Lost City +Copyright (c) 2025-2026 Lost City Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 306b6e7..9af6ad2 100644 --- a/README.md +++ b/README.md @@ -24,8 +24,8 @@ You can press `ctrl + c` to cancel/quit out of a terminal process. ## Dependencies - Git CLI - Windows users: [git-scm](https://git-scm.com/) -- [NodeJS 22](https://nodejs.org/) -- [Java 17 or newer](https://adoptium.net/) +- [NodeJS 22+](https://nodejs.org/) +- [Java 17+](https://adoptium.net/) > [!TIP] > If you're using VS Code (recommended), [we have an extension to install on the marketplace.](https://marketplace.visualstudio.com/items?itemName=2004scape.runescriptlanguage) diff --git a/bun.lock b/bun.lock index 1e1ec05..2d24802 100644 --- a/bun.lock +++ b/bun.lock @@ -1,5 +1,6 @@ { "lockfileVersion": 1, + "configVersion": 0, "workspaces": { "": { "name": "server", diff --git a/start.sh b/start.sh index adc8505..f1f0451 100755 --- a/start.sh +++ b/start.sh @@ -6,8 +6,14 @@ if ! command -v git 2>&1 >/dev/null; then fi if ! command -v bun 2>&1 >/dev/null; then - echo You must install Bun to proceed - exit 1 + 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 diff --git a/start.ts b/start.ts index 3c99e16..7a0c9cd 100644 --- a/start.ts +++ b/start.ts @@ -41,6 +41,7 @@ type RevInfo = { description: string; webclient?: boolean; wip?: boolean; + clientBranch?: string; } const revInfo: Record = { @@ -58,7 +59,12 @@ const revInfo: Record = { }, '254': { description: 'September 7, 2004', - wip: true + webclient: true + }, + '377-wip': { + description: 'May 5, 2006', + wip: true, + clientBranch: '377' } }; @@ -83,7 +89,7 @@ async function main() { } if (!fs.existsSync('javaclient')) { - cloneRepo(javaRepo, 'javaclient', config.rev); + cloneRepo(javaRepo, 'javaclient', revInfo[config.rev]?.clientBranch ?? config.rev); } if (!fs.existsSync('engine/.env')) { @@ -110,11 +116,17 @@ async function main() { name: 'Update Source', description: 'Pull the latest commits for all subprojects', value: 'update' - }, { + }, + revInfo[config.rev]?.webclient ? { name: 'Run Web Client', description: 'Opens your browser to play using the modern web client (TypeScript)', value: 'web' - }, { + } : { + name: 'Run Web Client (unavailable)', + description: 'Not available in this version.', + value: '' + }, + { name: 'Run Java Client', description: 'Opens the legacy Java applet to play using the original client', value: 'java' @@ -175,7 +187,7 @@ async function promptConfig() { let choices = []; for (const [rev, info] of orderedRevs) { choices.push({ - name: info.wip ? `${rev} (WIP)` : rev, + name: info.wip ? `${rev} (DEVELOPERS ONLY)` : rev, value: rev, description: info.description });