From c9c58492cc339fd8374f8b5386c499611f9a0ce4 Mon Sep 17 00:00:00 2001 From: SrGooglo Date: Mon, 17 Jun 2024 02:33:23 +0200 Subject: [PATCH] xd --- manifests/content-warning.rmanifest | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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") }