Merge pull request #9591 from electron/remove-runas

Remove runas dependency from root package.json
This commit is contained in:
Kevin Sawicki 2017-05-30 09:13:23 -07:00 committed by GitHub
commit 6b787ae4e0
3 changed files with 0 additions and 24 deletions

View file

@ -11,9 +11,6 @@
"standard": "^8.4.0",
"standard-markdown": "^2.1.1"
},
"optionalDependencies": {
"runas": "^3.0.0"
},
"standard": {
"ignore": [
"/out",

View file

@ -15,9 +15,6 @@ CHROMIUM_DIR = os.path.join(SOURCE_ROOT, 'vendor', 'download',
def main(destination):
# if PLATFORM == 'win32':
# register_required_dll()
rm_rf(destination)
(project_name, product_name) = get_names_from_gyp()
@ -49,12 +46,6 @@ def main(destination):
execute([sys.executable, generate_breakpad_symbols] + args)
def register_required_dll():
register = os.path.join(SOURCE_ROOT, 'tools', 'win',
'register_msdia80_dll.js')
execute(['node.exe', os.path.relpath(register)]);
def get_names_from_gyp():
variables = electron_gyp()
return (variables['project_name%'], variables['product_name%'])

View file

@ -1,12 +0,0 @@
var fs = require('fs')
var path = require('path')
var runas = require('runas')
var source = path.resolve(__dirname, '..', '..', 'vendor', 'breakpad', 'msdia80.dll')
var target = 'C:\\Program Files\\Common Files\\Microsoft Shared\\VC\\msdia80.dll'
if (!fs.existsSync(target)) {
runas('cmd',
['/K', 'copy', source, target, '&', 'regsvr32', '/s', target, '&', 'exit'],
{admin: true})
}