write run bat

This commit is contained in:
srgooglo 2023-11-29 14:30:15 +01:00
parent eaf5550e24
commit 7a1f2ff7b7
1 changed files with 15 additions and 1 deletions

View File

@ -53,5 +53,19 @@ module.exports = {
return data 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`
} }