diff --git a/index.js b/index.js index 46a76fc..3742d51 100644 --- a/index.js +++ b/index.js @@ -1,20 +1,19 @@ var path = require('path'); var spawn = require('child_process').spawn; -var debug = require('debug')('electron-squirrel-startup'); var app = require('electron').app; -var run = function(args, done) { +var run = function (args, done) { var updateExe = path.resolve(path.dirname(process.execPath), '..', 'Update.exe'); - debug('Spawning `%s` with args `%s`', updateExe, args); + console.log('Spawning `%s` with args `%s`', updateExe, args); spawn(updateExe, args, { detached: true }).on('close', done); }; -var check = function() { +var check = function () { if (process.platform === 'win32') { var cmd = process.argv[1]; - debug('processing squirrel command `%s`', cmd); + console.log('processing squirrel command `%s`', cmd); var target = path.basename(process.execPath); if (cmd === '--squirrel-install' || cmd === '--squirrel-updated') { @@ -33,4 +32,4 @@ var check = function() { return false; }; -module.exports = check(); +module.exports = check(); \ No newline at end of file diff --git a/package.json b/package.json index f566db2..30e4732 100644 --- a/package.json +++ b/package.json @@ -17,9 +17,6 @@ "precommit": [ "check" ], - "dependencies": { - "debug": "^2.2.0" - }, "devDependencies": { "electron-mocha": "^3.0.5", "electron-prebuilt": "^1.3.4", @@ -40,4 +37,4 @@ "electron-installer", "squirrel.windows" ] -} +} \ No newline at end of file