patch options.txt
This commit is contained in:
parent
697049e33d
commit
b3a9381504
|
@ -48,3 +48,4 @@
|
|||
/**/**/libraries
|
||||
/**/**/saves
|
||||
/**/**/versions
|
||||
/**/**/options.txt
|
11
manifest
11
manifest
|
@ -23,12 +23,16 @@ const defaultConfig = {
|
|||
assigned_memory: 4096,
|
||||
}
|
||||
|
||||
const fs = require("node:fs")
|
||||
|
||||
module.exports = {
|
||||
...vars,
|
||||
rsb_minimun_version: "0.11.1",
|
||||
import_libs: [
|
||||
"mcl",
|
||||
"ipc",
|
||||
"fs",
|
||||
"path",
|
||||
],
|
||||
configs: {
|
||||
username: {
|
||||
|
@ -77,6 +81,13 @@ module.exports = {
|
|||
},
|
||||
executable: true,
|
||||
check_updates_after_execute: true,
|
||||
after_install: async (pkg) => {
|
||||
// patch options.txt from default_options.txt
|
||||
const defaultOptionsPath = `${pkg.install_path}/default_options.txt`
|
||||
const finalOptionsPath = `${pkg.install_path}/options.txt`
|
||||
|
||||
fs.copyFileSync(defaultOptionsPath, finalOptionsPath)
|
||||
},
|
||||
execute: async (pkg) => {
|
||||
const auth = await pkg.libraries.mcl.auth((pkg.storaged_configs?.username ?? defaultConfig.username))
|
||||
|
||||
|
|
Loading…
Reference in New Issue