mirror of
https://github.com/artegoser/pimi-launcher-core.git
synced 2024-11-06 05:33:58 +03:00
v3.11.3
This commit is contained in:
parent
5619acb711
commit
06337a8914
4 changed files with 8 additions and 5 deletions
|
@ -2,7 +2,7 @@
|
||||||
##### This project is complete for now.
|
##### This project is complete for now.
|
||||||
[![Build Status](https://travis-ci.com/Pierce01/MinecraftLauncher-core.svg?branch=master)](https://travis-ci.com/Pierce01/MinecraftLauncher-core)
|
[![Build Status](https://travis-ci.com/Pierce01/MinecraftLauncher-core.svg?branch=master)](https://travis-ci.com/Pierce01/MinecraftLauncher-core)
|
||||||
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
|
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
|
||||||
![version](https://img.shields.io/badge/stable_version-3.11.2-blue)
|
![version](https://img.shields.io/badge/stable_version-3.11.3-blue)
|
||||||
![badge](https://img.shields.io/badge/ncurses-not_supported-purple)
|
![badge](https://img.shields.io/badge/ncurses-not_supported-purple)
|
||||||
|
|
||||||
MCLC is a NodeJS solution for launching modded and vanilla Minecraft without having to download and format everything yourself.
|
MCLC is a NodeJS solution for launching modded and vanilla Minecraft without having to download and format everything yourself.
|
||||||
|
@ -102,8 +102,9 @@ let opts = {
|
||||||
meta: "https://launchermeta.mojang.com", // List of versions.
|
meta: "https://launchermeta.mojang.com", // List of versions.
|
||||||
resource: "https://resources.download.minecraft.net", // Minecraft resources.
|
resource: "https://resources.download.minecraft.net", // Minecraft resources.
|
||||||
mavenForge: "http://files.minecraftforge.net/maven/", // Forge resources.
|
mavenForge: "http://files.minecraftforge.net/maven/", // Forge resources.
|
||||||
defaultRepoForge: "https://libraries.minecraft.net/" // for Forge only, you need to redefine the library url
|
defaultRepoForge: "https://libraries.minecraft.net/", // for Forge only, you need to redefine the library url
|
||||||
// in the version json.
|
// in the version json.
|
||||||
|
fallbackMaven: "https://search.maven.org/remotecontent?filepath="
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -334,6 +334,7 @@ class Handler {
|
||||||
|
|
||||||
const downloadLink = `${url}${lib[0].replace(/\./g, '/')}/${lib[1]}/${lib[2]}/${name}`;
|
const downloadLink = `${url}${lib[0].replace(/\./g, '/')}/${lib[1]}/${lib[2]}/${name}`;
|
||||||
|
|
||||||
|
|
||||||
if(fs.existsSync(path.join(jarPath, name))) {
|
if(fs.existsSync(path.join(jarPath, name))) {
|
||||||
paths.push(`${jarPath}${path.sep}${name}`);
|
paths.push(`${jarPath}${path.sep}${name}`);
|
||||||
counter = counter + 1;
|
counter = counter + 1;
|
||||||
|
@ -343,7 +344,7 @@ class Handler {
|
||||||
if(!fs.existsSync(jarPath)) shelljs.mkdir('-p', jarPath);
|
if(!fs.existsSync(jarPath)) shelljs.mkdir('-p', jarPath);
|
||||||
|
|
||||||
const download = await this.downloadAsync(downloadLink, jarPath, name, true, 'forge');
|
const download = await this.downloadAsync(downloadLink, jarPath, name, true, 'forge');
|
||||||
if(!download) await this.downloadAsync(`https://search.maven.org/remotecontent?filepath=${lib[0].replace(/\./g, '/')}/${lib[1]}/${lib[2]}/${name}`, jarPath, name, true, 'forge');
|
if(!download) await this.downloadAsync(`${this.options.overrides.url.fallbackMaven}${lib[0].replace(/\./g, '/')}/${lib[1]}/${lib[2]}/${name}`, jarPath, name, true, 'forge');
|
||||||
|
|
||||||
paths.push(`${jarPath}${path.sep}${name}`);
|
paths.push(`${jarPath}${path.sep}${name}`);
|
||||||
counter = counter + 1;
|
counter = counter + 1;
|
||||||
|
|
|
@ -20,7 +20,8 @@ class MCLCore extends EventEmitter {
|
||||||
meta: this.options.overrides.url.meta || "https://launchermeta.mojang.com",
|
meta: this.options.overrides.url.meta || "https://launchermeta.mojang.com",
|
||||||
resource: this.options.overrides.url.resource || "https://resources.download.minecraft.net",
|
resource: this.options.overrides.url.resource || "https://resources.download.minecraft.net",
|
||||||
mavenForge: this.options.overrides.url.mavenForge || "http://files.minecraftforge.net/maven/",
|
mavenForge: this.options.overrides.url.mavenForge || "http://files.minecraftforge.net/maven/",
|
||||||
defaultRepoForge: this.options.overrides.url.defaultRepoForge || "https://libraries.minecraft.net/"
|
defaultRepoForge: this.options.overrides.url.defaultRepoForge || "https://libraries.minecraft.net/",
|
||||||
|
fallbackMaven: this.options.overrides.url.fallbackMaven || "https://search.maven.org/remotecontent?filepath="
|
||||||
};
|
};
|
||||||
this.handler = new handler(this);
|
this.handler = new handler(this);
|
||||||
// Lets the events register. our magic switch!
|
// Lets the events register. our magic switch!
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "minecraft-launcher-core",
|
"name": "minecraft-launcher-core",
|
||||||
"version": "3.11.2",
|
"version": "3.11.3",
|
||||||
"description": "Lightweight module that downloads and runs Minecraft using javascript / NodeJS",
|
"description": "Lightweight module that downloads and runs Minecraft using javascript / NodeJS",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
Loading…
Reference in a new issue