Feature(custom): add update for portable mode

This commit is contained in:
Kuingsmile
2026-01-15 17:59:06 +08:00
parent 8c720ef02c
commit 842a7a89e6
6 changed files with 238 additions and 104 deletions

View File

@@ -22,6 +22,17 @@ async function main(context) {
} catch (err) {
console.error('Error creating portable marker file:', err)
}
} else {
const fileToRemave = path.join(appOutDir, 'resources/7za.exe')
console.log('Checking for unnecessary 7za.exe at', fileToRemave)
if (fs.existsSync(fileToRemave)) {
try {
fs.unlinkSync(fileToRemave)
console.log('Removed unnecessary 7za.exe from', fileToRemave)
} catch (err) {
console.error('Error removing 7za.exe:', err)
}
}
}
}