From dff2a5017395651760085a2eda255418957615ce Mon Sep 17 00:00:00 2001 From: srgooglo Date: Wed, 29 Nov 2023 14:33:34 +0100 Subject: [PATCH] use pack_dir --- manifests/lethal-company.manifest | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/manifests/lethal-company.manifest b/manifests/lethal-company.manifest index b9b6fc1..7bfab3f 100644 --- a/manifests/lethal-company.manifest +++ b/manifests/lethal-company.manifest @@ -53,15 +53,15 @@ module.exports = { return data }, - after_install: async ({manifest}) => { + after_install: async ({pack_dir}) => { const path = require("node:path") const fs = require("node:fs") - const runwinBat = path.resolve(manifest.install_path, "runwin.bat") + const runwinBat = path.resolve(manifest.pack_dir, "runwin.bat") await fs.writeFileSync(runwinBat, ` @echo off - cd "${manifest.install_path}" + cd "${manifest.pack_dir}" start Lethal Company.exe `, { encoding: 'utf8' })