Add install task

This commit is contained in:
Kevin Sawicki
2013-05-29 17:49:46 -07:00
parent eafad9a5c4
commit affd4a481f

View File

@@ -7,7 +7,9 @@ _ = require 'underscore'
CSON = require 'season'
BUILD_DIR = '/tmp/atom-build'
APP_DIR = path.join(BUILD_DIR, 'Atom.app', 'Contents', 'Resources', 'app')
APP_NAME = 'Atom.app'
APP_DIR = path.join(BUILD_DIR, APP_NAME, 'Contents', 'Resources', 'app')
INSTALL_DIR = path.join('/Applications', APP_NAME)
module.exports = (grunt) ->
grunt.initConfig
@@ -109,6 +111,10 @@ module.exports = (grunt) ->
cp 'atom-shell', path.join(BUILD_DIR, 'atom-shell')
grunt.task.run('compile')
grunt.registerTask 'install', 'Install the built application', ->
rm INSTALL_DIR
cp path.join(BUILD_DIR, APP_NAME), INSTALL_DIR
grunt.registerTask('compile', ['coffee', 'less', 'cson'])
grunt.registerTask('lint', ['coffeelint', 'csslint'])
grunt.registerTask('default', ['lint', 'build'])