mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Made instructions clearer and removed folder deletion on update
This commit is contained in:
@@ -188,7 +188,7 @@ function extractAndCopy(folder) {
|
||||
4) cds into the new installation;
|
||||
5) runs the installer.bat script */
|
||||
fs.writeFileSync(path.join(folder, 'update.bat'),
|
||||
`timeout /t 5 \nrmdir "${path.join(__dirname, "..", "..")}" /s /q \necho D|xcopy /Y /S /E "${path.join(folder, "temp")}" "${path.join(__dirname, "..", "..")}" \ncd "${path.join(__dirname, "..", "..")}" \ncall installer.bat`
|
||||
`timeout /t 5 \necho D|xcopy /Y /S /E "${path.join(folder, "temp")}" "${path.join(__dirname, "..", "..")}" \ncd "${path.join(__dirname, "..", "..")}" \ncall installer.bat`
|
||||
)
|
||||
|
||||
/* Launch the update script then close gracefully */
|
||||
|
||||
Reference in New Issue
Block a user