mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 04:39:10 +00:00
deno2: build on Windows
This commit is contained in:
parent
36f657c0d2
commit
1676822888
8 changed files with 53 additions and 10 deletions
|
@ -11,9 +11,9 @@ import os
|
|||
|
||||
js_path = os.path.dirname(os.path.realpath(__file__))
|
||||
#bin_path = os.path.join(js_path, "deno_protobufjs", "bin")
|
||||
bin_path = os.path.join(js_path, "node_modules", ".bin")
|
||||
pbjs_bin = os.path.join(bin_path, "pbjs")
|
||||
pbts_bin = os.path.join(bin_path, "pbts")
|
||||
pbjs_path = os.path.join(js_path, "node_modules", "protobufjs", "bin")
|
||||
pbjs_bin = os.path.join(pbjs_path, "pbjs")
|
||||
pbts_bin = os.path.join(pbjs_path, "pbts")
|
||||
msg_pbjs_out = os.path.join(js_path, "msg.pb.js")
|
||||
msg_pbts_out = os.path.join(js_path, "msg.pb.d.ts")
|
||||
assert os.path.exists(pbjs_bin)
|
||||
|
@ -29,10 +29,11 @@ def touch(fname):
|
|||
open(fname, 'a').close()
|
||||
|
||||
subprocess.check_call([
|
||||
"node",
|
||||
pbjs_bin,
|
||||
#"--dependency=./deno_protobufjs/minimal",
|
||||
"--target=static-module",
|
||||
"--wraper=commonjs",
|
||||
"--wrapper=commonjs",
|
||||
"--out=" + msg_pbjs_out,
|
||||
proto_in
|
||||
])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue