Feature(custom): optimize auto-upload pipeline

This commit is contained in:
Kuingsmile
2026-01-15 20:49:57 +08:00
parent 842a7a89e6
commit db8dd19eae
5 changed files with 38 additions and 27 deletions

View File

@@ -18,21 +18,9 @@ async function main(context) {
const portablePath = path.join(appOutDir, 'PORTABLE')
try {
fs.writeFileSync(portablePath, '')
console.log('Created portable marker file at', portablePath)
} 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)
}
}
}
}