This commit is contained in:
parent
e441e82cdb
commit
c9c58492cc
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue