Merge pull request #9591 from electron/remove-runas
Remove runas dependency from root package.json
This commit is contained in:
commit
6b787ae4e0
3 changed files with 0 additions and 24 deletions
|
@ -11,9 +11,6 @@
|
||||||
"standard": "^8.4.0",
|
"standard": "^8.4.0",
|
||||||
"standard-markdown": "^2.1.1"
|
"standard-markdown": "^2.1.1"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
|
||||||
"runas": "^3.0.0"
|
|
||||||
},
|
|
||||||
"standard": {
|
"standard": {
|
||||||
"ignore": [
|
"ignore": [
|
||||||
"/out",
|
"/out",
|
||||||
|
|
|
@ -15,9 +15,6 @@ CHROMIUM_DIR = os.path.join(SOURCE_ROOT, 'vendor', 'download',
|
||||||
|
|
||||||
|
|
||||||
def main(destination):
|
def main(destination):
|
||||||
# if PLATFORM == 'win32':
|
|
||||||
# register_required_dll()
|
|
||||||
|
|
||||||
rm_rf(destination)
|
rm_rf(destination)
|
||||||
(project_name, product_name) = get_names_from_gyp()
|
(project_name, product_name) = get_names_from_gyp()
|
||||||
|
|
||||||
|
@ -49,12 +46,6 @@ def main(destination):
|
||||||
execute([sys.executable, generate_breakpad_symbols] + args)
|
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():
|
def get_names_from_gyp():
|
||||||
variables = electron_gyp()
|
variables = electron_gyp()
|
||||||
return (variables['project_name%'], variables['product_name%'])
|
return (variables['project_name%'], variables['product_name%'])
|
||||||
|
|
|
@ -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})
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue