funny-repo/manifests/content-warning.rmanifest

35 lines
1.1 KiB
Plaintext

class Manifest {
static useLib = ["path", "open", "fs"]
static id = "content_warning"
static version = "1.15.a"
static pkg_name = "Content Warning"
static description = "No description"
static icon = "https://static.wikia.nocookie.net/content-warning-landfall/images/9/96/Icon.png/revision/latest/smart/width/250/height/250?cb=20240425013607"
static core_minimum_version = "0.17.0"
static author = "XD"
installSteps = [
{
type: "http_file",
url: "https://b2-cdn.ragestudio.net/file/bundler-sg/bundles/cnt_warng/1.15.a/bundle.zip",
tmp: "true",
extract: true,
deleteAfterExtract: true,
}
]
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"`, { encoding: "utf8" })
}
execute = async () => {
await Lib.open.spawn(Lib.path.resolve(install_path, "run_win.bat"))
}
}