diff --git a/locales/version b/locales/version index f9a28ec..99eba4d 100644 --- a/locales/version +++ b/locales/version @@ -1 +1 @@ -4.1.0-beta.2 \ No newline at end of file +4.1.0 \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 7a2bc71..0b3cc7d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "dmclc", - "version": "4.1.0-beta.2", + "version": "4.1.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "dmclc", - "version": "4.1.0-beta.2", + "version": "4.1.0", "license": "MIT", "dependencies": { "compressing": "^1.9.1", diff --git a/package.json b/package.json index 4e297b1..f37fee6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dmclc", - "version": "4.1.0-beta.2", + "version": "4.1.0", "description": "Dolphin Minecraft Launcher Core", "typings": "./lib/index.d.ts", "module": "./lib/index.js", diff --git a/src/launcher.ts b/src/launcher.ts index 18ba071..d4c2bef 100644 --- a/src/launcher.ts +++ b/src/launcher.ts @@ -82,7 +82,7 @@ export class Launcher { specialNatives: Record; }; private realRootPath = ""; - static readonly version = "4.1.0-beta.2"; + static readonly version = "4.1.0"; /** * Create a new Launcher object. * @throws {@link FormattedError} diff --git a/src/utils/findjava.ts b/src/utils/findjava.ts index 0faf248..42f74e4 100644 --- a/src/utils/findjava.ts +++ b/src/utils/findjava.ts @@ -42,7 +42,7 @@ async function findForWindows(): Promise[]> { if(!fs.existsSync(pth))continue; for (const version of fs.readdirSync(pth)) { const exec = `${pth}\\${version}\\bin\\java.exe`; - if(fs.existsSync(exec))ret.push(new Pair(version, exec)); + if(fs.existsSync(exec))ret.push(new Pair(await getJavaVersion(exec), exec)); } } }