mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Clear the releases dir for now
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
fs = require 'fs'
|
||||
path = require 'path'
|
||||
_ = require 'underscore-plus'
|
||||
rimraf = require 'rimraf'
|
||||
|
||||
module.exports = (grunt) ->
|
||||
{spawn} = require('./task-helpers')(grunt)
|
||||
@@ -33,7 +34,12 @@ module.exports = (grunt) ->
|
||||
|
||||
pkgs = pkg for pkg in fs.readdirSync(buildDir) when pkg.match /.nupkg$/i
|
||||
|
||||
cmd = 'build/windows/update.com'
|
||||
args = ['--releasify', path.join(buildDir, pkgs), '-r', path.join(buildDir, 'Releases')]
|
||||
releasesDir = path.join(buildDir, 'Releases')
|
||||
|
||||
## NB: Gonna clear Releases for now, in the future we need to pull down
|
||||
## the existing version
|
||||
rimraf.sync(releasesDir)
|
||||
|
||||
cmd = 'build/windows/update.com'
|
||||
args = ['--releasify', path.join(buildDir, pkgs), '-r', releasesDir]
|
||||
spawn {cmd, args}, (error, result, code) -> done(error)
|
||||
|
||||
Reference in New Issue
Block a user