diff --git a/Gruntfile.coffee b/Gruntfile.coffee index d1987641f..ba93a55e8 100644 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -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'])