mirror of
https://github.com/openharmony/js_api_module.git
synced 2026-08-24 12:43:19 -04:00
Signed-off-by: lifansheng <lifansheng1@huawei.com>
On branch master Your branch is up to date with 'origin/master'.
This commit is contained in:
@@ -16,20 +16,17 @@ import os
|
||||
import platform
|
||||
import argparse
|
||||
|
||||
def parse_args():
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('--dst-file',
|
||||
help='the converted target file')
|
||||
arguments = parser.parse_args()
|
||||
return arguments
|
||||
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
build_path = os.path.abspath(os.path.join(os.getcwd(), "../.."))
|
||||
os.chdir("%s/base/compileruntime/js_api_module/convertxml" % build_path)
|
||||
input_arguments = parse_args()
|
||||
os.system('../../../../prebuilts/build-tools/common/nodejs/node-v12.18.4-linux-x64/bin/node ../../../../ark/ts2abc/ts2panda/node_modules/typescript/bin/tsc')
|
||||
os.system('cp -r ./out/js_convertxml.js ' + input_arguments.dst_file);
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('--dst-file',
|
||||
help='the converted target file')
|
||||
input_arguments = parser.parse_args()
|
||||
|
||||
os.system('../../../../prebuilts/build-tools/common/nodejs/node-v12.18.4-linux-x64/bin/node '
|
||||
'../../../../ark/ts2abc/ts2panda/node_modules/typescript/bin/tsc')
|
||||
os.system('cp -r ./out/js_convertxml.js ' + input_arguments.dst_file)
|
||||
os.system('rm -rf ./out')
|
||||
+9
-12
@@ -16,20 +16,17 @@ import os
|
||||
import platform
|
||||
import argparse
|
||||
|
||||
def parse_args():
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('--dst-file',
|
||||
help='the converted target file')
|
||||
arguments = parser.parse_args()
|
||||
return arguments
|
||||
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
build_path = os.path.abspath(os.path.join(os.getcwd(), "../.."))
|
||||
os.chdir("%s/base/compileruntime/js_api_module/uri" % build_path)
|
||||
input_arguments = parse_args()
|
||||
os.system('../../../../prebuilts/build-tools/common/nodejs/node-v12.18.4-linux-x64/bin/node ../../../../ark/ts2abc/ts2panda/node_modules/typescript/bin/tsc')
|
||||
os.system('cp -r ./out/js_uri.js ' + input_arguments.dst_file);
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('--dst-file',
|
||||
help='the converted target file')
|
||||
input_arguments = parser.parse_args()
|
||||
|
||||
os.system('../../../../prebuilts/build-tools/common/nodejs/node-v12.18.4-linux-x64/bin/node '
|
||||
'../../../../ark/ts2abc/ts2panda/node_modules/typescript/bin/tsc')
|
||||
os.system('cp -r ./out/js_uri.js ' + input_arguments.dst_file)
|
||||
os.system('rm -rf ./out')
|
||||
+9
-12
@@ -16,20 +16,17 @@ import os
|
||||
import platform
|
||||
import argparse
|
||||
|
||||
def parse_args():
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('--dst-file',
|
||||
help='the converted target file')
|
||||
arguments = parser.parse_args()
|
||||
return arguments
|
||||
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
build_path = os.path.abspath(os.path.join(os.getcwd(), "../.."))
|
||||
os.chdir("%s/base/compileruntime/js_api_module/url" % build_path)
|
||||
input_arguments = parse_args()
|
||||
os.system('../../../../prebuilts/build-tools/common/nodejs/node-v12.18.4-linux-x64/bin/node ../../../../ark/ts2abc/ts2panda/node_modules/typescript/bin/tsc')
|
||||
os.system('cp -r ./out/js_url.js ' + input_arguments.dst_file);
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('--dst-file',
|
||||
help='the converted target file')
|
||||
input_arguments = parser.parse_args()
|
||||
|
||||
os.system('../../../../prebuilts/build-tools/common/nodejs/node-v12.18.4-linux-x64/bin/node '
|
||||
'../../../../ark/ts2abc/ts2panda/node_modules/typescript/bin/tsc')
|
||||
os.system('cp -r ./out/js_url.js ' + input_arguments.dst_file)
|
||||
os.system('rm -rf ./out')
|
||||
Reference in New Issue
Block a user