use pack_dir

This commit is contained in:
srgooglo 2023-11-29 14:33:34 +01:00
parent 7a1f2ff7b7
commit dff2a50173
1 changed files with 3 additions and 3 deletions

View File

@ -53,15 +53,15 @@ module.exports = {
return data return data
}, },
after_install: async ({manifest}) => { after_install: async ({pack_dir}) => {
const path = require("node:path") const path = require("node:path")
const fs = require("node:fs") 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, ` await fs.writeFileSync(runwinBat, `
@echo off @echo off
cd "${manifest.install_path}" cd "${manifest.pack_dir}"
start Lethal Company.exe start Lethal Company.exe
`, { encoding: 'utf8' }) `, { encoding: 'utf8' })