From e424031ad9b73e6c2059d349382f9173ae7e1de4 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Sun, 18 Sep 2016 02:58:36 -0700 Subject: [PATCH] Windows build path fix --- bin/package.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.')