deno2: build on Windows

This commit is contained in:
Bert Belder 2018-06-12 22:05:49 +02:00
parent 36f657c0d2
commit 1676822888
No known key found for this signature in database
GPG key ID: 7A77887B2E2ED461
8 changed files with 53 additions and 10 deletions

View file

@ -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
])