CI version numbers are Magical(tm)

This commit is contained in:
Paul Betts
2014-09-16 16:00:57 -07:00
parent 246575390a
commit 1080eb2d11

View File

@@ -17,6 +17,9 @@ module.exports = (grunt) ->
packageInfo = JSON.parse(fs.readFileSync(path.join(atomDir, 'resources', 'app', 'package.json'), {encoding: 'utf8'}))
inputTemplate = fs.readFileSync(path.join('build', 'windows', 'atom.nuspec.erb'), {encoding: 'utf8'})
## NB: Build server has some sort of stamp on the version number
packageInfo.version = packageInfo.version.replace(/-.*$/, '')
targetNuspecPath = path.join(buildDir, 'atom.nuspec')
fs.writeFileSync(targetNuspecPath, _.template(inputTemplate, packageInfo))