зеркало из https://github.com/electron/electron.git
build: remove the tools folder (#24880)
This commit is contained in:
Родитель
b0ea1e14e1
Коммит
433956ce4f
2
BUILD.gn
2
BUILD.gn
|
@ -170,7 +170,7 @@ action("electron_js2c") {
|
|||
inputs = sources + [ "//third_party/electron_node/tools/js2c.py" ]
|
||||
outputs = [ "$root_gen_dir/electron_natives.cc" ]
|
||||
|
||||
script = "tools/js2c.py"
|
||||
script = "build/js2c.py"
|
||||
args = [ rebase_path("//third_party/electron_node") ] +
|
||||
rebase_path(outputs, root_build_dir) +
|
||||
rebase_path(sources, root_build_dir)
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
const cp = require('child_process');
|
||||
const fs = require('fs');
|
||||
|
||||
const checkPath = process.argv[2];
|
||||
const command = process.argv.slice(3);
|
||||
|
||||
if (fs.existsSync(checkPath)) {
|
||||
const child = cp.spawn(
|
||||
`${command[0]}${process.platform === 'win32' ? '.cmd' : ''}`,
|
||||
command.slice(1),
|
||||
{
|
||||
stdio: 'inherit',
|
||||
cwd: checkPath
|
||||
}
|
||||
);
|
||||
child.on('exit', code => process.exit(code));
|
||||
}
|
|
@ -4,7 +4,7 @@
|
|||
"main": "static/main.js",
|
||||
"version": "0.1.0",
|
||||
"scripts": {
|
||||
"postinstall": "node ../tools/run-if-exists.js node_modules/robotjs node-gyp rebuild"
|
||||
"postinstall": "node ../script/run-if-exists.js node_modules/robotjs node-gyp rebuild"
|
||||
},
|
||||
"devDependencies": {
|
||||
"basic-auth": "^2.0.1",
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
const cp = require('child_process')
|
||||
const fs = require('fs')
|
||||
|
||||
const checkPath = process.argv[2]
|
||||
const command = process.argv.slice(3)
|
||||
|
||||
if (fs.existsSync(checkPath)) {
|
||||
const child = cp.spawn(
|
||||
`${command[0]}${process.platform === 'win32' ? '.cmd' :''}`,
|
||||
command.slice(1),
|
||||
{
|
||||
stdio: 'inherit',
|
||||
cwd: checkPath
|
||||
}
|
||||
)
|
||||
child.on('exit', code => process.exit(code))
|
||||
}
|
Загрузка…
Ссылка в новой задаче