diff --git a/bin/package.js b/bin/package.js index f69f65cf..7fee594d 100755 --- a/bin/package.js +++ b/bin/package.js @@ -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.')