Look for normalized nupkg version when publishing assets

This commit is contained in:
Max Brunsfeld
2015-09-24 17:14:24 -07:00
parent 5a528ffa4e
commit e8f5094e32

View File

@@ -77,7 +77,12 @@ getAssets = ->
]
when 'win32'
assets = [{assetName: 'atom-windows.zip', sourcePath: 'Atom'}]
for squirrelAsset in ['AtomSetup.exe', 'RELEASES', "atom-#{version}-full.nupkg", "atom-#{version}-delta.nupkg"]
# NuGet packages can't have dots in their pre-release name, so we remove
# those dots in `grunt-electron-installer` when generating the package.
nupkgVersion = version.replace(/\.(\d+)$/, '$1')
for squirrelAsset in ['AtomSetup.exe', 'RELEASES', "atom-#{nupkgVersion}-full.nupkg", "atom-#{nupkgVersion}-delta.nupkg"]
cp path.join(buildDir, 'installer', squirrelAsset), path.join(buildDir, squirrelAsset)
assets.push({assetName: squirrelAsset, sourcePath: assetName})
assets