use pack_dir
This commit is contained in:
parent
7a1f2ff7b7
commit
dff2a50173
|
@ -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' })
|
||||
|
||||
|
|
Loading…
Reference in New Issue