mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-06-26 01:51:51 +08:00
✨ Feature(custom): optimize auto-upload pipeline
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user