Comparar commits
8 Commits
| Autor | SHA1 | Data | |
|---|---|---|---|
| 6d76596d95 | |||
| 9ae7de3c26 | |||
| e0ff661170 | |||
| 5ffa1e9603 | |||
| 0f9244916e | |||
| 3f54cf9607 | |||
| 7c546df6e4 | |||
| 20582ad599 |
@@ -224,7 +224,7 @@ module.exports = (grunt) ->
|
|||||||
|
|
||||||
ciTasks = ['output-disk-space', 'download-atom-shell', 'build']
|
ciTasks = ['output-disk-space', 'download-atom-shell', 'build']
|
||||||
ciTasks.push('dump-symbols') if process.platform isnt 'win32'
|
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('mkdeb') if process.platform is 'linux'
|
||||||
ciTasks.push('create-windows-installer') if process.platform is 'win32'
|
ciTasks.push('create-windows-installer') if process.platform is 'win32'
|
||||||
ciTasks.push('test') if process.platform is 'darwin'
|
ciTasks.push('test') if process.platform is 'darwin'
|
||||||
@@ -232,6 +232,6 @@ module.exports = (grunt) ->
|
|||||||
ciTasks.push('publish-build')
|
ciTasks.push('publish-build')
|
||||||
grunt.registerTask('ci', ciTasks)
|
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'
|
defaultTasks.push 'install' unless process.platform is 'linux'
|
||||||
grunt.registerTask('default', defaultTasks)
|
grunt.registerTask('default', defaultTasks)
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
"url": "https://github.com/atom/atom.git"
|
"url": "https://github.com/atom/atom.git"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"asar": "^0.2.2",
|
||||||
"async": "~0.2.9",
|
"async": "~0.2.9",
|
||||||
"donna": "1.0.7",
|
"donna": "1.0.7",
|
||||||
"formidable": "~1.0.14",
|
"formidable": "~1.0.14",
|
||||||
|
|||||||
@@ -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
@@ -17,7 +17,7 @@
|
|||||||
"url": "http://github.com/atom/atom/raw/master/LICENSE.md"
|
"url": "http://github.com/atom/atom/raw/master/LICENSE.md"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"atomShellVersion": "0.21.0",
|
"atomShellVersion": "0.21.2",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"6to5-core": "^3.0.14",
|
"6to5-core": "^3.0.14",
|
||||||
"async": "0.2.6",
|
"async": "0.2.6",
|
||||||
|
|||||||
+6
-1
@@ -79,7 +79,7 @@ class Task
|
|||||||
taskPath = taskPath.replace(/\\/g, "\\\\")
|
taskPath = taskPath.replace(/\\/g, "\\\\")
|
||||||
|
|
||||||
env = _.extend({}, process.env, {taskPath, userAgent: navigator.userAgent})
|
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:log", -> console.log(arguments...)
|
||||||
@on "task:warn", -> console.warn(arguments...)
|
@on "task:warn", -> console.warn(arguments...)
|
||||||
@@ -93,6 +93,11 @@ class Task
|
|||||||
@childProcess.removeAllListeners()
|
@childProcess.removeAllListeners()
|
||||||
@childProcess.on 'message', ({event, args}) =>
|
@childProcess.on 'message', ({event, args}) =>
|
||||||
@emit(event, args...) if @childProcess?
|
@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.
|
# Public: Starts the task.
|
||||||
#
|
#
|
||||||
|
|||||||
Referência em uma Nova Issue
Bloquear um usuário