Windows build path fix

This commit is contained in:
Feross Aboukhadijeh
2016-09-18 02:58:36 -07:00
parent f43dc2fc98
commit e424031ad9

View File

@@ -468,12 +468,12 @@ function buildWin32 (cb) {
// Change file name inside RELEASES-ia32 to match renamed file
var relContent = fs.readFileSync(relPath, 'utf8')
var relContent32 = relContent.replace(/full\.nupkg$/, '-ia32-full.nupkg')
var relContent32 = relContent.replace('full.nupkg', 'ia32-full.nupkg')
fs.writeFileSync(relPath, relContent32)
if (relContent === relContent32) {
// Sanity check
throw new Error('Fixing RELEASE-ia32 failed. Replacement did not modify the file.')
throw new Error('Fixing RELEASES-ia32 failed. Replacement did not modify the file.')
}
console.log('Windows: Renamed ia32 installer files.')