67 lines
2.0 KiB
Plaintext
67 lines
2.0 KiB
Plaintext
global._ = {
|
|
pack_id: "phasmophobia-0.9.0.11",
|
|
version: "0.9.0.11",
|
|
author: "The Funny Team",
|
|
name: "Phasmophobia (0.9.0.11)",
|
|
description: "Too much scary. (OnlineFix Patched)",
|
|
icon: "https://img.guildedcdn.com/asset/GameIcons/Phasmophobia-lg.png",
|
|
bundles: {
|
|
"win32-x64": {
|
|
url: "https://drive.google.com/uc?export=download&id=1xIFXFN_UhhvLpp8Zk5ZG_viCAMNyPKU-&confirm=t&uuid=ed603e48-abbc-477c-b48f-5b78a5c89879&at=AB6BwCDkdqZQCty4-uA1Dj9u1Ke7:1700086655460",
|
|
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,
|
|
pack_name: global._.name,
|
|
description: global._.description,
|
|
author: global._.author,
|
|
configs: {
|
|
vrEnabled: false,
|
|
},
|
|
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 = {
|
|
http_downloads: [
|
|
{
|
|
path: dlBundle.filename,
|
|
url: dlBundle.url,
|
|
extract: true,
|
|
delete_after_extract: true,
|
|
progress: true,
|
|
}
|
|
]
|
|
}
|
|
|
|
return data
|
|
},
|
|
execute: async ({ manifest, pack_dir, tmp_dir }) => {
|
|
console.log(manifest)
|
|
const binary = path.resolve(pack_dir, "Launcher.exe")
|
|
|
|
await new Promise((resolve, reject) => {
|
|
const process = child_process.execFile(binary, [], {
|
|
shell: true,
|
|
})
|
|
|
|
process.on("exit", resolve)
|
|
process.on("error", reject)
|
|
})
|
|
}
|
|
}
|