mirror of
https://github.com/openharmony/ark_js_runtime.git
synced 2026-07-25 05:55:26 -04:00
fix README
Signed-off-by: Han00000000 <jianghan2@huawei.com> Change-Id: I8a4e017492cc1798a7524608738a2e61c8ead427
This commit is contained in:
@@ -53,7 +53,7 @@ For more infomation, see: [ARK Runtime Subsystem](https://gitee.com/openharmony/
|
||||
## Build<a name="section137768191623"></a>
|
||||
|
||||
```
|
||||
./build.sh --product-name Hi3516DV300 --build-target ark\_js\_runtime
|
||||
./build.sh --product-name Hi3516DV300 --build-target ark_js_runtime
|
||||
```
|
||||
|
||||
### Available APIs<a name="section175841548124517"></a>
|
||||
@@ -66,9 +66,9 @@ For details about how to generate JS bytecodes, see [Using the Toolchain](docs/
|
||||
|
||||
To run bytecodes:
|
||||
```
|
||||
cd out/release
|
||||
LD\_LIBRARY\_PATH=clang\_x64/ark/ark\_js\_runtime:clang\_x64/ark/ark:clang\_x64/global/i18n:../../prebuilts/clang/ohos/linux-x86\_64/llvm/lib/
|
||||
./clang\_x64/ark/ark\_js\_runtime/ark\_js\_vm helloworld.abc
|
||||
$ cd out/release
|
||||
$ export LD_LIBRARY_PATH=clang_x64/ark/ark_js_runtime:clang_x64/ark/ark:clang_x64/global/i18n:../../prebuilts/clang/ohos/linux-x86_64/llvm/lib/
|
||||
$ ./clang_x64/ark/ark_js_runtime/ark_js_vm helloworld.abc
|
||||
```
|
||||
|
||||
For more infomation, please see: [ARK-Runtime-Usage-Guide](https://gitee.com/openharmony/ark_js_runtime/blob/master/docs/ARK-Runtime-Usage-Guide.md).
|
||||
|
||||
+3
-5
@@ -66,11 +66,9 @@ JS生成字节码参考[工具链使用](docs/using-the-toolchain-zh.md)
|
||||
|
||||
字节码执行:
|
||||
```
|
||||
cd out/release
|
||||
|
||||
LD\_LIBRARY\_PATH=clang\_x64/ark/ark\_js\_runtime:clang\_x64/ark/ark:clang\_x64/global/i18n:../../prebuilts/clang/ohos/linux-x86\_64/llvm/lib/
|
||||
|
||||
./clang\_x64/ark/ark\_js\_runtime/ark\_js\_vm helloworld.abc
|
||||
$ cd out/release
|
||||
$ export LD_LIBRARY_PATH=clang_x64/ark/ark_js_runtime:clang_x64/ark/ark:clang_x64/global/i18n:../../prebuilts/clang/ohos/linux-x86_64/llvm/lib/
|
||||
$ ./clang_x64/ark/ark_js_runtime/ark_js_vm helloworld.abc
|
||||
```
|
||||
|
||||
更多使用说明请参考:[方舟运行时使用指南](https://gitee.com/openharmony/ark_js_runtime/blob/master/docs/ARK-Runtime-Usage-Guide-zh.md)
|
||||
|
||||
Reference in New Issue
Block a user