write run bat
This commit is contained in:
parent
eaf5550e24
commit
7a1f2ff7b7
|
@ -53,5 +53,19 @@ module.exports = {
|
|||
|
||||
return data
|
||||
},
|
||||
execute: `%install_path%/Lethal Company.exe`
|
||||
after_install: async ({manifest}) => {
|
||||
const path = require("node:path")
|
||||
const fs = require("node:fs")
|
||||
|
||||
const runwinBat = path.resolve(manifest.install_path, "runwin.bat")
|
||||
|
||||
await fs.writeFileSync(runwinBat, `
|
||||
@echo off
|
||||
cd "${manifest.install_path}"
|
||||
start Lethal Company.exe
|
||||
`, { encoding: 'utf8' })
|
||||
|
||||
return true
|
||||
},
|
||||
execute: `%install_path%/runwin.bat`
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue