funny-repo/manifests/lethal-company.manifest

54 lines
1.6 KiB
Plaintext

global._ = {
pack_id: "lethal_company",
version: "0.40",
author: "Zeekerss",
name: "Lethal Company",
description: "The Company store has many useful tools for the job, including lights, shovels, walkie talkies, stun grenades, or boomboxes. Things get dangerous at night.",
icon: "https://media.moddb.com/images/downloads/1/261/260757/sddefault.jpg",
bundles: {
"win32-x64": {
url: "https://b2-cdn.ragestudio.net/file/bundler-sg/bundles/lethal-company/bundles/v40/bnd-win32-x64.zip",
filename: "bundle.zip",
},
}
}
// Please do not edit this following code, for gods sake.
const path = require("node:path")
const child_process = require("node:child_process")
module.exports = {
id: global._.pack_id,
version: global._.version,
icon: global._.icon,
name: global._.name,
description: global._.description,
author: global._.author,
executable: true,
init: ({ pack_dir, tmp_dir, os_string }) => {
// check if bundle is available for this os
if (typeof global._.bundles[os_string] === "undefined") {
throw new Error(`OS Not supported: ${os_string}`)
}
const dlBundle = global._.bundles[os_string]
const data = {
install_steps: {
http_downloads: [
{
path: dlBundle.filename,
url: dlBundle.url,
extract: true,
delete_after_extract: true,
progress: true,
}
]
}
}
return data
},
execute: `%install_path%/Lethal Company.exe`
}