This commit is contained in:
SrGooglo 2024-06-17 02:33:23 +02:00
parent e441e82cdb
commit c9c58492cc
1 changed files with 11 additions and 1 deletions

View File

@ -1,5 +1,5 @@
class Manifest {
static useLib = ["open"]
static useLib = ["path","open", "fs"]
static id = "content_warning"
static version = "1.15.a"
@ -19,6 +19,16 @@ class Manifest {
}
]
updateSteps = [
this.installSteps[0]
]
afterInstall = async () => {
const executableFilePath = Lib.path.resolve(install_path, "run_win.bat")
await Lib.fs.writeFileSync(executableFilePath, `${install_path}\\Content Warning.exe`, "utf8")
}
execute = async (pkg) => {
Lib.open.spawn(install_path + "Content Warning.exe")
}