diff --git a/manifests/content-warning.rmanifest b/manifests/content-warning.rmanifest index b727e0f..c245594 100644 --- a/manifests/content-warning.rmanifest +++ b/manifests/content-warning.rmanifest @@ -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") }