mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
CI version numbers are Magical(tm)
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user