update
This commit is contained in:
parent
af97c09aea
commit
aa11425fb5
21
manifest
21
manifest
|
@ -66,24 +66,25 @@ module.exports = {
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
executable: true,
|
executable: true,
|
||||||
execute: async (manifest) => {
|
check_updates_after_execute: true,
|
||||||
console.log(manifest)
|
execute: async (pkg) => {
|
||||||
|
console.log(pkg)
|
||||||
|
|
||||||
const auth = await manifest.libraries.mcl.auth((manifest.storaged_configs?.username ?? defaultConfig.username))
|
const auth = await pkg.libraries.mcl.auth((pkg.storaged_configs?.username ?? defaultConfig.username))
|
||||||
|
|
||||||
return manifest.libraries.mcl.launch(
|
return pkg.libraries.mcl.launch(
|
||||||
{
|
{
|
||||||
root: manifest.install_path,
|
root: pkg.install_path,
|
||||||
authorization: auth,
|
authorization: auth,
|
||||||
version: {
|
version: {
|
||||||
number: internalVars.mc_version.number,
|
number: internalVars.mc_version.number,
|
||||||
type: internalVars.mc_version.type
|
type: internalVars.mc_version.type
|
||||||
},
|
},
|
||||||
memory: {
|
memory: {
|
||||||
max: manifest.storaged_configs?.assigned_memory ?? defaultConfig.assigned_memory,
|
max: pkg.storaged_configs?.assigned_memory ?? defaultConfig.assigned_memory,
|
||||||
min: 2048
|
min: 2048
|
||||||
},
|
},
|
||||||
forge: `${manifest.install_path}/forge-installer.jar`,
|
forge: `${pkg.install_path}/forge-installer.jar`,
|
||||||
quickPlay: {
|
quickPlay: {
|
||||||
type: "multiplayer",
|
type: "multiplayer",
|
||||||
identifier: `${internalVars.public_ip}:${internalVars.public_ip_port}`,
|
identifier: `${internalVars.public_ip}:${internalVars.public_ip_port}`,
|
||||||
|
@ -99,15 +100,15 @@ module.exports = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
install: () => {
|
install: () => {
|
||||||
manifest.libraries.ipc.send(`new:notification`, {
|
pkg.libraries.ipc.send(`new:notification`, {
|
||||||
message: "Downloading assets",
|
message: "Downloading assets",
|
||||||
description: "This may take a while...",
|
description: "This may take a while...",
|
||||||
loading: true,
|
loading: true,
|
||||||
duration: 30000
|
duration: 10
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
init_assets: () => {
|
init_assets: () => {
|
||||||
manifest.libraries.ipc.send(`new:message`, {
|
pkg.libraries.ipc.send(`new:message`, {
|
||||||
message: "Preparing assets, please wait...",
|
message: "Preparing assets, please wait...",
|
||||||
type: "loading",
|
type: "loading",
|
||||||
duration: 10000,
|
duration: 10000,
|
||||||
|
|
Loading…
Reference in New Issue