From c0e861881338f060045896223bd25b42cc1e5a02 Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Tue, 9 Feb 2016 08:55:16 -0400 Subject: [PATCH] Upgrade sudo-prompt to v2.2.0 This version contains a fix to allow the module to run on `asar` packages. --- lib/elevate.js | 5 +++-- package.json | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/elevate.js b/lib/elevate.js index 0fc998c5..114bc3db 100644 --- a/lib/elevate.js +++ b/lib/elevate.js @@ -39,8 +39,9 @@ exports.require = function(app, callback) { // Keep parent process hidden app.dock.hide(); - sudoPrompt.setName('Etcher'); - sudoPrompt.exec(process.argv.join(' '), function(error) { + sudoPrompt.exec(process.argv.join(' '), { + name: 'Etcher' + }, function(error) { if (error) { return callback(error); } diff --git a/package.json b/package.json index f9ded371..6e481ba6 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "is-elevated": "^1.0.0", "lodash": "^3.10.1", "resin-image-write": "^2.0.5", - "sudo-prompt": "^1.1.8", + "sudo-prompt": "^2.2.0", "trackjs": "^2.1.16", "umount": "^1.1.1" },