Simplify atom-x64 nupkg path generation

This commit is contained in:
David Wilson
2018-07-09 16:16:30 -07:00
parent fa326a0a07
commit bea3267697

View File

@@ -33,7 +33,8 @@ module.exports = (packagedAppPath) => {
fs.unlinkSync(nupkgPath)
} else {
if (process.arch === 'x64') {
const newNupkgPath = `${CONFIG.buildOutputPath}/atom-x64${path.basename(nupkgPath).slice(4)}`
// Use the original .nupkg filename to generate the `atom-x64` name by inserting `-x64` after `atom`
const newNupkgPath = nupkgPath.replace('atom-', 'atom-x64-')
fs.renameSync(nupkgPath, newNupkgPath)
}
}