mirror of
https://github.com/LostCityRS/Server
synced 2026-11-22 23:10:40 -05:00
chore: Updated revision list
This commit is contained in:
1 parent
544a049faf
commit
25f5a3c472
5 files changed
+29
-10
No files matched your search
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"lockfileVersion": 1,
|
||||
"configVersion": 0,
|
||||
"workspaces": {
|
||||
"": {
|
||||
"name": "server",
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -41,6 +41,7 @@ type RevInfo = {
|
||||
description: string;
|
||||
webclient?: boolean;
|
||||
wip?: boolean;
|
||||
clientBranch?: string;
|
||||
}
|
||||
|
||||
const revInfo: Record<string, RevInfo> = {
|
||||
@@ -58,7 +59,12 @@ const revInfo: Record<string, RevInfo> = {
|
||||
},
|
||||
'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
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user