mirror of
https://github.com/openharmony/js_util_module.git
synced 2026-07-21 06:05:21 -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:
+10
-13
@@ -14,22 +14,19 @@
|
||||
# limitations under the License.
|
||||
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
|
||||
|
||||
|
||||
import argparse
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
build_path = os.path.abspath(os.path.join(os.getcwd(), "../.."))
|
||||
os.chdir("%s/base/compileruntime/js_util_module/util" % 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/util_js.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/util_js.js ' + input_arguments.dst_file)
|
||||
os.system('rm -rf ./out')
|
||||
Reference in New Issue
Block a user