b202ad1e24
* refactor: remove js2asar.py and port logic to JS in more readable / GN-style way * refactor: further clean up ASAR impl, add new node_action GN template
21 lines
656 B
Text
21 lines
656 B
Text
template("node_action") {
|
|
assert(defined(invoker.script), "Need script path to run")
|
|
assert(defined(invoker.args), "Need script argumets")
|
|
|
|
action(target_name) {
|
|
forward_variables_from(invoker,
|
|
[
|
|
"deps",
|
|
"public_deps",
|
|
"sources",
|
|
"inputs",
|
|
"outputs",
|
|
])
|
|
if (!defined(inputs)) {
|
|
inputs = []
|
|
}
|
|
inputs += [ invoker.script ]
|
|
script = "//electron/build/run-node.py"
|
|
args = [ rebase_path(invoker.script) ] + invoker.args
|
|
}
|
|
}
|