mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Add install task
This commit is contained in:
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user