Use // for multi-line comments
This commit is contained in:
parent
f4af744519
commit
990dc30e8d
15 changed files with 65 additions and 138 deletions
|
@ -62,11 +62,8 @@ AutoUpdater = (function(superClass) {
|
|||
};
|
||||
|
||||
|
||||
/*
|
||||
Private: Emit both error object and message, this is to keep compatibility
|
||||
with Old APIs.
|
||||
*/
|
||||
|
||||
// Private: Emit both error object and message, this is to keep compatibility
|
||||
// with Old APIs.
|
||||
AutoUpdater.prototype.emitError = function(message) {
|
||||
return this.emit('error', new Error(message), message);
|
||||
};
|
||||
|
|
|
@ -6,24 +6,16 @@ path = require('path');
|
|||
|
||||
spawn = require('child_process').spawn;
|
||||
|
||||
|
||||
// i.e. my-app/app-0.1.13/
|
||||
|
||||
appFolder = path.dirname(process.execPath);
|
||||
|
||||
|
||||
// i.e. my-app/Update.exe
|
||||
|
||||
updateExe = path.resolve(appFolder, '..', 'Update.exe');
|
||||
|
||||
exeName = path.basename(process.execPath);
|
||||
|
||||
|
||||
/*
|
||||
Spawn a command and invoke the callback when it completes with an error
|
||||
and the output from standard out.
|
||||
*/
|
||||
|
||||
// Spawn a command and invoke the callback when it completes with an error
|
||||
// and the output from standard out.
|
||||
spawnUpdate = function(args, detached, callback) {
|
||||
var error, error1, errorEmitted, spawnedProcess, stderr, stdout;
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue