mirror of
https://github.com/artegoser/pimi-launcher-core.git
synced 2024-11-24 04:56:22 +03:00
[NOISSUE] Travis test, add detached.
This commit is contained in:
parent
0905b4154d
commit
1a4983a8b3
4 changed files with 7 additions and 5 deletions
|
@ -1,2 +1,2 @@
|
|||
language: node_js
|
||||
script: echo "npm test temporarily disabled"
|
||||
script: npm test
|
|
@ -2,7 +2,7 @@
|
|||
##### 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)
|
||||
[![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.13.3-blue)
|
||||
![version](https://img.shields.io/badge/stable_version-3.14.3-blue)
|
||||
![badge](https://img.shields.io/badge/ncurses-not_supported-purple)
|
||||
|
||||
MCLC (Minecraft Launcher Core) is a NodeJS solution for launching modded and vanilla Minecraft without having to download and format everything yourself.
|
||||
|
@ -96,7 +96,8 @@ let opts = {
|
|||
directory: "", // where the Minecraft jar and version json are located.
|
||||
natives: "", // native directory path.
|
||||
assetRoot: "",
|
||||
cwd: "", // working directory of the java process
|
||||
cwd: "", // working directory of the java process.
|
||||
detached: false, // whether or not the client is detached from the parent / launcher.
|
||||
classes: [], // all class paths are required if you use this.
|
||||
minArgs: 11,
|
||||
maxSockets: 2, // max sockets for downloadAsync.
|
||||
|
|
|
@ -9,6 +9,7 @@ class MCLCore extends EventEmitter {
|
|||
this.options = options
|
||||
this.options.root = path.resolve(this.options.root)
|
||||
this.options.overrides = {
|
||||
detached: true,
|
||||
...this.options.overrides,
|
||||
url: {
|
||||
meta: 'https://launchermeta.mojang.com',
|
||||
|
@ -134,7 +135,7 @@ class MCLCore extends EventEmitter {
|
|||
this.emit('debug', `[MCLC]: Launching with arguments ${launchArguments.join(' ')}`)
|
||||
|
||||
const minecraft = child.spawn(this.options.javaPath ? this.options.javaPath : 'java', launchArguments,
|
||||
{ cwd: this.options.overrides.cwd || this.options.root })
|
||||
{ cwd: this.options.overrides.cwd || this.options.root, detached: this.options.overrides.detached })
|
||||
minecraft.stdout.on('data', (data) => this.emit('data', data.toString('utf-8')))
|
||||
minecraft.stderr.on('data', (data) => this.emit('data', data.toString('utf-8')))
|
||||
minecraft.on('close', (code) => this.emit('close', code))
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "minecraft-launcher-core",
|
||||
"version": "3.14.2",
|
||||
"version": "3.14.3",
|
||||
"description": "Lightweight module that downloads and runs Minecraft using javascript / NodeJS",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
|
|
Loading…
Add table
Reference in a new issue