Use computed version when cleaning up nupkg files in Windows build

This commit is contained in:
David Wilson
2018-07-20 16:29:01 -07:00
parent 3904ff04b8
commit 85dfb15e97

View File

@@ -29,7 +29,7 @@ module.exports = (packagedAppPath) => {
}
for (let nupkgPath of glob.sync(`${CONFIG.buildOutputPath}/atom-*.nupkg`)) {
if (!nupkgPath.includes(CONFIG.appMetadata.version)) {
if (!nupkgPath.includes(CONFIG.computedAppVersion)) {
console.log(`Deleting downloaded nupkg for previous version at ${nupkgPath} to prevent it from being stored as an artifact`)
fs.unlinkSync(nupkgPath)
} else {