Comparar commits

...

8 Commits

Autor SHA1 Mensagem Data
Cheng Zhao 6d76596d95 Warn empty app dir 2015-02-05 14:45:13 -08:00
Cheng Zhao 9ae7de3c26 ⬆️ atom-shell@0.21.2 2015-02-05 14:45:13 -08:00
Cheng Zhao e0ff661170 Print errors that happened before task-bootstrap 2015-02-05 14:45:13 -08:00
Cheng Zhao 5ffa1e9603 ⬆️ atom-shell@0.21.1 2015-02-05 14:45:13 -08:00
Cheng Zhao 0f9244916e Do not set "cwd" for tasks
The task can be inside an asar archive, which is not allowed to be cwd.
2015-02-05 14:45:13 -08:00
Cheng Zhao 3f54cf9607 Generate asar archive after set-version task 2015-02-05 14:45:12 -08:00
Cheng Zhao 7c546df6e4 Add generate-asar task 2015-02-05 14:45:12 -08:00
Cheng Zhao 20582ad599 ⬆️ asar@0.2.2 2015-02-05 14:45:12 -08:00
5 arquivos alterados com 29 adições e 4 exclusões
+2 -2
Ver Arquivo
@@ -224,7 +224,7 @@ module.exports = (grunt) ->
ciTasks = ['output-disk-space', 'download-atom-shell', 'build']
ciTasks.push('dump-symbols') if process.platform isnt 'win32'
ciTasks.push('set-version', 'check-licenses', 'lint')
ciTasks.push('set-version', 'check-licenses', 'lint', 'generate-asar')
ciTasks.push('mkdeb') if process.platform is 'linux'
ciTasks.push('create-windows-installer') if process.platform is 'win32'
ciTasks.push('test') if process.platform is 'darwin'
@@ -232,6 +232,6 @@ module.exports = (grunt) ->
ciTasks.push('publish-build')
grunt.registerTask('ci', ciTasks)
defaultTasks = ['download-atom-shell', 'build', 'set-version']
defaultTasks = ['download-atom-shell', 'build', 'set-version', 'generate-asar']
defaultTasks.push 'install' unless process.platform is 'linux'
grunt.registerTask('default', defaultTasks)
+1
Ver Arquivo
@@ -6,6 +6,7 @@
"url": "https://github.com/atom/atom.git"
},
"dependencies": {
"asar": "^0.2.2",
"async": "~0.2.9",
"donna": "1.0.7",
"formidable": "~1.0.14",
+19
Ver Arquivo
@@ -0,0 +1,19 @@
asar = require 'asar'
fs = require 'fs'
path = require 'path'
module.exports = (grunt) ->
{rm} = require('./task-helpers')(grunt)
grunt.registerTask 'generate-asar', 'Generate asar archive for the app', ->
done = @async()
appDir = grunt.config.get('atom.appDir')
unless fs.existsSync(appDir)
grunt.log.error 'The app has to be built before generating asar archive.'
return done(false)
asar.createPackage appDir, path.resolve(appDir, '..', 'app.asar'), (err) ->
return done(err) if err?
rm appDir
done()
+1 -1
Ver Arquivo
@@ -17,7 +17,7 @@
"url": "http://github.com/atom/atom/raw/master/LICENSE.md"
}
],
"atomShellVersion": "0.21.0",
"atomShellVersion": "0.21.2",
"dependencies": {
"6to5-core": "^3.0.14",
"async": "0.2.6",
+6 -1
Ver Arquivo
@@ -79,7 +79,7 @@ class Task
taskPath = taskPath.replace(/\\/g, "\\\\")
env = _.extend({}, process.env, {taskPath, userAgent: navigator.userAgent})
@childProcess = fork '--eval', [bootstrap], {env, cwd: __dirname}
@childProcess = fork '--eval', [bootstrap], {env, silent: true}
@on "task:log", -> console.log(arguments...)
@on "task:warn", -> console.warn(arguments...)
@@ -93,6 +93,11 @@ class Task
@childProcess.removeAllListeners()
@childProcess.on 'message', ({event, args}) =>
@emit(event, args...) if @childProcess?
# Catch the errors that happened before task-bootstrap.
@childProcess.stdout.on 'data', (data) ->
console.log data.toString()
@childProcess.stderr.on 'data', (data) ->
console.error data.toString()
# Public: Starts the task.
#