diff --git a/script/lib/create-windows-installer.js b/script/lib/create-windows-installer.js index e10d90bbf..f5e387e7f 100644 --- a/script/lib/create-windows-installer.js +++ b/script/lib/create-windows-installer.js @@ -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 {