blob: b6cc60a91669884495b970d39654bc24e7ccf308 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
diff -ura package.orig/src/utils.js package.new/src/utils.js
--- package.orig/src/utils.js 2019-03-15 18:59:19.000000000 +0800
+++ package.new/src/utils.js 2019-03-20 14:42:19.202514790 +0800
@@ -16,7 +16,6 @@
const tmp = require('tmp');
const exec = require('child_process').exec;
const cp = require('child_process');
-const sudo = require('electron-sudo');
const winston = require('winston');
const getos = require('getos');
const commandExistsSync = require('command-exists').sync;
@@ -375,14 +374,7 @@
}
var needRoot = () => {
- if (
- (os.platform() === "win32") ||
- isSnap() ||
- !commandExistsSync("sudo") ||
- global.installProperties.noRoot ||
- global.installProperties.simulate
- ) return false;
- else return !process.env.SUDO_UID
+ return false
}
var ensureRoot = (m) => {
|