From 006b8a2a30b32c8af0625defcc3310bcdcd039be Mon Sep 17 00:00:00 2001 From: zhaohang Date: Wed, 10 Sep 2025 17:23:33 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E9=A2=84=E4=B8=8B=E8=BD=BD=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=A0=BC=E5=BC=8F=E8=BD=AC=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhaohang --- prebuilts_download.sh | 4 +- prebuilts_download_config.json | 1612 ++++++++++++++++------------ prebuilts_service/config_parser.py | 3 + 3 files changed, 930 insertions(+), 689 deletions(-) diff --git a/prebuilts_download.sh b/prebuilts_download.sh index ba86ed2e52..f5c1362d4b 100755 --- a/prebuilts_download.sh +++ b/prebuilts_download.sh @@ -185,7 +185,9 @@ if [ -d "${code_dir}/prebuilts/build-tools/common/nodejs" ];then rm -rf "${code_dir}/prebuilts/build-tools/common/nodejs" echo "remove nodejs" fi -python3 "${code_dir}/build/prebuilts_download.py" $wget_ssl_check $tool_repo $npm_registry $help $cpu $platform $npm_para $disable_rich $enable_symlink $build_arkuix $glibc_version +type="--type src" +config_file="--config-file ${code_dir}/build/prebuilts_download_config.json" +python3 "${code_dir}/build/prebuilts_config.py" $wget_ssl_check $tool_repo $npm_registry $help $cpu $platform $npm_para $disable_rich $enable_symlink $build_arkuix $glibc_version $type $config_file if [ -f "${code_dir}/prebuilts/cmake/linux-${host_cpu_prefix}/bin/ninja" ];then rm -rf "${code_dir}/prebuilts/cmake/linux-${host_cpu_prefix}/bin/ninja" fi diff --git a/prebuilts_download_config.json b/prebuilts_download_config.json index 75a12ada5b..df0c4362d6 100644 --- a/prebuilts_download_config.json +++ b/prebuilts_download_config.json @@ -1,766 +1,1002 @@ { - "prebuilts_download_dir": "../openharmony_prebuilts", - "npm_install_path": [ - "developtools/ace_ets2bundle/compiler", - "developtools/ace_js2bundle/ace-loader", - "third_party/jsframework", - "third_party/parse5/packages/parse5", - "third_party/weex-loader", - "arkcompiler/ets_frontend/legacy_bin/api8", - "interface/sdk-js/build-tools", - "arkcompiler/ets_frontend/arkguard", - "arkcompiler/ets_frontend/ets2panda/driver/build_system", - "arkcompiler/ets_frontend/ets2panda/linter", - "arkcompiler/ets_frontend/ets2panda/bindings", - "arkcompiler/runtime_core/static_core/plugins/ets/tools/declgen_ts2sts", - "developtools/ace_ets2bundle/koala-wrapper", - "developtools/ace_ets2bundle/arkui-plugins" - - ], - "uninstalled_tools": [ - "prebuilts/build-tools/common/restool" - ], - "node_modules_copy": [ + "download_root": "../openharmony_prebuilts", + "tool_list": [ { - "src": "third_party/jsframework/node_modules", - "dest": "prebuilts/build-tools/common/js-framework/node_modules", - "use_symlink": "True" - }, - { - "src": "arkcompiler/ets_frontend/legacy_bin/api8/node_modules", - "dest": "prebuilts/build-tools/common/ts2abc/node_modules", - "use_symlink": "True" - }, - { - "src": "test/testfwk/arkxtest/jsunit", - "dest": "developtools/ace_ets2bundle/compiler/node_modules/@ohos/hypium", - "use_symlink": "False" - }, - { - "src": "test/testfwk/arkxtest/jsunit", - "dest": "developtools/ace_js2bundle/ace-loader/node_modules/@ohos/hypium", - "use_symlink": "False" - }, - { - "src": "test/testfwk/arkxtest/jsunit/", - "dest": "developtools/ace_ets2bundle/compiler/node_modules/hypium/", - "use_symlink": "False" - }, - { - "src": "test/testfwk/arkxtest/jsunit/", - "dest": "developtools/ace_js2bundle/ace-loader/node_modules/hypium/", - "use_symlink": "False" - } - ], - "file_handle_config": [ - { - "src":"/prebuilts/build-tools/common/nodejs", - "dest":"/prebuilts/build-tools/common/nodejs", - "rename": "true", - "symlink_src":"/node-v14.21.1-linux-x64", - "symlink_dest":"/current" - }, - { - "src":"/prebuilts/build-tools/common/nodejs", - "dest":"/prebuilts/build-tools/common/nodejs", - "rename": "true", - "symlink_src":"/node-v14.21.1-darwin-x64", - "symlink_dest":"/current" - }, - { - "src":"/prebuilts/python/linux-x86", - "dest":"/prebuilts/python/linux-x86", - "rename": "true", - "symlink_src":"/3.11.4", - "symlink_dest":"/current" - }, - { - "src":"/prebuilts/python/darwin-x86", - "dest":"/prebuilts/python/darwin-x86", - "rename": "true", - "symlink_src":"/3.11.4", - "symlink_dest":"/current" - }, - { - "src":"/prebuilts/python/darwin-arm64", - "dest":"/prebuilts/python/darwin-arm64", - "rename": "true", - "symlink_src":"/3.11.4", - "symlink_dest":"/current" - }, - { - "src": "/prebuilts/gcc/linux-x86/arm/gcc-linaro-7.5.0-arm-linux-gnueabi/prebuilts_gcc_linux-x86_arm_gcc-linaro-7.5.0-arm-linux-gnueabi", - "tmp": "/prebuilts/gcc/linux-x86/arm/gcc-linaro-7.5.0-arm-linux-gnueabi2", - "dest": "/prebuilts/gcc/linux-x86/arm/gcc-linaro-7.5.0-arm-linux-gnueabi" - }, - { - "src": "/prebuilts/clang/ohos/ohos-arm64/clang_ohos-arm64-115b62-20250811", - "dest": "/prebuilts/clang/ohos/ohos-arm64/llvm", - "rename": "true", - "symlink_src": "/lib/clang/15.0.4", - "symlink_dest": "/lib/clang/current" - }, - { - "src": "/prebuilts/clang/ohos/windows-x86_64/clang_windows-x86_64-115b62-20250811", - "dest": "/prebuilts/clang/ohos/windows-x86_64/llvm", - "rename": "true", - "symlink_src": "/lib/clang/15.0.4", - "symlink_dest": "/lib/clang/current" - }, - { - "src": "/prebuilts/clang/ohos/linux-x86_64/clang_linux-x86_64-115b62-20250811", - "dest": "/prebuilts/clang/ohos/linux-x86_64/llvm", - "rename": "true", - "symlink_src": "/lib/clang/15.0.4", - "symlink_dest": "/lib/clang/current" - }, - { - "src": "/prebuilts/clang/ohos/darwin-arm64/clang_darwin-arm64-115b62-20250811", - "dest": "/prebuilts/clang/ohos/darwin-arm64/llvm", - "rename": "true", - "symlink_src": "/lib/clang/15.0.4", - "symlink_dest": "/lib/clang/current" - }, - { - "src": "/prebuilts/clang/ohos/darwin-x86_64/clang_darwin-x86_64-115b62-20250811", - "dest": "/prebuilts/clang/ohos/darwin-x86_64/llvm", - "rename": "true", - "symlink_src": "/lib/clang/15.0.4", - "symlink_dest": "/lib/clang/current" - }, - { - "src": "/prebuilts/clang/ohos/ohos-arm64/libcxx_ndk_ohos-arm64-115b62-20250811", - "dest": "/prebuilts/clang/ohos/ohos-arm64/libcxx-ndk", - "rename": "true" - }, - { - "src": "/prebuilts/clang/ohos/windows-x86_64/libcxx-ndk_windows-x86_64-115b62-20250811", - "dest": "/prebuilts/clang/ohos/windows-x86_64/libcxx-ndk", - "rename": "true" - }, - { - "src": "/prebuilts/clang/ohos/linux-x86_64/libcxx-ndk_linux-x86_64-115b62-20250811", - "dest": "/prebuilts/clang/ohos/linux-x86_64/libcxx-ndk", - "rename": "true" + "name": "node", + "tag": "base", + "type": "src", + "unzip_dir": "${code_dir}/prebuilts/build-tools/common/nodejs", + "config": { + "linux": { + "arm64": [ + { + "remote_url": "/openharmony/compiler/nodejs/v14.21.1/node-v14.21.1-linux-aarch64.tar.gz", + "unzip_filename": "node-v14.21.1-linux-aarch64", + "symlink_src": "${unzip_dir}/node-v14.21.1-linux-aarch64", + "type": "src" + } + ], + "x86_64": [ + { + "remote_url": "/nodejs/v14.21.1/node-v14.21.1-linux-x64.tar.gz", + "unzip_filename": "node-v14.21.1-linux-x64", + "symlink_src": "${unzip_dir}/node-v14.21.1-linux-x64", + "type": "src" + }, + { + "remote_url": "/nodejs/v16.20.2/node-v16.20.2-linux-x64.tar.gz", + "unzip_filename": "node-v16.20.2-linux-x64", + "type": "src" + }, + { + "remote_url": "/nodejs/v18.20.1/node-v18.20.1-linux-x64.tar.gz", + "unzip_filename": "node-v18.20.1-linux-x64", + "type": "src" + } + ] + }, + "darwin": { + "any": [ + { + "remote_url": "/nodejs/v14.21.1/node-v14.21.1-darwin-x64.tar.gz", + "unzip_filename": "node-v14.21.1-darwin-x64", + "symlink_src": "${unzip_dir}/node-v14.21.1-darwin-x64", + "type": "src" + }, + { + "remote_url": "/nodejs/v16.20.2/node-v16.20.2-darwin-x64.tar.gz", + "unzip_filename": "node-v16.20.2-darwin-x64", + "type": "src" + }, + { + "remote_url": "/nodejs/v18.20.1/node-v18.20.1-darwin-x64.tar.gz", + "unzip_filename": "node-v18.20.1-darwin-x64", + "type": "src" + } + ] + } + }, + "handle": [ + { + "type": "symlink", + "src": "${symlink_src}", + "dest": "${code_dir}/prebuilts/build-tools/common/nodejs/current" + } + ] }, { - "src": "/prebuilts/clang/ohos/darwin-arm64/libcxx-ndk_darwin-arm64-115b62-20250811", - "dest": "/prebuilts/clang/ohos/darwin-arm64/libcxx-ndk", - "rename": "true" + "name": "cmake", + "tag": "base", + "type": "src", + "unzip_dir": "${code_dir}/prebuilts/cmake", + "config": { + "linux": { + "arm64": [ + { + "remote_url": "/openharmony/compiler/cmake/3.28.2/cmake-linux-aarch64-3.28.2-20241210.tar.gz", + "unzip_filename": "linux", + "type": "src" + } + ], + "x86_64": [ + { + "remote_url": "/openharmony/compiler/cmake/3.28.2/cmake-linux-x86-3.28.2.tar.gz", + "unzip_filename": "linux-x86", + "type": "src" + }, + { + "remote_url": "/openharmony/compiler/cmake/3.28.2/cmake-ohos-3.28.2-20240827.tar.gz", + "unzip_filename": "ohos", + "type": "src" + }, + { + "remote_url": "/openharmony/compiler/cmake/3.28.2/cmake-windows-x86-3.28.2.tar.gz", + "unzip_filename": "windows-x86", + "type": "src" + } + ] + }, + "darwin": { + "arm64": [ + { + "remote_url": "/openharmony/compiler/cmake/3.28.2/cmake-darwin-universal-3.28.2.tar.gz", + "unzip_filename": "darwin-universal", + "type": "src" + } + ], + "x86_64": [ + { + "remote_url": "/openharmony/compiler/cmake/3.28.2/cmake-darwin-universal-3.28.2.tar.gz", + "unzip_filename": "darwin-universal", + "type": "src" + } + ] + } + }, + "handle": [] }, { - "src": "/prebuilts/clang/ohos/darwin-x86_64/libcxx-ndk_darwin-x86_64-115b62-20250811", - "dest": "/prebuilts/clang/ohos/darwin-x86_64/libcxx-ndk", - "rename": "true" + "name": "gn", + "tag": "base", + "type": "src", + "unzip_filename": "gn", + "config": { + "linux": { + "arm64": [ + { + "unzip_dir": "${code_dir}/prebuilts/build-tools/linux-aarch64/bin", + "remote_url": "/openharmony/compiler/gn/20240530/gn-linux-aarch64-20240530.tar.gz" + } + ], + "x86_64": [ + { + "unzip_dir": "${code_dir}/prebuilts/build-tools/linux-x86/bin", + "remote_url": "/openharmony/compiler/gn/20250804/gn-linux-x86-20250804.tar.gz" + } + ] + }, + "darwin": { + "arm64": [ + { + "unzip_dir": "${code_dir}/prebuilts/build-tools/darwin-x86/bin", + "remote_url": "/openharmony/compiler/gn/20250529/gn-darwin-x86-20250529.tar.gz" + } + ], + "x86_64": [ + { + "unzip_dir": "${code_dir}/prebuilts/build-tools/darwin-x86/bin", + "remote_url": "/openharmony/compiler/gn/20250529/gn-darwin-x86-20250529.tar.gz" + } + ] + } + }, + "handle": [] }, { - "src":"/prebuilts/python/linux-arm64", - "dest":"/prebuilts/python/linux-aarch64", - "rename": "true", - "symlink_src":"/3.11.4", - "symlink_dest":"/current" + "name": "ninja", + "tag": "base", + "type": "src", + "unzip_filename": "ninja", + "config": { + "linux": { + "arm64": [ + { + "unzip_dir": "${code_dir}/prebuilts/build-tools/linux-aarch64/bin", + "remote_url": "/openharmony/compiler/ninja/1.12.0/linux/ninja-linux-aarch64-1.12.0-20241210.tar.gz" + } + ], + "x86_64": [ + { + "unzip_dir": "${code_dir}/prebuilts/build-tools/ohos/bin", + "remote_url": "/openharmony/compiler/ninja/1.12.0/ohos/ninja-ohos-1.12.0-20240827.tar.gz", + "type": "src" + }, + { + "unzip_dir": "${code_dir}/prebuilts/build-tools/linux-x86/bin", + "remote_url": "/openharmony/compiler/ninja/1.12.0/linux/ninja-linux-x86-1.12.0-20240523.tar.gz", + "type": "src" + }, + { + "unzip_dir": "${code_dir}/prebuilts/build-tools/windows-x86/bin", + "remote_url": "/openharmony/compiler/ninja/1.12.0/windows/ninja-windows-x86-1.12.0-20240523.tar.gz", + "type": "src" + } + ] + }, + "darwin": { + "arm64": [ + { + "unzip_dir": "${code_dir}/prebuilts/build-tools/darwin-x86/bin", + "remote_url": "/openharmony/compiler/ninja/1.12.0/darwin/arm/ninja-darwin-arm-1.12.0-20240829.tar.gz", + "type": "src" + } + ], + "x86_64": [ + { + "unzip_dir": "${code_dir}/prebuilts/build-tools/darwin-x86/bin", + "remote_url": "/openharmony/compiler/ninja/1.12.0/darwin/x86/ninja-darwin-x86-1.12.0-20240829.tar.gz", + "type": "src" + } + ] + } + }, + "handle": [] }, { - "src":"/prebuilts/build-tools/common/nodejs", - "dest":"/prebuilts/build-tools/common/nodejs", - "rename": "true", - "symlink_src":"/node-v14.21.1-linux-aarch64", - "symlink_dest":"/current" + "name": "ark_js_prebuilts", + "tag": "base", + "type": "src", + "unzip_dir": "${code_dir}/prebuilts/ark_tools", + "unzip_filename": "ark_js_prebuilts", + "config": { + "linux": { + "arm64": [ + { + "remote_url": "/openharmony/compiler/llvm_prebuilt_libs/ark_js_prebuilts_20231215.tar.gz", + "type": "src" + } + ], + "x86_64": [ + { + "remote_url": "/openharmony/compiler/llvm_prebuilt_libs/ark_js_prebuilts_20230713.tar.gz", + "type": "src" + } + ] + }, + "darwin": { + "arm64": [ + { + "remote_url": "/openharmony/compiler/llvm_prebuilt_libs/ark_js_prebuilts_darwin_arm64_20230209.tar.gz", + "type": "src" + } + ], + "x86_64": [ + { + "remote_url": "/openharmony/compiler/llvm_prebuilt_libs/ark_js_prebuilts_darwin_x64_20230209.tar.gz", + "type": "src" + } + ] + } + }, + "handle": [] }, { - "src": "/prebuilts/clang/ohos/linux-aarch64/clang_linux_aarch64-115b62-20250811", - "dest": "/prebuilts/clang/ohos/linux-aarch64/llvm", - "rename": "true", - "symlink_src": "/lib/clang/15.0.4", - "symlink_dest": "/lib/clang/current" + "name": "packaging_tools", + "tag": "base", + "type": "src", + "unzip_dir": "${code_dir}/prebuilts/packing_tool", + "unzip_filename": "packing_tool", + "config": { + "any": { + "any": [ + { + "remote_url": "/harmonyos/compiler/packing_tool/packing_tool_libs_20250215.zip", + "type": "src" + } + ] + } + }, + "handle": [] }, { - "src": "/prebuilts/clang/ohos/linux-aarch64/libcxx-ndk_linux-aarch64-115b62-20250811", - "dest": "/prebuilts/clang/ohos/linux-aarch64/libcxx-ndk", - "rename": "true" - } - ], - "linux": { - "arm64": { - "node_config": [ - { - "unzip_dir": "prebuilts/build-tools/common/nodejs", - "file_path": "/openharmony/compiler/nodejs/v14.21.1/node-v14.21.1-linux-aarch64.tar.gz", - "unzip_filename": "node-v14.21.1-linux-aarch64" - } - ], - "copy_config": [ - { - "unzip_dir": "prebuilts/cmake", - "file_path": "/openharmony/compiler/cmake/3.28.2/cmake-linux-aarch64-3.28.2-20241210.tar.gz", - "unzip_filename": "linux" - }, - { - "unzip_dir": "prebuilts/build-tools/linux-aarch64/bin", - "file_path": "/openharmony/compiler/gn/20240530/gn-linux-aarch64-20240530.tar.gz", - "unzip_filename": "gn" - }, - { - "unzip_dir": "prebuilts/build-tools/linux-aarch64/bin", - "file_path": "/openharmony/compiler/ninja/1.12.0/linux/ninja-linux-aarch64-1.12.0-20241210.tar.gz", - "unzip_filename": "ninja" - }, - { - "unzip_dir": "prebuilts/ark_tools", - "file_path": "/openharmony/compiler/llvm_prebuilt_libs/ark_js_prebuilts_20231215.tar.gz", - "unzip_filename": "ark_js_prebuilts" + "name": "clang", + "tag": "base", + "type": "src", + "unzip_filename": "llvm", + "config": { + "linux": { + "arm64": [ + { + "unzip_dir": "${code_dir}/prebuilts/clang/ohos/linux-aarch64", + "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/linux_aarch64/clang_linux_aarch64-115b62-20250811.tar.gz", + "rename_src": "/prebuilts/clang/ohos/linux-aarch64/clang_linux_aarch64-115b62-20250811", + "type": "src" + } + ], + "x86_64": [ + { + "unzip_dir": "${code_dir}/prebuilts/clang/ohos/ohos-arm64", + "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/ohos_arm64/clang_ohos-arm64-115b62-20250811.tar.gz", + "rename_src": "${code_dir}/prebuilts/clang/ohos/ohos-arm64/clang_ohos-arm64-115b62-20250811", + "type": "src" + }, + { + "unzip_dir": "${code_dir}/prebuilts/clang/ohos/windows-x86_64", + "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/windows/clang_windows-x86_64-115b62-20250811.tar.gz", + "rename_src": "${code_dir}/prebuilts/clang/ohos/windows-x86_64/clang_windows-x86_64-115b62-20250811", + "type": "src" + }, + { + "unzip_dir": "${code_dir}/prebuilts/clang/ohos/linux-x86_64", + "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/linux/clang_linux-x86_64-115b62-20250811.tar.gz", + "rename_src": "${code_dir}/prebuilts/clang/ohos/linux-x86_64/clang_linux-x86_64-115b62-20250811", + "type": "src" + } + ] }, - { - "unzip_dir": "prebuilts/packing_tool", - "file_path": "/harmonyos/compiler/packing_tool/packing_tool_libs_20250215.zip", - "unzip_filename": "packing_tool" + "darwin": { + "arm64": [ + { + "unzip_dir": "${code_dir}/prebuilts/clang/ohos/darwin-arm64", + "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/darwin_arm64/clang_darwin-arm64-115b62-20250811.tar.gz", + "rename_src": "${code_dir}/prebuilts/clang/ohos/darwin-arm64/clang_darwin-arm64-115b62-20250811", + "type": "src" + } + ], + "x86_64": [ + { + "unzip_dir": "${code_dir}/prebuilts/clang/ohos/darwin-x86_64", + "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/darwin_x86_64/clang_darwin-x86_64-115b62-20250811.tar.gz", + "rename_src": "${code_dir}/prebuilts/clang/ohos/darwin-arm64/clang_darwin-arm64-115b62-20250811", + "type": "src" + } + ] } - ], - "linux_copy_config": [ - { - "unzip_dir": "prebuilts/clang/ohos/linux-aarch64", - "file_path": "/openharmony/compiler/clang/15.0.4-115b62/linux_aarch64/clang_linux_aarch64-115b62-20250811.tar.gz", - "unzip_filename": "llvm" - }, - { - "unzip_dir": "prebuilts/clang/ohos/linux-aarch64", - "file_path": "/openharmony/compiler/clang/15.0.4-115b62/linux_aarch64/libcxx-ndk_linux-aarch64-115b62-20250811.tar.gz", - "unzip_filename": "libcxx-ndk" - }, - { - "unzip_dir": "prebuilts/gcc/linux-x86/arm/gcc-linaro-7.5.0-arm-linux-gnueabi", - "file_path": "/openharmony/compiler/prebuilts_gcc_linux-x86_arm_gcc-linaro-7.5.0-arm-linux-gnueabi/1.0/prebuilts_gcc_linux-x86_arm_gcc-linaro-7.5.0-arm-linux-gnueabi.tar.gz", - "unzip_filename": "prebuilts_gcc_linux-x86_arm_gcc-linaro-7.5.0-arm-linux-gnueabi" - }, - { - "unzip_dir": "prebuilts/gcc/linux-x86/aarch64", - "file_path": "/openharmony/compiler/prebuilts_gcc_linux-x86_arm_gcc-linaro-7.5.0-arm-linux-gnueabi/1.0/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu.tar.xz", - "unzip_filename": "gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu" - }, - { - "unzip_dir": "prebuilts/taihe/ohos/linux-x86_64", - "file_path": "/openharmony/compiler/Taihe/0.34.1/taihe-linux-x86_64-v0.34.1-20250623.tar.gz", - "unzip_filename": "taihe" - }, - { - "unzip_dir": "prebuilts/taihe/ohos/windows-x86_64", - "file_path": "/openharmony/compiler/Taihe/0.34.1/taihe-windows-x86_64-v0.34.1-20250623.tar.gz", - "unzip_filename": "taihe" - }, - { - "unzip_dir": "prebuilts/python", - "file_path": "/openharmony/compiler/python/3.11.4/linux/python-linux-arm64-3.11.4_20240715.tar.gz", - "unzip_filename": "linux-arm64" - }, - { - "unzip_dir": "prebuilts/develop_tools", - "file_path": "/openharmony/develop_tools/bpftool_v5.10.93_20221114.tar.gz", - "unzip_filename": "bpftool" - }, + }, + "handle": [ { - "unzip_dir": "prebuilts/develop_tools", - "file_path": "/openharmony/develop_tools/pahole_v1.21_20221124.tar.gz", - "unzip_filename": "pahole" + "type": "move", + "src": "${rename_src}", + "dest": "${unzip_dir}/llvm" }, { - "unzip_dir": "prebuilts/rustc", - "file_path": "/openharmony/compiler/rust/20240528/rust-std-nightly-aarch64-unknown-linux-ohos_20240528.tar.gz", - "unzip_filename": "rustc-aarch64-std" + "type": "symlink", + "src": "${unzip_dir}/llvm/lib/clang/15.0.4", + "dest": "${unzip_dir}/llvm/lib/clang/current" } - ], - "install": [ - { - "install_dir":"prebuilts/rustc/rust-1.68.0-dev-x86_64-unknown-linux-gnu-norpath", - "script":"install.sh", - "args": [ + ] + }, + { + "name": "libcxx-ndk", + "tag": "base", + "type": "src", + "unzip_filename": "libcxx-ndk", + "config": { + "linux": { + "arm64": [ { - "prefix": "''" + "unzip_dir": "${code_dir}/prebuilts/clang/ohos/linux-aarch64", + "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/linux_aarch64/libcxx-ndk_linux-aarch64-115b62-20250811.tar.gz", + "rename_src": "${unzip_dir}/libcxx-ndk_linux-aarch64-115b62-20250811", + "type": "src" } ], - "destdir": "prebuilts/rustc/linux-aarch64/current" + "x86_64": [ + { + "unzip_dir": "${code_dir}/prebuilts/clang/ohos/ohos-arm64", + "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/ohos_arm64/libcxx_ndk_ohos-arm64-115b62-20250811.tar.gz", + "rename_src": "${unzip_dir}/libcxx_ndk_ohos-arm64-115b62-20250811", + "type": "src" + }, + { + "unzip_dir": "${code_dir}/prebuilts/clang/ohos/windows-x86_64", + "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/windows/libcxx-ndk_windows-x86_64-115b62-20250811.tar.gz", + "rename_src": "${unzip_dir}/libcxx-ndk_windows-x86_64-115b62-20250811", + "type": "src" + }, + { + "unzip_dir": "${code_dir}/prebuilts/clang/ohos/linux-x86_64", + "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/linux/libcxx-ndk_linux-x86_64-115b62-20250811.tar.gz", + "rename_src": "${unzip_dir}/libcxx-ndk_linux-x86_64-115b62-20250811", + "type": "src" + } + ] }, - { - "install_dir":"prebuilts/rustc/rust-std-1.68.0-dev-aarch64-linux-ohos-norpath_20230706", - "script":"install.sh", - "args": [ + "darwin": { + "arm64": [ { - "prefix": "''" + "unzip_dir": "${code_dir}/prebuilts/clang/ohos/darwin-arm64", + "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/darwin_arm64/libcxx-ndk_darwin-arm64-115b62-20250811.tar.gz", + "rename_src": "${unzip_dir}/libcxx-ndk_darwin-arm64-115b62-20250811", + "type": "src" } ], - "destdir": "prebuilts/rustc/linux-aarch64/current" + "x86_64": [ + { + "unzip_dir": "${code_dir}/prebuilts/clang/ohos/darwin-x86_64", + "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/darwin_x86_64/libcxx-ndk_darwin-x86_64-115b62-20250811.tar.gz", + "rename_src": "${unzip_dir}/libcxx-ndk_darwin-x86_64-115b62-20250811", + "type": "src" + } + ] + } + }, + "handle": [ + { + "type": "move", + "src": "${rename_src}", + "dest": "${unzip_dir}/libcxx-ndk" } ] }, - "x86_64": { - "node_config": [ - { - "unzip_dir": "prebuilts/build-tools/common/nodejs", - "file_path": "/nodejs/v14.21.1/node-v14.21.1-linux-x64.tar.gz", - "unzip_filename": "node-v14.21.1-linux-x64" - }, - { - "unzip_dir": "prebuilts/build-tools/common/nodejs", - "file_path": "/nodejs/v16.20.2/node-v16.20.2-linux-x64.tar.gz", - "unzip_filename": "node-v16.20.2-linux-x64" + { + "name": "gcc", + "tag": "base", + "type": "src", + "config": { + "linux": { + "arm64": [ + { + "unzip_dir": "${code_dir}/prebuilts/gcc/linux-x86/arm/gcc-linaro-7.5.0-arm-linux-gnueabi", + "remote_url": "/openharmony/compiler/prebuilts_gcc_linux-x86_arm_gcc-linaro-7.5.0-arm-linux-gnueabi/1.0/prebuilts_gcc_linux-x86_arm_gcc-linaro-7.5.0-arm-linux-gnueabi.tar.gz", + "unzip_filename": "prebuilts_gcc_linux-x86_arm_gcc-linaro-7.5.0-arm-linux-gnueabi", + "type": "src" + }, + { + "unzip_dir": "${code_dir}/prebuilts/gcc/linux-x86/aarch64", + "remote_url": "/openharmony/compiler/prebuilts_gcc_linux-x86_arm_gcc-linaro-7.5.0-arm-linux-gnueabi/1.0/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu.tar.xz", + "unzip_filename": "gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu", + "type": "src" + } + ], + "x86_64": [ + { + "unzip_dir": "${code_dir}/prebuilts/gcc/linux-x86/arm/gcc-linaro-7.5.0-arm-linux-gnueabi", + "remote_url": "/openharmony/compiler/prebuilts_gcc_linux-x86_arm_gcc-linaro-7.5.0-arm-linux-gnueabi/1.0/prebuilts_gcc_linux-x86_arm_gcc-linaro-7.5.0-arm-linux-gnueabi.tar.gz", + "unzip_filename": "prebuilts_gcc_linux-x86_arm_gcc-linaro-7.5.0-arm-linux-gnueabi", + "rename_src": "${unzip_dir}/${unzip_filename}", + "tmp": "${code_dir}/prebuilts/gcc/linux-x86/arm/gcc-linaro-7.5.0-arm-linux-gnueabi2", + "rename_dest": "${code_dir}/prebuilts/gcc/linux-x86/arm/gcc-linaro-7.5.0-arm-linux-gnueabi", + "type": "src" + }, + { + "unzip_dir": "${code_dir}/prebuilts/gcc/linux-x86/aarch64", + "remote_url": "/openharmony/compiler/prebuilts_gcc_linux-x86_arm_gcc-linaro-7.5.0-arm-linux-gnueabi/1.0/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu.tar.xz", + "unzip_filename": "gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu", + "type": "src" + } + ] + } }, - { - "unzip_dir": "prebuilts/build-tools/common/nodejs", - "file_path": "/nodejs/v18.20.1/node-v18.20.1-linux-x64.tar.gz", - "unzip_filename": "node-v18.20.1-linux-x64" - } - ], - "copy_config": [ - { - "unzip_dir": "prebuilts/cmake", - "file_path": "/openharmony/compiler/cmake/3.28.2/cmake-linux-x86-3.28.2.tar.gz", - "unzip_filename": "linux-x86" - }, - { - "unzip_dir": "prebuilts/tool/command-line-tools", - "file_path": "/harmonyos/compiler/hvigor/5.0.3.906/command-line-tools.tar", - "unzip_filename": "hvigor" - }, + "handle": [ { - "unzip_dir": "prebuilts/cmake", - "file_path": "/openharmony/compiler/cmake/3.28.2/cmake-ohos-3.28.2-20240827.tar.gz", - "unzip_filename": "ohos" + "type": "move", + "src": "${rename_src}", + "dest": "${tmp}" }, { - "unzip_dir": "prebuilts/build-tools/ohos/bin", - "file_path": "/openharmony/compiler/ninja/1.12.0/ohos/ninja-ohos-1.12.0-20240827.tar.gz", - "unzip_filename": "ninja" + "type": "move", + "filetype": "mark", + "src": "${rename_dest}", + "dest": "${tmp}" }, { - "unzip_dir": "prebuilts/build-tools/linux-x86/bin", - "file_path": "/openharmony/compiler/gn/20250903/gn-linux-x86-20250903.tar.gz", - "unzip_filename": "gn" + "type": "remove", + "path": "${rename_dest}" }, { - "unzip_dir": "prebuilts/build-tools/linux-x86/bin", - "file_path": "/openharmony/compiler/ninja/1.12.0/linux/ninja-linux-x86-1.12.0-20240523.tar.gz", - "unzip_filename": "ninja" - }, - { - "unzip_dir": "prebuilts/build-tools/windows-x86/bin", - "file_path": "/openharmony/compiler/ninja/1.12.0/windows/ninja-windows-x86-1.12.0-20240523.tar.gz", - "unzip_filename": "ninja" - }, - { - "unzip_dir": "prebuilts/ark_tools", - "file_path": "/openharmony/compiler/llvm_prebuilt_libs/ark_js_prebuilts_20230713.tar.gz", - "unzip_filename": "ark_js_prebuilts" - }, - { - "unzip_dir": "prebuilts/ark_tools/llvm_aot/aot_x86_release", - "file_path": "/harmonyos/compiler/clang/15.0.4-0d8b9c-ark/llvm-15.0.4-ark18-release-x86_64.tar.xz", - "unzip_filename": "llvm_aot_x86_release" - }, - { - "unzip_dir": "prebuilts/ark_tools/llvm_aot/aot_x86_debug", - "file_path": "/harmonyos/compiler/clang/15.0.4-0d8b9c-ark/llvm-15.0.4-ark18-debug-x86_64.tar.xz", - "unzip_filename": "llvm_aot_x86_debug" - }, - { - "unzip_dir": "prebuilts/ark_tools/llvm_aot/aot_aarch64_release", - "file_path": "/harmonyos/compiler/clang/15.0.4-0d8b9c-ark/llvm-15.0.4-ark18-release-aarch64.tar.xz", - "unzip_filename": "llvm_aot_aarch64_release" - }, - { - "unzip_dir": "prebuilts/ark_tools/llvm_aot/aot_aarch64_debug", - "file_path": "/harmonyos/compiler/clang/15.0.4-0d8b9c-ark/llvm-15.0.4-ark18-debug-aarch64.tar.xz", - "unzip_filename": "llvm_aot_aarch64_debug" - }, - { - "unzip_dir": "prebuilts/ark_tools/llvm_aot/aot_ohos_release", - "file_path": "/harmonyos/compiler/clang/15.0.4-0d8b9c-ark/llvm-15.0.4-ark18-release-ohos.tar.xz", - "unzip_filename": "llvm_aot_ohos_release" - }, - { - "unzip_dir": "prebuilts/ark_tools/llvm_aot/aot_gn_ohos", - "file_path": "/harmonyos/compiler/clang/15.0.4-0d8b9c-ark/llvm-15.0.4-ark18-release-ohos-gn_20250306.tar.xz", - "unzip_filename": "llvm_aot_gn_ohos_release" - }, - { - "unzip_dir": "prebuilts/packing_tool", - "file_path": "/harmonyos/compiler/packing_tool/packing_tool_libs_20250215.zip", - "unzip_filename": "packing_tool" + "type": "move", + "src": "${tmp}", + "dest": "${rename_dest}" } - ], - "linux_copy_config": [ - { - "unzip_dir": "prebuilts/cmake", - "file_path": "/openharmony/compiler/cmake/3.28.2/cmake-windows-x86-3.28.2.tar.gz", - "unzip_filename": "windows-x86" - }, - { - "unzip_dir": "prebuilts/mingw-w64/ohos/linux-x86_64", - "file_path": "/openharmony/compiler/mingw-w64/11.0.1/clang-mingw-20240510.tar.gz", - "unzip_filename": "clang-mingw" - }, - { - "unzip_dir": "prebuilts/gcc/linux-x86/arm/gcc-linaro-7.5.0-arm-linux-gnueabi", - "file_path": "/openharmony/compiler/prebuilts_gcc_linux-x86_arm_gcc-linaro-7.5.0-arm-linux-gnueabi/1.0/prebuilts_gcc_linux-x86_arm_gcc-linaro-7.5.0-arm-linux-gnueabi.tar.gz", - "unzip_filename": "prebuilts_gcc_linux-x86_arm_gcc-linaro-7.5.0-arm-linux-gnueabi" - }, - { - "unzip_dir": "prebuilts/gcc/linux-x86/aarch64", - "file_path": "/openharmony/compiler/prebuilts_gcc_linux-x86_arm_gcc-linaro-7.5.0-arm-linux-gnueabi/1.0/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu.tar.xz", - "unzip_filename": "gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu" - }, - { - "unzip_dir": "prebuilts/clang/ohos/ohos-arm64", - "file_path": "/openharmony/compiler/clang/15.0.4-115b62/ohos_arm64/clang_ohos-arm64-115b62-20250811.tar.gz", - "unzip_filename": "llvm" - }, - { - "unzip_dir": "prebuilts/clang/ohos/ohos-arm64", - "file_path": "/openharmony/compiler/clang/15.0.4-115b62/ohos_arm64/libcxx_ndk_ohos-arm64-115b62-20250811.tar.gz", - "unzip_filename": "libcxx-ndk" - }, - { - "unzip_dir": "prebuilts/clang/ohos/windows-x86_64", - "file_path": "/openharmony/compiler/clang/15.0.4-115b62/windows/clang_windows-x86_64-115b62-20250811.tar.gz", - "unzip_filename": "llvm" - }, - { - "unzip_dir": "prebuilts/clang/ohos/windows-x86_64", - "file_path": "/openharmony/compiler/clang/15.0.4-115b62/windows/libcxx-ndk_windows-x86_64-115b62-20250811.tar.gz", - "unzip_filename": "libcxx-ndk" - }, - { - "unzip_dir": "prebuilts/clang/ohos/linux-x86_64", - "file_path": "/openharmony/compiler/clang/15.0.4-115b62/linux/clang_linux-x86_64-115b62-20250811.tar.gz", - "unzip_filename": "llvm" - }, - { - "unzip_dir": "prebuilts/clang/ohos/linux-x86_64", - "file_path": "/openharmony/compiler/clang/15.0.4-115b62/linux/libcxx-ndk_linux-x86_64-115b62-20250811.tar.gz", - "unzip_filename": "libcxx-ndk" - }, - { - "unzip_dir": "prebuilts/taihe/ohos/linux-x86_64", - "file_path": "/openharmony/compiler/Taihe/0.34.1/taihe-linux-x86_64-v0.34.1-20250623.tar.gz", - "unzip_filename": "taihe" - }, - { - "unzip_dir": "prebuilts/taihe/ohos/windows-x86_64", - "file_path": "/openharmony/compiler/Taihe/0.34.1/taihe-windows-x86_64-v0.34.1-20250623.tar.gz", - "unzip_filename": "taihe" - }, - { - "unzip_dir": "prebuilts/python", - "file_path": "/openharmony/compiler/python/3.11.4/linux/python-linux-x86-GLIBC2.27-3.11.4_20250807.tar.gz", - "unzip_filename": "linux-x86" - }, - { - "unzip_dir": "prebuilts/python", - "file_path": "/openharmony/compiler/python/3.11.4/windows/python-mingw-x86-3.11.4_20250617.tar.gz", - "unzip_filename": "windows-x86" - }, - { - "unzip_dir": "prebuilts/develop_tools", - "file_path": "/openharmony/develop_tools/bpftool_v5.10.93_20221114.tar.gz", - "unzip_filename": "bpftool" - }, - { - "unzip_dir": "prebuilts/develop_tools", - "file_path": "/openharmony/develop_tools/pahole_v1.21_20221124.tar.gz", - "unzip_filename": "pahole" - }, - { - "unzip_dir": "prebuilts/rustc", - "file_path": "/openharmony/compiler/rust/1.72.0-20250515/rust-nightly-x86_64-unknown-linux-gnu.tar.gz", - "unzip_filename": "rustc" - }, - { - "unzip_dir": "prebuilts/rustc", - "file_path": "/openharmony/compiler/rust/1.72.0-20250515/rust-std-nightly-aarch64-unknown-linux-ohos.tar.gz", - "unzip_filename": "rustc-aarch64-std" - }, - { - "unzip_dir": "prebuilts/rustc", - "file_path": "/openharmony/compiler/rust/1.72.0-20250515/rust-std-nightly-armv7-unknown-linux-ohos.tar.gz", - "unzip_filename": "rustc-arm-std" - }, - { - "unzip_dir": "prebuilts/rustc", - "file_path": "/openharmony/compiler/rust/1.72.0-20250515/rust-std-nightly-x86_64-unknown-linux-ohos.tar.gz", - "unzip_filename": "rustc-x86_64-std" - }, - { - "unzip_dir": "prebuilts/rustc", - "file_path": "/openharmony/compiler/rust/1.72.0-20250515/rust-std-nightly-x86_64-pc-windows-gnullvm.tar.gz", - "unzip_filename": "rustc-x86_64-windows-std" - }, - { - "unzip_dir": "prebuilts/cangjie_sdk/linux-x64", - "file_path": "/openharmony/compiler/cangjie/1.0.0/cangjie-linux-x64-1.0.0.zip", - "unzip_filename": "cangjie-linux-x64" - }, - { - "unzip_dir": "prebuilts/cangjie_sdk/windows-x64", - "file_path": "/openharmony/compiler/cangjie/1.0.0/cangjie-windows-x64-1.0.0.zip", - "unzip_filename": "cangjie-windows-x64" - }, - { - "unzip_dir": "prebuilts/cangjie_sdk/build-tools", - "file_path": "/openharmony/compiler/cangjie/1.0.0/cangjie-api-tools-1.0.0.zip", - "unzip_filename": "cangjie-api-tools" - }, - { - "unzip_dir": "prebuilts/python_llvm", - "file_path": "/openharmony/compiler/python/3.11.4/linux/python-linux-arm64-3.11.4_20240715.tar.gz", - "unzip_filename": "linux-arm64" - }, - { - "unzip_dir": "prebuilts/python_llvm", - "file_path": "/openharmony/compiler/python/3.11.4/linux/python-linux-x86-GLIBC2.27-3.11.4_20250807.tar.gz", - "unzip_filename": "linux-x86" + ] + }, + { + "name": "taihe", + "tag": "base", + "type": "src", + "unzip_filename": "taihe", + "config": { + "linux": { + "arm64": [ + { + "unzip_dir": "${code_dir}/prebuilts/taihe/ohos/linux-x86_64", + "remote_url": "/openharmony/compiler/Taihe/0.34.1/taihe-linux-x86_64-v0.34.1-20250623.tar.gz", + "type": "src" + }, + { + "unzip_dir": "${code_dir}/prebuilts/taihe/ohos/windows-x86_64", + "remote_url": "/openharmony/compiler/Taihe/0.34.1/taihe-windows-x86_64-v0.34.1-20250623.tar.gz", + "type": "src" + } + ], + "x86_64": [ + { + "unzip_dir": "${code_dir}/prebuilts/taihe/ohos/linux-x86_64", + "remote_url": "/openharmony/compiler/Taihe/0.34.1/taihe-linux-x86_64-v0.34.1-20250623.tar.gz", + "type": "src" + }, + { + "unzip_dir": "${code_dir}/prebuilts/taihe/ohos/windows-x86_64", + "remote_url": "/openharmony/compiler/Taihe/0.34.1/taihe-windows-x86_64-v0.34.1-20250623.tar.gz", + "type": "src" + } + ] }, - { - "unzip_dir": "prebuilts/python_llvm", - "file_path": "/openharmony/compiler/python/3.11.4/windows/python-mingw-x86-3.11.4_20250617.tar.gz", - "unzip_filename": "windows-x86" + "darwin": { + "arm64": [ + { + "unzip_dir": "${code_dir}/prebuilts/taihe/ohos/darwin-arm64", + "remote_url": "/openharmony/compiler/Taihe/0.34.1/taihe-darwin-arm64-v0.34.1-20250623.tar.gz", + "type": "src" + } + ], + "x86_64": [ + { + "unzip_dir": "${code_dir}/prebuilts/taihe/ohos/darwin-x86_64", + "remote_url": "/openharmony/compiler/Taihe/0.34.1/taihe-darwin-x86_64-v0.34.1-20250623.tar.gz", + "type": "src" + } + ] } - ], - "install": [ - { - "install_dir":"prebuilts/rustc/rust-nightly-x86_64-unknown-linux-gnu", - "script":"install.sh", - "args": [ + }, + "handle": [] + }, + { + "name": "python", + "tag": "base", + "type": "src", + "unzip_dir": "${code_dir}/prebuilts/python", + "config": { + "linux": { + "arm64": [ { - "prefix": "''" + "remote_url": "/openharmony/compiler/python/3.11.4/linux/python-linux-arm64-3.11.4_20240715.tar.gz", + "unzip_filename": "linux-arm64", + "rename_src": "${code_dir}/prebuilts/python/linux-arm64", + "rename_dest": "${code_dir}/prebuilts/python/linux-aarch64", + "type": "src" } ], - "destdir": "prebuilts/rustc/linux-x86_64/current" + "x86_64": [ + { + "remote_url": "/openharmony/compiler/python/3.11.4/linux/python-linux-x86-GLIBC2.27-3.11.4_20250807.tar.gz", + "unzip_filename": "linux-x86", + "type": "src" + }, + { + "remote_url": "/openharmony/compiler/python/3.11.4/windows/python-mingw-x86-3.11.4_20250617.tar.gz", + "unzip_filename": "windows-x86", + "type": "src", + "skip_handle": true + } + ] }, - { - "install_dir":"prebuilts/rustc/rust-std-nightly-aarch64-unknown-linux-ohos", - "script":"install.sh", - "args": [ + "darwin": { + "arm64": [ { - "prefix": "''" + "remote_url": "/openharmony/compiler/python/3.11.4/darwin/python-darwin-arm64-3.11.4_20250804.tar.gz", + "unzip_filename": "darwin-arm64", + "type": "src" } ], - "destdir": "prebuilts/rustc/linux-x86_64/current" - }, - { - "install_dir":"prebuilts/rustc/rust-std-nightly-armv7-unknown-linux-ohos", - "script":"install.sh", - "args": [ + "x86_64": [ { - "prefix": "''" + "remote_url": "/openharmony/compiler/python/3.11.4/darwin/python-darwin-x86-3.11.4_20250804.tar.gz", + "unzip_filename": "darwin-x86", + "type": "src" + } + ] + } + }, + "handle": [ + { + "type": "move", + "src": "${rename_src}", + "dest": "${rename_dest}" + }, + { + "type": "symlink", + "src": "${unzip_dir}/${unzip_filename}/3.11.4", + "dest": "${unzip_dir}/${unzip_filename}/current" + }, + { + "type": "shell", + "python_path": "${unzip_dir}/${unzip_filename}/current/bin/python3", + "pip_path": "${unzip_dir}/${unzip_filename}/current/bin/pip3", + "cmd": [ + "${python_path}", + "${pip_path}", + "install", + "--trusted-host", + "repo.huaweicloud.com", + "-i", + "http://repo.huaweicloud.com/repository/pypi/simple", + "pyyaml", + "requests>=2.32.1", + "prompt_toolkit==1.0.14", + "asn1crypto", + "cryptography", + "json5==0.9.6" + ] + } + ] + }, + { + "name": "bpftool", + "tag": "base", + "type": "src", + "config": { + "any": { + "arm64": [ + { + "unzip_dir": "${code_dir}/prebuilts/develop_tools", + "remote_url": "/openharmony/develop_tools/bpftool_v5.10.93_20221114.tar.gz", + "unzip_filename": "bpftool", + "type": "src" } ], - "destdir": "prebuilts/rustc/linux-x86_64/current" - }, - { - "install_dir":"prebuilts/rustc/rust-std-nightly-x86_64-unknown-linux-ohos", - "script":"install.sh", - "args": [ + "x86_64": [ + { + "unzip_dir": "${code_dir}/prebuilts/develop_tools", + "remote_url": "/openharmony/develop_tools/bpftool_v5.10.93_20221114.tar.gz", + "unzip_filename": "bpftool", + "type": "src" + } + ] + } + }, + "handle": [] + }, + { + "name": "pahole", + "tag": "base", + "type": "src", + "config": { + "linux": { + "arm64": [ + { + "unzip_dir": "${code_dir}/prebuilts/develop_tools", + "remote_url": "/openharmony/develop_tools/pahole_v1.21_20221124.tar.gz", + "unzip_filename": "pahole", + "type": "src" + } + ], + "x86_64": [ + { + "unzip_dir": "${code_dir}/prebuilts/develop_tools", + "remote_url": "/openharmony/develop_tools/pahole_v1.21_20221124.tar.gz", + "unzip_filename": "pahole", + "type": "src" + } + ] + } + }, + "handle": [] + }, + { + "name": "rust", + "tag": "base", + "type": "src", + "config": { + "linux": { + "arm64": [ { - "prefix": "''" + "unzip_dir": "${code_dir}/prebuilts/rustc", + "remote_url": "/openharmony/compiler/rust/20240528/rust-std-nightly-aarch64-unknown-linux-ohos_20240528.tar.gz", + "unzip_filename": "rustc-aarch64-std", + "install_dir": "${unzip_dir}/rust-std-nightly-aarch64-unknown-linux-ohos_20240528", + "destdir": "${code_dir}/prebuilts/rustc/linux-aarch64/current", + "type": "src" } ], - "destdir": "prebuilts/rustc/linux-x86_64/current" + "x86_64": [ + { + "unzip_dir": "${code_dir}/prebuilts/rustc", + "remote_url": "/openharmony/compiler/rust/1.72.0-20250515/rust-nightly-x86_64-unknown-linux-gnu.tar.gz", + "unzip_filename": "rustc", + "install_dir": "${unzip_dir}/rust-nightly-x86_64-unknown-linux-gnu", + "destdir": "${code_dir}/prebuilts/rustc/linux-x86_64/current", + "type": "src" + }, + { + "unzip_dir": "${code_dir}/prebuilts/rustc", + "remote_url": "/openharmony/compiler/rust/1.72.0-20250515/rust-std-nightly-aarch64-unknown-linux-ohos.tar.gz", + "unzip_filename": "rustc-aarch64-std", + "install_dir": "${unzip_dir}/rust-std-nightly-aarch64-unknown-linux-ohos", + "destdir": "${code_dir}/prebuilts/rustc/linux-x86_64/current", + "type": "src" + }, + { + "unzip_dir": "${code_dir}/prebuilts/rustc", + "remote_url": "/openharmony/compiler/rust/1.72.0-20250515/rust-std-nightly-armv7-unknown-linux-ohos.tar.gz", + "unzip_filename": "rustc-arm-std", + "install_dir": "${unzip_dir}/rust-std-nightly-armv7-unknown-linux-ohos", + "destdir": "${code_dir}/prebuilts/rustc/linux-x86_64/current", + "type": "src" + }, + { + "unzip_dir": "${code_dir}/prebuilts/rustc", + "remote_url": "/openharmony/compiler/rust/1.72.0-20250515/rust-std-nightly-x86_64-unknown-linux-ohos.tar.gz", + "unzip_filename": "rustc-x86_64-std", + "install_dir": "${unzip_dir}/rust-std-nightly-x86_64-unknown-linux-ohos", + "destdir": "${code_dir}/prebuilts/rustc/linux-x86_64/current", + "type": "src" + }, + { + "unzip_dir": "${code_dir}/prebuilts/rustc", + "remote_url": "/openharmony/compiler/rust/1.72.0-20250515/rust-std-nightly-x86_64-pc-windows-gnullvm.tar.gz", + "unzip_filename": "rustc-x86_64-windows-std", + "install_dir": "${unzip_dir}/rust-std-nightly-x86_64-pc-windows-gnullvm", + "destdir": "${code_dir}/prebuilts/rustc/linux-x86_64/current", + "type": "src" + } + ] }, - { - "install_dir":"prebuilts/rustc/rust-std-nightly-x86_64-pc-windows-gnullvm", - "script":"install.sh", - "args": [ + "darwin": { + "arm64": [ { - "prefix": "''" + "unzip_dir": "${code_dir}/prebuilts/rustc", + "remote_url": "/openharmony/compiler/rust/1.72.0-20250515/rust-nightly-aarch64-apple-darwin.tar.gz", + "unzip_filename": "rustc", + "install_dir": "${unzip_dir}/rust-nightly-aarch64-apple-darwin", + "destdir": "${code_dir}/prebuilts/rustc/darwin-aarch64/current", + "type": "src" } ], - "destdir": "prebuilts/rustc/linux-x86_64/current" + "x86_64": [ + { + "unzip_dir": "${code_dir}/prebuilts/rustc", + "remote_url": "/openharmony/compiler/rust/1.72.0-20250515/rust-nightly-x86_64-apple-darwin.tar.gz", + "install_dir": "${unzip_dir}/rust-nightly-x86_64-apple-darwin", + "destdir": "${code_dir}/prebuilts/rustc/darwin-x86_64/current", + "unzip_filename": "rustc", + "type": "src" + } + ] + } + }, + "handle": [ + { + "type": "shell", + "cmd": [ + "${install_dir}/install.sh", + "--prefix=''", + "--destdir=${destdir}" + ] } ] - } - }, - "darwin": { - "node_config": [ - { - "unzip_dir": "prebuilts/build-tools/common/nodejs", - "file_path": "/nodejs/v14.21.1/node-v14.21.1-darwin-x64.tar.gz", - "unzip_filename": "node-v14.21.1-darwin-x64" + }, + { + "name": "hvigor", + "tag": "base", + "type": "src", + "config": { + "linux": { + "x86_64": [ + { + "unzip_dir": "${code_dir}/prebuilts/tool/command-line-tools", + "remote_url": "/harmonyos/compiler/hvigor/5.0.3.906/command-line-tools.tar", + "unzip_filename": "hvigor", + "type": "src" + } + ] + } }, - { - "unzip_dir": "prebuilts/build-tools/common/nodejs", - "file_path": "/nodejs/v16.20.2/node-v16.20.2-darwin-x64.tar.gz", - "unzip_filename": "node-v16.20.2-darwin-x64" + "handle": [] + }, + { + "name": "ark_tools_llvm_aot", + "tag": "base", + "type": "src", + "config": { + "linux": { + "x86_64": [ + { + "unzip_dir": "${code_dir}/prebuilts/ark_tools/llvm_aot/aot_x86_release", + "remote_url": "/harmonyos/compiler/clang/15.0.4-0d8b9c-ark/llvm-15.0.4-ark18-release-x86_64.tar.xz", + "unzip_filename": "llvm_aot_x86_release", + "type": "src" + }, + { + "unzip_dir": "${code_dir}/prebuilts/ark_tools/llvm_aot/aot_x86_debug", + "remote_url": "/harmonyos/compiler/clang/15.0.4-0d8b9c-ark/llvm-15.0.4-ark18-debug-x86_64.tar.xz", + "unzip_filename": "llvm_aot_x86_debug", + "type": "src" + }, + { + "unzip_dir": "${code_dir}/prebuilts/ark_tools/llvm_aot/aot_aarch64_release", + "remote_url": "/harmonyos/compiler/clang/15.0.4-0d8b9c-ark/llvm-15.0.4-ark18-release-aarch64.tar.xz", + "unzip_filename": "llvm_aot_aarch64_release", + "type": "src" + }, + { + "unzip_dir": "${code_dir}/prebuilts/ark_tools/llvm_aot/aot_aarch64_debug", + "remote_url": "/harmonyos/compiler/clang/15.0.4-0d8b9c-ark/llvm-15.0.4-ark18-debug-aarch64.tar.xz", + "unzip_filename": "llvm_aot_aarch64_debug", + "type": "src" + }, + { + "unzip_dir": "${code_dir}/prebuilts/ark_tools/llvm_aot/aot_ohos_release", + "remote_url": "/harmonyos/compiler/clang/15.0.4-0d8b9c-ark/llvm-15.0.4-ark18-release-ohos.tar.xz", + "unzip_filename": "llvm_aot_ohos_release", + "type": "src" + }, + { + "unzip_dir": "${code_dir}/prebuilts/ark_tools/llvm_aot/aot_gn_ohos", + "remote_url": "/harmonyos/compiler/clang/15.0.4-0d8b9c-ark/llvm-15.0.4-ark18-release-ohos-gn_20250306.tar.xz", + "unzip_filename": "llvm_aot_gn_ohos_release", + "type": "src" + } + ] + } }, - { - "unzip_dir": "prebuilts/build-tools/common/nodejs", - "file_path": "/nodejs/v18.20.1/node-v18.20.1-darwin-x64.tar.gz", - "unzip_filename": "node-v18.20.1-darwin-x64" - } - ], - "arm64": { - "copy_config": [ - { - "unzip_dir": "prebuilts/cmake", - "file_path": "/openharmony/compiler/cmake/3.28.2/cmake-darwin-universal-3.28.2.tar.gz", - "unzip_filename": "darwin-universal" - }, - { - "unzip_dir": "prebuilts/build-tools/darwin-x86/bin", - "file_path": "/openharmony/compiler/gn/20250529/gn-darwin-x86-20250529.tar.gz", - "unzip_filename": "gn" - }, - { - "unzip_dir": "prebuilts/build-tools/darwin-x86/bin", - "file_path": "/openharmony/compiler/ninja/1.12.0/darwin/arm/ninja-darwin-arm-1.12.0-20240829.tar.gz", - "unzip_filename": "ninja" - }, - { - "unzip_dir": "prebuilts/ark_tools", - "file_path": "/openharmony/compiler/llvm_prebuilt_libs/ark_js_prebuilts_darwin_arm64_20230209.tar.gz", - "unzip_filename": "ark_js_prebuilts" - }, - { - "unzip_dir": "prebuilts/packing_tool", - "file_path": "/harmonyos/compiler/packing_tool/packing_tool_libs_20250215.zip", - "unzip_filename": "packing_tool" + "handle": [] + }, + { + "name": "mingw", + "tag": "base", + "type": "src", + "config": { + "linux": { + "x86_64": [ + { + "unzip_dir": "${code_dir}/prebuilts/mingw-w64/ohos/linux-x86_64", + "remote_url": "/openharmony/compiler/mingw-w64/11.0.1/clang-mingw-20240510.tar.gz", + "unzip_filename": "clang-mingw", + "type": "src" + } + ] } - ], - "darwin_copy_config": [ - { - "unzip_dir": "prebuilts/clang/ohos/darwin-arm64", - "file_path": "/openharmony/compiler/clang/15.0.4-115b62/darwin_arm64/clang_darwin-arm64-115b62-20250811.tar.gz", - "unzip_filename": "llvm" - }, - { - "unzip_dir": "prebuilts/clang/ohos/darwin-arm64", - "file_path": "/openharmony/compiler/clang/15.0.4-115b62/darwin_arm64/libcxx-ndk_darwin-arm64-115b62-20250811.tar.gz", - "unzip_filename": "libcxx-ndk" - }, - { - "unzip_dir": "prebuilts/python", - "file_path": "/openharmony/compiler/python/3.11.4/darwin/python-darwin-arm64-3.11.4_20250804.tar.gz", - "unzip_filename": "darwin-arm64" - }, - { - "unzip_dir": "prebuilts/python_llvm", - "file_path": "/openharmony/compiler/python/3.11.4/darwin/python-darwin-arm64-3.11.4_20250804.tar.gz", - "unzip_filename": "darwin-arm64" - }, - { - "unzip_dir": "prebuilts/rustc", - "file_path": "/openharmony/compiler/rust/1.72.0-20250515/rust-nightly-aarch64-apple-darwin.tar.gz", - "unzip_filename": "rustc" - }, - { - "unzip_dir": "prebuilts/taihe/ohos/darwin-arm64", - "file_path": "/openharmony/compiler/Taihe/0.34.1/taihe-darwin-arm64-v0.34.1-20250623.tar.gz", - "unzip_filename": "taihe" - }, - { - "unzip_dir": "prebuilts/cangjie_sdk/mac-aarch64", - "file_path": "/openharmony/compiler/cangjie/1.0.0/cangjie-mac-aarch64-1.0.0.zip", - "unzip_filename": "cangjie-mac-aarch64" + }, + "handle": [] + }, + { + "name": "cangjie", + "tag": "base", + "type": "src", + "config": { + "linux": { + "x86_64": [ + { + "unzip_dir": "${code_dir}/prebuilts/cangjie_sdk/linux-x64", + "remote_url": "/openharmony/compiler/cangjie/1.0.0/cangjie-linux-x64-1.0.0.zip", + "unzip_filename": "cangjie-linux-x64", + "type": "src" + }, + { + "unzip_dir": "${code_dir}/prebuilts/cangjie_sdk/windows-x64", + "remote_url": "/openharmony/compiler/cangjie/1.0.0/cangjie-windows-x64-1.0.0.zip", + "unzip_filename": "cangjie-windows-x64", + "type": "src" + }, + { + "unzip_dir": "${code_dir}/prebuilts/cangjie_sdk/build-tools", + "remote_url": "/openharmony/compiler/cangjie/1.0.0/cangjie-api-tools-1.0.0.zip", + "unzip_filename": "cangjie-api-tools", + "type": "src" + } + ] }, - { - "unzip_dir": "prebuilts/cangjie_sdk/build-tools", - "file_path": "/openharmony/compiler/cangjie/1.0.0/cangjie-api-tools-1.0.0.zip", - "unzip_filename": "cangjie-api-tools" - } - ], - "install": [ - { - "install_dir":"prebuilts/rustc/rust-nightly-aarch64-apple-darwin", - "script":"install.sh", - "args": [ + "darwin": { + "arm64": [ { - "prefix": "''" + "unzip_dir": "${code_dir}/prebuilts/cangjie_sdk/mac-aarch64", + "remote_url": "/openharmony/compiler/cangjie/1.0.0/cangjie-mac-aarch64-1.0.0.zip", + "unzip_filename": "cangjie-mac-aarch64", + "type": "src" + }, + { + "unzip_dir": "${code_dir}/prebuilts/cangjie_sdk/build-tools", + "remote_url": "/openharmony/compiler/cangjie/1.0.0/cangjie-api-tools-1.0.0.zip", + "unzip_filename": "cangjie-api-tools", + "type": "src" } ], - "destdir": "prebuilts/rustc/darwin-aarch64/current" + "x86_64": [ + { + "unzip_dir": "${code_dir}/prebuilts/cangjie_sdk/mac-x64", + "remote_url": "/openharmony/compiler/cangjie/1.0.0/cangjie-mac-x64-1.0.0.zip", + "unzip_filename": "cangjie-mac-x64", + "type": "src" + }, + { + "unzip_dir": "${code_dir}/prebuilts/cangjie_sdk/build-tools", + "remote_url": "/openharmony/compiler/cangjie/1.0.0/cangjie-api-tools-1.0.0.zip", + "unzip_filename": "cangjie-api-tools", + "type": "src" + } + ] } - ] + }, + "handle": [] }, - "x86_64": { - "copy_config": [ - { - "unzip_dir": "prebuilts/cmake", - "file_path": "/openharmony/compiler/cmake/3.28.2/cmake-darwin-universal-3.28.2.tar.gz", - "unzip_filename": "darwin-universal" - }, - { - "unzip_dir": "prebuilts/build-tools/darwin-x86/bin", - "file_path": "/openharmony/compiler/gn/20250529/gn-darwin-x86-20250529.tar.gz", - "unzip_filename": "gn" - }, - { - "unzip_dir": "prebuilts/build-tools/darwin-x86/bin", - "file_path": "/openharmony/compiler/ninja/1.12.0/darwin/x86/ninja-darwin-x86-1.12.0-20240829.tar.gz", - "unzip_filename": "ninja" - }, - { - "unzip_dir": "prebuilts/ark_tools", - "file_path": "/openharmony/compiler/llvm_prebuilt_libs/ark_js_prebuilts_darwin_x64_20230209.tar.gz", - "unzip_filename": "ark_js_prebuilts" - }, - { - "unzip_dir": "prebuilts/packing_tool", - "file_path": "/harmonyos/compiler/packing_tool/packing_tool_libs_20250215.zip", - "unzip_filename": "packing_tool" + { + "name": "python_llvm", + "tag": "base", + "type": "src", + "config": { + "linux": { + "x86_64": [ + { + "unzip_dir": "${code_dir}/prebuilts/python_llvm", + "remote_url": "/openharmony/compiler/python/3.11.4/linux/python-linux-arm64-3.11.4_20240715.tar.gz", + "unzip_filename": "linux-arm64", + "type": "src" + }, + { + "unzip_dir": "${code_dir}/prebuilts/python_llvm", + "remote_url": "/openharmony/compiler/python/3.11.4/linux/python-linux-x86-GLIBC2.27-3.11.4_20250807.tar.gz", + "unzip_filename": "linux-x86", + "type": "src" + }, + { + "unzip_dir": "${code_dir}/prebuilts/python_llvm", + "remote_url": "/openharmony/compiler/python/3.11.4/windows/python-mingw-x86-3.11.4_20250617.tar.gz", + "unzip_filename": "windows-x86", + "type": "src" + } + ] }, - { - "unzip_dir": "prebuilts/taihe/ohos/darwin-x86_64", - "file_path": "/openharmony/compiler/Taihe/0.34.1/taihe-darwin-x86_64-v0.34.1-20250623.tar.gz", - "unzip_filename": "taihe" + "darwin": { + "arm64": [ + { + "unzip_dir": "${code_dir}/prebuilts/python_llvm", + "remote_url": "/openharmony/compiler/python/3.11.4/darwin/python-darwin-arm64-3.11.4_20250804.tar.gz", + "unzip_filename": "darwin-arm64", + "type": "src" + } + ], + "x86_64": [ + { + "unzip_dir": "${code_dir}/prebuilts/python_llvm", + "remote_url": "/openharmony/compiler/python/3.11.4/darwin/python-darwin-x86-3.11.4_20250804.tar.gz", + "unzip_filename": "darwin-x86", + "type": "src" + } + ] } - ], - "darwin_copy_config": [ - { - "unzip_dir": "prebuilts/clang/ohos/darwin-x86_64", - "file_path": "/openharmony/compiler/clang/15.0.4-115b62/darwin_x86_64/clang_darwin-x86_64-115b62-20250811.tar.gz", - "unzip_filename": "llvm" - }, - { - "unzip_dir": "prebuilts/clang/ohos/darwin-x86_64", - "file_path": "/openharmony/compiler/clang/15.0.4-115b62/darwin_x86_64/libcxx-ndk_darwin-x86_64-115b62-20250811.tar.gz", - "unzip_filename": "libcxx-ndk" - }, - { - "unzip_dir": "prebuilts/python", - "file_path": "/openharmony/compiler/python/3.11.4/darwin/python-darwin-x86-3.11.4_20250804.tar.gz", - "unzip_filename": "darwin-x86" - }, - { - "unzip_dir": "prebuilts/python_llvm", - "file_path": "/openharmony/compiler/python/3.11.4/darwin/python-darwin-x86-3.11.4_20250804.tar.gz", - "unzip_filename": "darwin-x86" - }, - { - "unzip_dir": "prebuilts/rustc", - "file_path": "/openharmony/compiler/rust/1.72.0-20250515/rust-nightly-x86_64-apple-darwin.tar.gz", - "unzip_filename": "rustc" - }, - { - "unzip_dir": "prebuilts/cangjie_sdk/mac-x64", - "file_path": "/openharmony/compiler/cangjie/1.0.0/cangjie-mac-x64-1.0.0.zip", - "unzip_filename": "cangjie-mac-x64" - }, - { - "unzip_dir": "prebuilts/cangjie_sdk/build-tools", - "file_path": "/openharmony/compiler/cangjie/1.0.0/cangjie-api-tools-1.0.0.zip", - "unzip_filename": "cangjie-api-tools" + }, + "handle": [] + }, + { + "name": "npm_install", + "tag": "npm_install", + "type": "src", + "handle": [ + { + "type": "npm_install", + "npm_install_path": [ + "${code_dir}/developtools/ace_ets2bundle/compiler", + "${code_dir}/developtools/ace_js2bundle/ace-loader", + "${code_dir}/third_party/jsframework", + "${code_dir}/third_party/parse5/packages/parse5", + "${code_dir}/third_party/weex-loader", + "${code_dir}/arkcompiler/ets_frontend/legacy_bin/api8", + "${code_dir}/interface/sdk-js/build-tools", + "${code_dir}/arkcompiler/ets_frontend/arkguard", + "${code_dir}/arkcompiler/ets_frontend/ets2panda/driver/build_system", + "${code_dir}/arkcompiler/ets_frontend/ets2panda/linter", + "${code_dir}/arkcompiler/ets_frontend/ets2panda/bindings", + "${code_dir}/arkcompiler/runtime_core/static_core/plugins/ets/tools/declgen_ts2sts", + "${code_dir}/developtools/ace_ets2bundle/koala-wrapper", + "${code_dir}/developtools/ace_ets2bundle/arkui-plugins" + ] } - ], - "install": [ + ] + }, + { + "name": "node_modules_copy", + "tag": "npm_install", + "type": "src", + "handle": [ { - "install_dir":"prebuilts/rustc/rust-nightly-x86_64-apple-darwin", - "script":"install.sh", - "args": [ + "type": "node_modules_copy", + "copy_list": [ + { + "src": "${code_dir}/third_party/jsframework/node_modules", + "dest": "${code_dir}/prebuilts/build-tools/common/js-framework/node_modules", + "use_symlink": "True" + }, + { + "src": "${code_dir}/arkcompiler/ets_frontend/legacy_bin/api8/node_modules", + "dest": "${code_dir}/prebuilts/build-tools/common/ts2abc/node_modules", + "use_symlink": "True" + }, + { + "src": "${code_dir}/test/testfwk/arkxtest/jsunit", + "dest": "${code_dir}/developtools/ace_ets2bundle/compiler/node_modules/@ohos/hypium", + "use_symlink": "False" + }, + { + "src": "${code_dir}/test/testfwk/arkxtest/jsunit", + "dest": "${code_dir}/developtools/ace_js2bundle/ace-loader/node_modules/@ohos/hypium", + "use_symlink": "False" + }, + { + "src": "${code_dir}/test/testfwk/arkxtest/jsunit/", + "dest": "${code_dir}/developtools/ace_ets2bundle/compiler/node_modules/hypium/", + "use_symlink": "False" + }, { - "prefix": "''" + "src": "${code_dir}/test/testfwk/arkxtest/jsunit/", + "dest": "${code_dir}/developtools/ace_js2bundle/ace-loader/node_modules/hypium/", + "use_symlink": "False" } - ], - "destdir": "prebuilts/rustc/darwin-x86_64/current" + ] + } + ] + }, + { + "name": "uninstalled_tools", + "tag": "uninstalled_tools", + "type": "src", + "handle": [ + { + "type": "remove", + "path": "prebuilts/build-tools/common/restool" } ] } - } -} - + ] +} \ No newline at end of file diff --git a/prebuilts_service/config_parser.py b/prebuilts_service/config_parser.py index 1029fc8398..3998a57cbb 100644 --- a/prebuilts_service/config_parser.py +++ b/prebuilts_service/config_parser.py @@ -154,10 +154,13 @@ class ConfigParser: operate_list = [] for config in outer_configs: special_handle = config.get("handle_index") + skip_handle = config.get("skip_handle", False) count = 0 for index, handle in enumerate(handles): if special_handle and index not in special_handle: continue + if skip_handle: + continue step_id = "_".join([config.get("name"), os.path.basename(config.get("remote_url", "")), str(count)]) count += 1 # 不能改变原来的handle -- Gitee From 4f64aac7454c955d430792987259b3995973f2b9 Mon Sep 17 00:00:00 2001 From: zhaohang Date: Thu, 11 Sep 2025 14:20:05 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E7=8B=AC=E7=AB=8B=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E4=BA=8E=E5=85=A8=E9=87=8F=E7=BC=96=E8=AF=91=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E5=BD=92=E4=B8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhaohang --- prebuilts_config.json | 1648 +++++++++++++++++----------- prebuilts_config.py | 2 +- prebuilts_config.sh | 39 +- prebuilts_download.sh | 9 +- prebuilts_download_config.json | 1002 ----------------- prebuilts_service/config_parser.py | 2 +- 6 files changed, 1034 insertions(+), 1668 deletions(-) delete mode 100644 prebuilts_download_config.json diff --git a/prebuilts_config.json b/prebuilts_config.json index 11e885837a..608de7c91e 100644 --- a/prebuilts_config.json +++ b/prebuilts_config.json @@ -1,628 +1,1020 @@ -{ - "download_root": "~/.prebuilts_cache", - "tool_list": [ - { - "name": "ark_js_prebuilts", - "tag": "ark_js", - "type": "src, indep", - "config": { - "linux": { - "arm64": { - "remote_url": "/openharmony/compiler/llvm_prebuilt_libs/ark_js_prebuilts_20231215.tar.gz" - }, - "x86_64": { - "remote_url": "/openharmony/compiler/llvm_prebuilt_libs/ark_js_prebuilts_20230713.tar.gz" - } - }, - "darwin": { - "arm64": { - "remote_url": "/openharmony/compiler/llvm_prebuilt_libs/ark_js_prebuilts_darwin_arm64_20230209.tar.gz" - }, - "x86_64": { - "remote_url": "/openharmony/compiler/llvm_prebuilt_libs/ark_js_prebuilts_darwin_x64_20230209.tar.gz" - } - } - }, - "unzip_dir": "${code_dir}/prebuilts/ark_tools", - "unzip_filename": "ark_js_prebuilts" - }, - { - "name": "llvm", - "tag": "base", - "type": "src, indep", - "unzip_filename": "llvm", - "config": { - "linux": { - "arm64": { - "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/linux_aarch64/clang_linux_aarch64-115b62-20250811.tar.gz", - "unzip_dir": "${code_dir}/prebuilts/clang/ohos/linux-aarch64", - "rename_src": "${unzip_dir}/clang_linux_aarch64-115b62-20250811", - "type": "src" - }, - "x86_64": [ - { - "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/ohos_arm64/clang_ohos-arm64-115b62-20250811.tar.gz", - "unzip_dir": "${code_dir}/prebuilts/clang/ohos/ohos-arm64", - "rename_src": "${unzip_dir}/clang_ohos-arm64-115b62-20250811", - "type": "src" - }, - { - "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/windows/clang_windows-x86_64-115b62-20250811.tar.gz", - "unzip_dir": "${code_dir}/prebuilts/clang/ohos/windows-x86_64", - "rename_src": "${unzip_dir}/clang_windows-x86_64-115b62-20250811", - "type": "src" - }, - { - "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/linux/clang_linux-x86_64-115b62-20250811.tar.gz", - "unzip_dir": "${code_dir}/prebuilts/clang/ohos/linux-x86_64", - "rename_src": "${unzip_dir}/clang_linux-x86_64-115b62-20250811" - } - ] - }, - "darwin": { - "arm64": { - "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/darwin_arm64/clang_darwin-arm64-115b62-20250811.tar.gz", - "unzip_dir": "${code_dir}/prebuilts/clang/ohos/darwin-arm64", - "rename_src": "${unzip_dir}/clang_darwin-arm64-115b62-20250811" - }, - "x86_64": { - "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/darwin_x86_64/clang_darwin-x86_64-115b62-20250811.tar.gz", - "unzip_dir": "${code_dir}/prebuilts/clang/ohos/darwin-x86_64", - "rename_src": "${unzip_dir}/clang_darwin-x86_64-115b62-20250811" - } - } - }, - "handle": [ - { - "type": "move", - "src": "${rename_src}", - "dest": "${unzip_dir}/llvm" - }, - { - "type": "symlink", - "src": "${unzip_dir}/llvm/lib/clang/15.0.4", - "dest": "${unzip_dir}/llvm/lib/clang/current" - } - ] - }, - - { - "name": "cangjie", - "tag": "cangjie", - "type": "src, indep", - "unzip_dir": "${code_dir}/prebuilts/cangjie_sdk", - "config": { - "linux": { - "x86_64": [ - { - "remote_url": "/openharmony/compiler/cangjie/1.0.0/cangjie-linux-x64-1.0.0.zip", - "unzip_dir": "${code_dir}/prebuilts/cangjie_sdk/linux-x64", - "unzip_filename": "cangjie-linux-x64" - }, - { - "remote_url": "/openharmony/compiler/cangjie/1.0.0/cangjie-windows-x64-1.0.0.zip", - "unzip_dir": "${code_dir}/prebuilts/cangjie_sdk/windows-x64", - "unzip_filename": "cangjie-windows-x64" - }, - { - "remote_url": "/openharmony/compiler/cangjie/1.0.0/cangjie-api-tools-1.0.0.zip", - "unzip_dir": "${code_dir}/prebuilts/cangjie_sdk/build-tools", - "unzip_filename": "cangjie-api-tools" - } - ] - }, - "darwin": { - "x86_64": [ - { - "remote_url": "/openharmony/compiler/cangjie/1.0.0/cangjie-mac-x64-1.0.0.zip", - "unzip_dir": "${code_dir}/prebuilts/cangjie_sdk/mac-x64", - "unzip_filename": "cangjie-mac-x64" - }, - { - "remote_url": "/openharmony/compiler/cangjie/1.0.0/cangjie-api-tools-1.0.0.zip", - "unzip_dir": "${code_dir}/prebuilts/cangjie_sdk/build-tools", - "unzip_filename": "cangjie-api-tools" - } - ], - "arm64": [ - { - "remote_url": "/openharmony/compiler/cangjie/1.0.0/cangjie-mac-aarch64-1.0.0.zip", - "unzip_dir": "${code_dir}/prebuilts/cangjie_sdk/mac-aarch64", - "unzip_filename": "cangjie-mac-aarch64" - }, - { - "remote_url": "/openharmony/compiler/cangjie/1.0.0/cangjie-api-tools-1.0.0.zip", - "unzip_dir": "${code_dir}/prebuilts/cangjie_sdk/build-tools", - "unzip_filename": "cangjie-api-tools" - } - ] - } - } - }, - { - "name": "gn", - "tag": "base", - "type": "src, indep", - "unzip_filename": "gn", - "config": { - "linux": { - "x86_64": { - "remote_url": "/openharmony/compiler/gn/20250903/gn-linux-x86-20250903.tar.gz", - "unzip_dir": "${code_dir}/prebuilts/build-tools/linux-x86/bin" - }, - "arm64": { - "remote_url": "/openharmony/compiler/gn/20240530/gn-linux-aarch64-20240530.tar.gz", - "unzip_dir": "${code_dir}/prebuilts/build-tools/linux-aarch64/bin" - } - }, - "darwin": { - "x86_64, arm64": { - "remote_url": "/openharmony/compiler/gn/20250529/gn-darwin-x86-20250529.tar.gz", - "unzip_dir": "${code_dir}/prebuilts/build-tools/darwin-x86/bin" - } - } - } - }, - { - "name": "hc-gen", - "tag": "hc-gen", - "type": "src, indep", - "config": { - "linux": { - "x86_64": { - "remote_url": "/openharmony/compiler/hc-gen/linux/hc-gen-20240926.tar.gz", - "unzip_dir": "${code_dir}/prebuilts/hc_gen", - "unzip_filename": "hc-gen" - } - } - } - }, - { - "name": "OpenHarmonyApplication.pem", - "tag": "app", - "type": "indep", - "config": { - "linux": { - "x86_64": { - "remote_url": "/openharmony/compiler/certificates/20241025/OpenHarmonyApplication.zip", - "unzip_dir": "${code_dir}/prebuilts/ohos-sdk", - "unzip_filename": "OpenHarmonyApplication.pem" - } - } - } - }, - { - "name": "ninja", - "tag": "base", - "type": "src, indep", - "unzip_filename": "ninja", - "config": { - "linux": { - "arm64": { - "remote_url": "/openharmony/compiler/ninja/1.12.0/linux/ninja-linux-aarch64-1.12.0-20241210.tar.gz", - "unzip_dir": "${code_dir}/prebuilts/build-tools/linux-aarch64/bin" - }, - "x86_64": [ - { - "remote_url": "/openharmony/compiler/ninja/1.12.0/linux/ninja-linux-x86-1.12.0-20240523.tar.gz", - "unzip_dir": "${code_dir}/prebuilts/build-tools/linux-x86/bin" - }, - { - "remote_url": "/openharmony/compiler/ninja/1.12.0/windows/ninja-windows-x86-1.12.0-20240523.tar.gz", - "unzip_dir": "${code_dir}/prebuilts/build-tools/windows-x86/bin", - "type": "src" - }, - { - "remote_url": "/openharmony/compiler/ninja/1.12.0/ohos/ninja-ohos-1.12.0-20240827.tar.gz", - "unzip_dir": "${code_dir}/prebuilts/build-tools/ohos/bin", - "type": "src" - } - ] - }, - "darwin": { - "arm64": { - "remote_url": "/openharmony/compiler/ninja/1.12.0/darwin/arm/ninja-darwin-arm-1.12.0-20240829.tar.gz", - "unzip_dir": "${code_dir}/prebuilts/build-tools/darwin-x86/bin" - }, - "x86_64": { - "remote_url": "/openharmony/compiler/ninja/1.12.0/darwin/x86/ninja-darwin-x86-1.12.0-20240829.tar.gz", - "unzip_dir": "${code_dir}/prebuilts/build-tools/darwin-x86/bin" - } - } - } - }, - { - "name": "node", - "tag": "base", - "type": "src, indep", - "unzip_dir": "${code_dir}/prebuilts/build-tools/common/nodejs", - "config": { - "linux": { - "arm64": { - "remote_url": "/openharmony/compiler/nodejs/v14.21.1/node-v14.21.1-linux-aarch64.tar.gz", - "unzip_filename": "node-v14.21.1-linux-aarch64", - "symlink_src": "${code_dir}/prebuilts/build-tools/common/nodejs/node-v14.21.1-linux-aarch64" - }, - "x86_64": [ - { - "remote_url": "/nodejs/v14.21.1/node-v14.21.1-linux-x64.tar.gz", - "unzip_filename": "node-v14.21.1-linux-x64", - "symlink_src": "${code_dir}/prebuilts/build-tools/common/nodejs/node-v14.21.1-linux-x64" - }, - { - "remote_url": "/nodejs/v16.20.2/node-v16.20.2-linux-x64.tar.gz", - "unzip_filename": "node-v16.20.2-linux-x64" - } - ] - }, - "darwin": [ - { - "remote_url": "/nodejs/v14.21.1/node-v14.21.1-darwin-x64.tar.gz", - "unzip_filename": "node-v14.21.1-darwin-x64", - "symlink_src": "${code_dir}/prebuilts/build-tools/common/nodejs/node-v14.21.1-darwin-x64" - }, - { - "remote_url": "/nodejs/v16.20.2/node-v16.20.2-darwin-x64.tar.gz", - "unzip_filename": "node-v16.20.2-darwin-x64" - } - ] - }, - "handle": [ - { - "type": "symlink", - "src": "${symlink_src}", - "dest": "${code_dir}/prebuilts/build-tools/common/nodejs/current" - } - ] - }, - { - "name": "packing_tool", - "tag": "packing_tool", - "type": "src, indep", - "config": { - "linux, darwin": { - "arm64, x86_64": { - "remote_url": "/harmonyos/compiler/packing_tool/packing_tool_libs_20250215.zip", - "unzip_dir": "${code_dir}/prebuilts/packing_tool", - "unzip_filename": "packing_tool" - } - } - } - }, - { - "name": "python", - "tag": "base", - "type": "src, indep", - "unzip_dir": "${code_dir}/prebuilts/python", - "config": { - "linux": { - "arm64": { - "remote_url": "/openharmony/compiler/python/3.11.4/linux/python-linux-arm64-3.11.4_20240715.tar.gz", - "unzip_filename": "linux-arm64" - }, - "x86_64": { - "remote_url": "/openharmony/compiler/python/3.11.4/linux/python-linux-x86-GLIBC2.27-3.11.4_20250807.tar.gz", - "unzip_filename": "linux-x86" - } - }, - "darwin": { - "x86_64": { - "remote_url": "/openharmony/compiler/python/3.11.4/darwin/python-darwin-x86-3.11.4_20250804.tar.gz", - "unzip_filename": "darwin-x86" - }, - "arm64": { - "remote_url": "/openharmony/compiler/python/3.11.4/darwin/python-darwin-arm64-3.11.4_20250804.tar.gz", - "unzip_filename": "darwin-arm64" - } - } - }, - "handle": [ - { - "type": "symlink", - "src": "${unzip_dir}/${unzip_filename}/3.11.4", - "dest": "${unzip_dir}/${unzip_filename}/current" - }, - { - "type": "shell", - "python_path": "${unzip_dir}/${unzip_filename}/current/bin/python3", - "pip_path": "${unzip_dir}/${unzip_filename}/current/bin/pip3", - "cmd": [ - "${python_path}", - "${pip_path}", - "install", - "--trusted-host", - "repo.huaweicloud.com", - "-i", - "http://repo.huaweicloud.com/repository/pypi/simple", - "pyyaml", - "requests>=2.32.1", - "prompt_toolkit==1.0.14", - "asn1crypto", - "cryptography", - "json5==0.9.6" - ] - } - ] - }, - { - "name": "hpm", - "tag": "base", - "type": "indep", - "handle": [ - { - "type": "hpm_download", - "name": "@ohos/hpm-cli", - "version": "1.6.1", - "package_path": "${code_dir}", - "package_lock_path": "${code_dir}", - "download_dir": "${download_root}/hpm", - "symlink": "${code_dir}/prebuilts/hpm/node_modules" - } - ] - }, - { - "name": "rustc", - "tag": "rust", - "type": "src, indep", - "unzip_dir": "${code_dir}/prebuilts/rustc", - "config": { - "linux": { - "arm64": { - "remote_url": "/openharmony/compiler/rust/1.72.0-20250515/rust-std-nightly-aarch64-unknown-linux-ohos.tar.gz", - "unzip_filename": "rustc-aarch64-std", - "install_dir": "${code_dir}/prebuilts/rustc/rust-std-nightly-aarch64-unknown-linux-ohos", - "destdir": "${code_dir}/prebuilts/rustc/linux-x86_64/current" - }, - "x86_64": [ - { - "remote_url": "/openharmony/compiler/rust/1.72.0-20250515/rust-nightly-x86_64-unknown-linux-gnu.tar.gz", - "install_dir": "${code_dir}/prebuilts/rustc/rust-nightly-x86_64-unknown-linux-gnu", - "destdir": "${code_dir}/prebuilts/rustc/linux-x86_64/current", - "unzip_filename": "rustc" - }, - { - "remote_url": "/openharmony/compiler/rust/1.72.0-20250515/rust-std-nightly-aarch64-unknown-linux-ohos.tar.gz", - "install_dir": "${code_dir}/prebuilts/rustc/rust-std-nightly-aarch64-unknown-linux-ohos", - "destdir": "${code_dir}/prebuilts/rustc/linux-x86_64/current", - "unzip_filename": "rustc-aarch64-std" - }, - { - "remote_url": "/openharmony/compiler/rust/1.72.0-20250515/rust-std-nightly-armv7-unknown-linux-ohos.tar.gz", - "install_dir": "${code_dir}/prebuilts/rustc/rust-std-nightly-armv7-unknown-linux-ohos", - "destdir": "${code_dir}/prebuilts/rustc/linux-x86_64/current", - "unzip_filename": "rustc-arm-std" - }, - { - "remote_url": "/openharmony/compiler/rust/1.72.0-20250515/rust-std-nightly-x86_64-unknown-linux-ohos.tar.gz", - "install_dir": "${code_dir}/prebuilts/rustc/rust-std-nightly-x86_64-unknown-linux-ohos", - "destdir": "${code_dir}/prebuilts/rustc/linux-x86_64/current", - "unzip_filename": "rustc-x86_64-std" - }, - { - "remote_url": "/openharmony/compiler/rust/1.72.0-20250515/rust-std-nightly-x86_64-pc-windows-gnullvm.tar.gz", - "install_dir": "${code_dir}/prebuilts/rustc/rust-std-nightly-x86_64-pc-windows-gnullvm", - "destdir": "${code_dir}/prebuilts/rustc/linux-x86_64/current", - "unzip_filename": "rustc-x86_64-windows-std", - "type": "src" - } - ] - }, - "darwin": { - "arm64": [ - { - "remote_url": "/openharmony/compiler/rust/20240429/rust-nightly-aarch64-apple-darwin_20240429.tar.gz", - "install_dir": "${code_dir}/prebuilts/rustc/rust-nightly-aarch64-apple-darwin_20240429", - "destdir": "${code_dir}/prebuilts/rustc/darwin-aarch64/current", - "unzip_filename": "rustc" - }, - { - "remote_url": "/openharmony/compiler/rust/20240429/rust-std-nightly-aarch64-apple-darwin_20240429.tar.gz", - "install_dir": "${code_dir}/prebuilts/rustc/rust-std-nightly-aarch64-apple-darwin_20240429", - "destdir": "${code_dir}/prebuilts/rustc/darwin-aarch64/current", - "unzip_filename": "rustc-aarch64-std" - } - ], - "x86_64": [ - { - "remote_url": "/openharmony/compiler/rust/20240429/rust-nightly-x86_64-apple-darwin_20240429.tar.gz", - "install_dir": "${code_dir}/prebuilts/rustc/rust-nightly-x86_64-apple-darwin_20240429", - "destdir": "${code_dir}/prebuilts/rustc/darwin-x86_64/current", - "unzip_filename": "rustc" - }, - { - "remote_url": "/openharmony/compiler/rust/20240429/rust-std-nightly-x86_64-apple-darwin_20240429.tar.gz", - "install_dir": "${code_dir}/prebuilts/rustc/rust-std-nightly-x86_64-apple-darwin_20240429", - "destdir": "${code_dir}/prebuilts/rustc/darwin-x86_64/current", - "unzip_filename": "rustc-x86_64-std" - } - ] - } - }, - "handle": [ - { - "type": "shell", - "cmd": [ - "${install_dir}/install.sh", - "--prefix=''", - "--destdir=${destdir}" - ] - } - ] - }, - { - "name": "hvigor", - "tag": "hvigor", - "type": "src, indep", - "config": { - "linux": { - "x86_64": { - "unzip_dir": "prebuilts/tool/command-line-tools", - "remote_url": "/harmonyos/compiler/hvigor/5.0.3.906/command-line-tools.tar", - "unzip_filename": "hvigor" - } - } - }, - "handle": [ - { - "type": "shell", - "cmd": [ - "/bin/bash", - "${code_dir}/build/prebuilts_service/shell/init_ohpm.sh" - ] - } - ] - }, - { - "name": "libcxx-ndk", - "tag": "base", - "type": "src, indep", - "unzip_filename": "libcxx-ndk", - "config": { - "linux": { - "arm64": { - "unzip_dir": "${code_dir}/prebuilts/clang/ohos/linux-aarch64", - "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/linux_aarch64/libcxx-ndk_linux-aarch64-115b62-20250811.tar.gz", - "unzip_filename": "libcxx-ndk", - "rename_src": "${unzip_dir}/libcxx-ndk_linux-aarch64-115b62-20250811" - }, - "x86_64": [ - { - "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/linux/libcxx-ndk_linux-x86_64-115b62-20250811.tar.gz", - "unzip_dir": "${code_dir}/prebuilts/clang/ohos/linux-x86_64", - "rename_src": "${unzip_dir}/libcxx-ndk_linux-x86_64-115b62-20250811" - } - ] - }, - "darwin": { - "arm64": { - "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/darwin_arm64/libcxx-ndk_darwin-arm64-115b62-20250811.tar.gz", - "unzip_dir": "${code_dir}/prebuilts/clang/ohos/darwin-arm64", - "rename_src": "${unzip_dir}/libcxx-ndk_darwin-arm64-115b62-20250811" - }, - "x86_64": { - "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/darwin_x86_64/libcxx-ndk_darwin-x86_64-115b62-20250811.tar.gz", - "unzip_dir": "${code_dir}/prebuilts/clang/ohos/darwin-x86_64", - "rename_src": "${unzip_dir}/libcxx-ndk_darwin-x86_64-115b62-20250811" - } - } - }, - "handle": [ - { - "type": "move", - "src": "${rename_src}", - "dest": "${unzip_dir}/libcxx-ndk" - } - ] - }, - { - "name": "npm_install", - "tag": "npm_install", - "type": "indep", - "handle": [ - { - "type": "npm_install", - "npm_install_path": [ - "${code_dir}/developtools/ace_ets2bundle/compiler", - "${code_dir}/developtools/ace_js2bundle/ace-loader", - "${code_dir}/third_party/jsframework", - "${code_dir}/third_party/parse5/packages/parse5", - "${code_dir}/third_party/weex-loader", - "${code_dir}/arkcompiler/ets_frontend/legacy_bin/api8", - "${code_dir}/interface/sdk-js/build-tools", - "${code_dir}/arkcompiler/ets_frontend/arkguard", - "${code_dir}/arkcompiler/ets_frontend/ets2panda/driver/build_system", - "${code_dir}/arkcompiler/ets_frontend/ets2panda/linter", - "${code_dir}/arkcompiler/ets_frontend/ets2panda/bindings", - "${code_dir}/arkcompiler/runtime_core/static_core/plugins/ets/tools/declgen_ts2sts", - "${code_dir}/developtools/ace_ets2bundle/koala-wrapper", - "${code_dir}/developtools/ace_ets2bundle/arkui-plugins" - ] - } - ] - }, - { - "name": "node_modules_copy", - "tag": "npm_install", - "type": "indep", - "handle": [ - { - "type": "node_modules_copy", - "copy_list": [ - { - "src": "${code_dir}/third_party/jsframework/node_modules", - "dest": "${code_dir}/prebuilts/build-tools/common/js-framework/node_modules", - "use_symlink": "True" - }, - { - "src": "${code_dir}/arkcompiler/ets_frontend/legacy_bin/api8/node_modules", - "dest": "${code_dir}/prebuilts/build-tools/common/ts2abc/node_modules", - "use_symlink": "True" - }, - { - "src": "${code_dir}/test/testfwk/arkxtest/jsunit", - "dest": "${code_dir}/developtools/ace_ets2bundle/compiler/node_modules/@ohos/hypium", - "use_symlink": "False" - }, - { - "src": "${code_dir}/test/testfwk/arkxtest/jsunit", - "dest": "${code_dir}/developtools/ace_js2bundle/ace-loader/node_modules/@ohos/hypium", - "use_symlink": "False" - }, - { - "src": "${code_dir}/test/testfwk/arkxtest/jsunit/", - "dest": "${code_dir}/developtools/ace_ets2bundle/compiler/node_modules/hypium/", - "use_symlink": "False" - }, - { - "src": "${code_dir}/test/testfwk/arkxtest/jsunit/", - "dest": "${code_dir}/developtools/ace_js2bundle/ace-loader/node_modules/hypium/", - "use_symlink": "False" - } - ] - } - ] - }, - { - "name": "AGPBinaryCompile", - "tag": "AGP", - "type": "indep", - "unzip_filename": "AGPBinaryCompile", - "config": { - "linux": { - "x86_64, arm64": { - "remote_url": "/openharmony/compiler/AGP/AGPBinaryCompile-20250604.tar.gz", - "unzip_dir": "${code_dir}/prebuilts/graphics_3d/AGPBinaryCompile" - } - } - } - }, - { - "name": "taihe", - "tag": "taihe", - "type": "indep", - "unzip_filename": "taihe", - "config": { - "linux": { - "x86_64, arm64": [ - { - "remote_url": "/openharmony/compiler/Taihe/0.34.1/taihe-linux-x86_64-v0.34.1-20250623.tar.gz", - "unzip_dir": "${code_dir}/prebuilts/taihe/ohos/linux-x86_64" - } - ] - } - } - }, - { - "name": "sdk", - "tag": "sdk", - "type": "indep", - "handle": [ - { - "type": "download_sdk", - "sdk_name": "ohos-sdk-full-linux", - "version": 20 - } - ] - } - ] -} +{ + "download_root": { + "src": "../openharmony_prebuilts", + "indep": "~/.prebuilts_cache" + }, + "tool_list": [ + { + "name": "node", + "tag": "base", + "type": "src, indep", + "unzip_dir": "${code_dir}/prebuilts/build-tools/common/nodejs", + "config": { + "linux": { + "arm64": [ + { + "remote_url": "/openharmony/compiler/nodejs/v14.21.1/node-v14.21.1-linux-aarch64.tar.gz", + "unzip_filename": "node-v14.21.1-linux-aarch64", + "symlink_src": "${unzip_dir}/node-v14.21.1-linux-aarch64" + } + ], + "x86_64": [ + { + "remote_url": "/nodejs/v14.21.1/node-v14.21.1-linux-x64.tar.gz", + "unzip_filename": "node-v14.21.1-linux-x64", + "symlink_src": "${unzip_dir}/node-v14.21.1-linux-x64" + }, + { + "remote_url": "/nodejs/v16.20.2/node-v16.20.2-linux-x64.tar.gz", + "unzip_filename": "node-v16.20.2-linux-x64" + }, + { + "remote_url": "/nodejs/v18.20.1/node-v18.20.1-linux-x64.tar.gz", + "unzip_filename": "node-v18.20.1-linux-x64", + "type": "src" + } + ] + }, + "darwin": { + "any": [ + { + "remote_url": "/nodejs/v14.21.1/node-v14.21.1-darwin-x64.tar.gz", + "unzip_filename": "node-v14.21.1-darwin-x64", + "symlink_src": "${unzip_dir}/node-v14.21.1-darwin-x64" + }, + { + "remote_url": "/nodejs/v16.20.2/node-v16.20.2-darwin-x64.tar.gz", + "unzip_filename": "node-v16.20.2-darwin-x64" + }, + { + "remote_url": "/nodejs/v18.20.1/node-v18.20.1-darwin-x64.tar.gz", + "unzip_filename": "node-v18.20.1-darwin-x64", + "type": "src" + } + ] + } + }, + "handle": [ + { + "type": "symlink", + "src": "${symlink_src}", + "dest": "${code_dir}/prebuilts/build-tools/common/nodejs/current" + } + ] + }, + { + "name": "cmake", + "tag": "base", + "type": "src", + "unzip_dir": "${code_dir}/prebuilts/cmake", + "config": { + "linux": { + "arm64": [ + { + "remote_url": "/openharmony/compiler/cmake/3.28.2/cmake-linux-aarch64-3.28.2-20241210.tar.gz", + "unzip_filename": "linux", + "type": "src" + } + ], + "x86_64": [ + { + "remote_url": "/openharmony/compiler/cmake/3.28.2/cmake-linux-x86-3.28.2.tar.gz", + "unzip_filename": "linux-x86", + "type": "src" + }, + { + "remote_url": "/openharmony/compiler/cmake/3.28.2/cmake-ohos-3.28.2-20240827.tar.gz", + "unzip_filename": "ohos", + "type": "src" + }, + { + "remote_url": "/openharmony/compiler/cmake/3.28.2/cmake-windows-x86-3.28.2.tar.gz", + "unzip_filename": "windows-x86", + "type": "src" + } + ] + }, + "darwin": { + "arm64": [ + { + "remote_url": "/openharmony/compiler/cmake/3.28.2/cmake-darwin-universal-3.28.2.tar.gz", + "unzip_filename": "darwin-universal", + "type": "src" + } + ], + "x86_64": [ + { + "remote_url": "/openharmony/compiler/cmake/3.28.2/cmake-darwin-universal-3.28.2.tar.gz", + "unzip_filename": "darwin-universal", + "type": "src" + } + ] + } + }, + "handle": [] + }, + { + "name": "gn", + "tag": "base", + "type": "src, indep", + "unzip_filename": "gn", + "config": { + "linux": { + "arm64": [ + { + "unzip_dir": "${code_dir}/prebuilts/build-tools/linux-aarch64/bin", + "remote_url": "/openharmony/compiler/gn/20240530/gn-linux-aarch64-20240530.tar.gz" + } + ], + "x86_64": [ + { + "unzip_dir": "${code_dir}/prebuilts/build-tools/linux-x86/bin", + "remote_url": "/openharmony/compiler/gn/20250804/gn-linux-x86-20250804.tar.gz" + } + ] + }, + "darwin": { + "arm64": [ + { + "unzip_dir": "${code_dir}/prebuilts/build-tools/darwin-x86/bin", + "remote_url": "/openharmony/compiler/gn/20250529/gn-darwin-x86-20250529.tar.gz" + } + ], + "x86_64": [ + { + "unzip_dir": "${code_dir}/prebuilts/build-tools/darwin-x86/bin", + "remote_url": "/openharmony/compiler/gn/20250529/gn-darwin-x86-20250529.tar.gz" + } + ] + } + }, + "handle": [] + }, + { + "name": "ninja", + "tag": "base", + "type": "src, indep", + "unzip_filename": "ninja", + "config": { + "linux": { + "arm64": [ + { + "unzip_dir": "${code_dir}/prebuilts/build-tools/linux-aarch64/bin", + "remote_url": "/openharmony/compiler/ninja/1.12.0/linux/ninja-linux-aarch64-1.12.0-20241210.tar.gz" + } + ], + "x86_64": [ + { + "unzip_dir": "${code_dir}/prebuilts/build-tools/ohos/bin", + "remote_url": "/openharmony/compiler/ninja/1.12.0/ohos/ninja-ohos-1.12.0-20240827.tar.gz", + "type": "src" + }, + { + "unzip_dir": "${code_dir}/prebuilts/build-tools/linux-x86/bin", + "remote_url": "/openharmony/compiler/ninja/1.12.0/linux/ninja-linux-x86-1.12.0-20240523.tar.gz" + }, + { + "unzip_dir": "${code_dir}/prebuilts/build-tools/windows-x86/bin", + "remote_url": "/openharmony/compiler/ninja/1.12.0/windows/ninja-windows-x86-1.12.0-20240523.tar.gz", + "type": "src" + } + ] + }, + "darwin": { + "arm64": [ + { + "unzip_dir": "${code_dir}/prebuilts/build-tools/darwin-x86/bin", + "remote_url": "/openharmony/compiler/ninja/1.12.0/darwin/arm/ninja-darwin-arm-1.12.0-20240829.tar.gz" + } + ], + "x86_64": [ + { + "unzip_dir": "${code_dir}/prebuilts/build-tools/darwin-x86/bin", + "remote_url": "/openharmony/compiler/ninja/1.12.0/darwin/x86/ninja-darwin-x86-1.12.0-20240829.tar.gz" + } + ] + } + }, + "handle": [] + }, + { + "name": "hc-gen", + "tag": "hc-gen", + "type": "indep", + "config": { + "linux": { + "x86_64": { + "remote_url": "/openharmony/compiler/hc-gen/linux/hc-gen-20240926.tar.gz", + "unzip_dir": "${code_dir}/prebuilts/hc_gen", + "unzip_filename": "hc-gen" + } + } + } + }, + { + "name": "OpenHarmonyApplication.pem", + "tag": "app", + "type": "indep", + "config": { + "linux": { + "x86_64": { + "remote_url": "/openharmony/compiler/certificates/20241025/OpenHarmonyApplication.zip", + "unzip_dir": "${code_dir}/prebuilts/ohos-sdk", + "unzip_filename": "OpenHarmonyApplication.pem" + } + } + } + }, + { + "name": "AGPBinaryCompile", + "tag": "AGP", + "type": "indep", + "unzip_filename": "AGPBinaryCompile", + "config": { + "linux": { + "x86_64, arm64": { + "remote_url": "/openharmony/compiler/AGP/AGPBinaryCompile-20250604.tar.gz", + "unzip_dir": "${code_dir}/prebuilts/graphics_3d/AGPBinaryCompile" + } + } + } + }, + { + "name": "ark_js_prebuilts", + "tag": "ark_js", + "type": "src, indep", + "unzip_dir": "${code_dir}/prebuilts/ark_tools", + "unzip_filename": "ark_js_prebuilts", + "config": { + "linux": { + "arm64": [ + { + "remote_url": "/openharmony/compiler/llvm_prebuilt_libs/ark_js_prebuilts_20231215.tar.gz" + } + ], + "x86_64": [ + { + "remote_url": "/openharmony/compiler/llvm_prebuilt_libs/ark_js_prebuilts_20230713.tar.gz" + } + ] + }, + "darwin": { + "arm64": [ + { + "remote_url": "/openharmony/compiler/llvm_prebuilt_libs/ark_js_prebuilts_darwin_arm64_20230209.tar.gz" + } + ], + "x86_64": [ + { + "remote_url": "/openharmony/compiler/llvm_prebuilt_libs/ark_js_prebuilts_darwin_x64_20230209.tar.gz" + } + ] + } + }, + "handle": [] + }, + { + "name": "packaging_tools", + "tag": "packing_tool", + "type": "src, indep", + + "config": { + "any": { + "any": [ + { + "unzip_dir": "${code_dir}/prebuilts/packing_tool", + "unzip_filename": "packing_tool", + "remote_url": "/harmonyos/compiler/packing_tool/packing_tool_libs_20250215.zip" + } + ] + } + }, + "handle": [] + }, + { + "name": "clang", + "tag": "base", + "type": "src, indep", + "unzip_filename": "llvm", + "config": { + "linux": { + "arm64": [ + { + "unzip_dir": "${code_dir}/prebuilts/clang/ohos/linux-aarch64", + "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/linux_aarch64/clang_linux_aarch64-115b62-20250811.tar.gz", + "rename_src": "/prebuilts/clang/ohos/linux-aarch64/clang_linux_aarch64-115b62-20250811", + "type": "src" + } + ], + "x86_64": [ + { + "unzip_dir": "${code_dir}/prebuilts/clang/ohos/ohos-arm64", + "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/ohos_arm64/clang_ohos-arm64-115b62-20250811.tar.gz", + "rename_src": "${code_dir}/prebuilts/clang/ohos/ohos-arm64/clang_ohos-arm64-115b62-20250811", + "type": "src" + }, + { + "unzip_dir": "${code_dir}/prebuilts/clang/ohos/windows-x86_64", + "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/windows/clang_windows-x86_64-115b62-20250811.tar.gz", + "rename_src": "${code_dir}/prebuilts/clang/ohos/windows-x86_64/clang_windows-x86_64-115b62-20250811", + "type": "src" + }, + { + "unzip_dir": "${code_dir}/prebuilts/clang/ohos/linux-x86_64", + "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/linux/clang_linux-x86_64-115b62-20250811.tar.gz", + "rename_src": "${code_dir}/prebuilts/clang/ohos/linux-x86_64/clang_linux-x86_64-115b62-20250811" + } + ] + }, + "darwin": { + "arm64": [ + { + "unzip_dir": "${code_dir}/prebuilts/clang/ohos/darwin-arm64", + "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/darwin_arm64/clang_darwin-arm64-115b62-20250811.tar.gz", + "rename_src": "${code_dir}/prebuilts/clang/ohos/darwin-arm64/clang_darwin-arm64-115b62-20250811" + } + ], + "x86_64": [ + { + "unzip_dir": "${code_dir}/prebuilts/clang/ohos/darwin-x86_64", + "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/darwin_x86_64/clang_darwin-x86_64-115b62-20250811.tar.gz", + "rename_src": "${code_dir}/prebuilts/clang/ohos/darwin-arm64/clang_darwin-arm64-115b62-20250811" + } + ] + } + }, + "handle": [ + { + "type": "move", + "src": "${rename_src}", + "dest": "${unzip_dir}/llvm" + }, + { + "type": "symlink", + "src": "${unzip_dir}/llvm/lib/clang/15.0.4", + "dest": "${unzip_dir}/llvm/lib/clang/current" + } + ] + }, + { + "name": "libcxx-ndk", + "tag": "base", + "type": "src, indep", + "unzip_filename": "libcxx-ndk", + "config": { + "linux": { + "arm64": [ + { + "unzip_dir": "${code_dir}/prebuilts/clang/ohos/linux-aarch64", + "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/linux_aarch64/libcxx-ndk_linux-aarch64-115b62-20250811.tar.gz", + "rename_src": "${unzip_dir}/libcxx-ndk_linux-aarch64-115b62-20250811" + } + ], + "x86_64": [ + { + "unzip_dir": "${code_dir}/prebuilts/clang/ohos/ohos-arm64", + "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/ohos_arm64/libcxx_ndk_ohos-arm64-115b62-20250811.tar.gz", + "rename_src": "${unzip_dir}/libcxx_ndk_ohos-arm64-115b62-20250811", + "type": "src" + }, + { + "unzip_dir": "${code_dir}/prebuilts/clang/ohos/windows-x86_64", + "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/windows/libcxx-ndk_windows-x86_64-115b62-20250811.tar.gz", + "rename_src": "${unzip_dir}/libcxx-ndk_windows-x86_64-115b62-20250811", + "type": "src" + }, + { + "unzip_dir": "${code_dir}/prebuilts/clang/ohos/linux-x86_64", + "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/linux/libcxx-ndk_linux-x86_64-115b62-20250811.tar.gz", + "rename_src": "${unzip_dir}/libcxx-ndk_linux-x86_64-115b62-20250811" + } + ] + }, + "darwin": { + "arm64": [ + { + "unzip_dir": "${code_dir}/prebuilts/clang/ohos/darwin-arm64", + "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/darwin_arm64/libcxx-ndk_darwin-arm64-115b62-20250811.tar.gz", + "rename_src": "${unzip_dir}/libcxx-ndk_darwin-arm64-115b62-20250811" + } + ], + "x86_64": [ + { + "unzip_dir": "${code_dir}/prebuilts/clang/ohos/darwin-x86_64", + "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/darwin_x86_64/libcxx-ndk_darwin-x86_64-115b62-20250811.tar.gz", + "rename_src": "${unzip_dir}/libcxx-ndk_darwin-x86_64-115b62-20250811" + } + ] + } + }, + "handle": [ + { + "type": "move", + "src": "${rename_src}", + "dest": "${unzip_dir}/libcxx-ndk" + } + ] + }, + { + "name": "gcc", + "tag": "base", + "type": "src", + "config": { + "linux": { + "arm64": [ + { + "unzip_dir": "${code_dir}/prebuilts/gcc/linux-x86/arm/gcc-linaro-7.5.0-arm-linux-gnueabi", + "remote_url": "/openharmony/compiler/prebuilts_gcc_linux-x86_arm_gcc-linaro-7.5.0-arm-linux-gnueabi/1.0/prebuilts_gcc_linux-x86_arm_gcc-linaro-7.5.0-arm-linux-gnueabi.tar.gz", + "unzip_filename": "prebuilts_gcc_linux-x86_arm_gcc-linaro-7.5.0-arm-linux-gnueabi", + "type": "src" + }, + { + "unzip_dir": "${code_dir}/prebuilts/gcc/linux-x86/aarch64", + "remote_url": "/openharmony/compiler/prebuilts_gcc_linux-x86_arm_gcc-linaro-7.5.0-arm-linux-gnueabi/1.0/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu.tar.xz", + "unzip_filename": "gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu", + "type": "src" + } + ], + "x86_64": [ + { + "unzip_dir": "${code_dir}/prebuilts/gcc/linux-x86/arm/gcc-linaro-7.5.0-arm-linux-gnueabi", + "remote_url": "/openharmony/compiler/prebuilts_gcc_linux-x86_arm_gcc-linaro-7.5.0-arm-linux-gnueabi/1.0/prebuilts_gcc_linux-x86_arm_gcc-linaro-7.5.0-arm-linux-gnueabi.tar.gz", + "unzip_filename": "prebuilts_gcc_linux-x86_arm_gcc-linaro-7.5.0-arm-linux-gnueabi", + "rename_src": "${unzip_dir}/${unzip_filename}", + "tmp": "${code_dir}/prebuilts/gcc/linux-x86/arm/gcc-linaro-7.5.0-arm-linux-gnueabi2", + "rename_dest": "${code_dir}/prebuilts/gcc/linux-x86/arm/gcc-linaro-7.5.0-arm-linux-gnueabi", + "type": "src" + }, + { + "unzip_dir": "${code_dir}/prebuilts/gcc/linux-x86/aarch64", + "remote_url": "/openharmony/compiler/prebuilts_gcc_linux-x86_arm_gcc-linaro-7.5.0-arm-linux-gnueabi/1.0/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu.tar.xz", + "unzip_filename": "gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu", + "type": "src" + } + ] + } + }, + "handle": [ + { + "type": "move", + "src": "${rename_src}", + "dest": "${tmp}" + }, + { + "type": "move", + "filetype": "mark", + "src": "${rename_dest}", + "dest": "${tmp}" + }, + { + "type": "remove", + "path": "${rename_dest}" + }, + { + "type": "move", + "src": "${tmp}", + "dest": "${rename_dest}" + } + ] + }, + { + "name": "taihe", + "tag": "taihe", + "type": "src, indep", + "unzip_filename": "taihe", + "config": { + "linux": { + "any": [ + { + "unzip_dir": "${code_dir}/prebuilts/taihe/ohos/linux-x86_64", + "remote_url": "/openharmony/compiler/Taihe/0.34.1/taihe-linux-x86_64-v0.34.1-20250623.tar.gz" + }, + { + "unzip_dir": "${code_dir}/prebuilts/taihe/ohos/windows-x86_64", + "remote_url": "/openharmony/compiler/Taihe/0.34.1/taihe-windows-x86_64-v0.34.1-20250623.tar.gz", + "type": "src" + } + ] + }, + "darwin": { + "arm64": [ + { + "unzip_dir": "${code_dir}/prebuilts/taihe/ohos/darwin-arm64", + "remote_url": "/openharmony/compiler/Taihe/0.34.1/taihe-darwin-arm64-v0.34.1-20250623.tar.gz", + "type": "src" + } + ], + "x86_64": [ + { + "unzip_dir": "${code_dir}/prebuilts/taihe/ohos/darwin-x86_64", + "remote_url": "/openharmony/compiler/Taihe/0.34.1/taihe-darwin-x86_64-v0.34.1-20250623.tar.gz", + "type": "src" + } + ] + } + }, + "handle": [] + }, + { + "name": "python", + "tag": "base", + "type": "src, indep", + "unzip_dir": "${code_dir}/prebuilts/python", + "config": { + "linux": { + "arm64": [ + { + "remote_url": "/openharmony/compiler/python/3.11.4/linux/python-linux-arm64-3.11.4_20240715.tar.gz", + "unzip_filename": "linux-arm64", + "rename_src": "${code_dir}/prebuilts/python/linux-arm64", + "rename_dest": "${code_dir}/prebuilts/python/linux-aarch64" + } + ], + "x86_64": [ + { + "remote_url": "/openharmony/compiler/python/3.11.4/linux/python-linux-x86-GLIBC2.27-3.11.4_20250807.tar.gz", + "unzip_filename": "linux-x86" + }, + { + "remote_url": "/openharmony/compiler/python/3.11.4/windows/python-mingw-x86-3.11.4_20250617.tar.gz", + "unzip_filename": "windows-x86", + "type": "src", + "skip_handle": true + } + ] + }, + "darwin": { + "arm64": [ + { + "remote_url": "/openharmony/compiler/python/3.11.4/darwin/python-darwin-arm64-3.11.4_20250804.tar.gz", + "unzip_filename": "darwin-arm64" + } + ], + "x86_64": [ + { + "remote_url": "/openharmony/compiler/python/3.11.4/darwin/python-darwin-x86-3.11.4_20250804.tar.gz", + "unzip_filename": "darwin-x86" + } + ] + } + }, + "handle": [ + { + "type": "move", + "src": "${rename_src}", + "dest": "${rename_dest}" + }, + { + "type": "symlink", + "src": "${unzip_dir}/${unzip_filename}/3.11.4", + "dest": "${unzip_dir}/${unzip_filename}/current" + }, + { + "type": "shell", + "python_path": "${unzip_dir}/${unzip_filename}/current/bin/python3", + "pip_path": "${unzip_dir}/${unzip_filename}/current/bin/pip3", + "cmd": [ + "${python_path}", + "${pip_path}", + "install", + "--trusted-host", + "repo.huaweicloud.com", + "-i", + "http://repo.huaweicloud.com/repository/pypi/simple", + "pyyaml", + "requests>=2.32.1", + "prompt_toolkit==1.0.14", + "asn1crypto", + "cryptography", + "json5==0.9.6" + ] + } + ] + }, + { + "name": "bpftool", + "tag": "base", + "type": "src", + "config": { + "any": { + "arm64": [ + { + "unzip_dir": "${code_dir}/prebuilts/develop_tools", + "remote_url": "/openharmony/develop_tools/bpftool_v5.10.93_20221114.tar.gz", + "unzip_filename": "bpftool", + "type": "src" + } + ], + "x86_64": [ + { + "unzip_dir": "${code_dir}/prebuilts/develop_tools", + "remote_url": "/openharmony/develop_tools/bpftool_v5.10.93_20221114.tar.gz", + "unzip_filename": "bpftool", + "type": "src" + } + ] + } + }, + "handle": [] + }, + { + "name": "pahole", + "tag": "base", + "type": "src", + "config": { + "linux": { + "arm64": [ + { + "unzip_dir": "${code_dir}/prebuilts/develop_tools", + "remote_url": "/openharmony/develop_tools/pahole_v1.21_20221124.tar.gz", + "unzip_filename": "pahole", + "type": "src" + } + ], + "x86_64": [ + { + "unzip_dir": "${code_dir}/prebuilts/develop_tools", + "remote_url": "/openharmony/develop_tools/pahole_v1.21_20221124.tar.gz", + "unzip_filename": "pahole", + "type": "src" + } + ] + } + }, + "handle": [] + }, + { + "name": "rust", + "tag": "rust", + "type": "src, indep", + "unzip_dir": "${code_dir}/prebuilts/rustc", + "config": { + "linux": { + "arm64": [ + { + "remote_url": "/openharmony/compiler/rust/20240528/rust-std-nightly-aarch64-unknown-linux-ohos_20240528.tar.gz", + "unzip_filename": "rustc-aarch64-std", + "install_dir": "${unzip_dir}/rust-std-nightly-aarch64-unknown-linux-ohos_20240528", + "destdir": "${code_dir}/prebuilts/rustc/linux-aarch64/current" + } + ], + "x86_64": [ + { + "remote_url": "/openharmony/compiler/rust/1.72.0-20250515/rust-nightly-x86_64-unknown-linux-gnu.tar.gz", + "unzip_filename": "rustc", + "install_dir": "${unzip_dir}/rust-nightly-x86_64-unknown-linux-gnu", + "destdir": "${code_dir}/prebuilts/rustc/linux-x86_64/current" + }, + { + "remote_url": "/openharmony/compiler/rust/1.72.0-20250515/rust-std-nightly-aarch64-unknown-linux-ohos.tar.gz", + "unzip_filename": "rustc-aarch64-std", + "install_dir": "${unzip_dir}/rust-std-nightly-aarch64-unknown-linux-ohos", + "destdir": "${code_dir}/prebuilts/rustc/linux-x86_64/current" + }, + { + "remote_url": "/openharmony/compiler/rust/1.72.0-20250515/rust-std-nightly-armv7-unknown-linux-ohos.tar.gz", + "unzip_filename": "rustc-arm-std", + "install_dir": "${unzip_dir}/rust-std-nightly-armv7-unknown-linux-ohos", + "destdir": "${code_dir}/prebuilts/rustc/linux-x86_64/current" + }, + { + "remote_url": "/openharmony/compiler/rust/1.72.0-20250515/rust-std-nightly-x86_64-unknown-linux-ohos.tar.gz", + "unzip_filename": "rustc-x86_64-std", + "install_dir": "${unzip_dir}/rust-std-nightly-x86_64-unknown-linux-ohos", + "destdir": "${code_dir}/prebuilts/rustc/linux-x86_64/current" + }, + { + "remote_url": "/openharmony/compiler/rust/1.72.0-20250515/rust-std-nightly-x86_64-pc-windows-gnullvm.tar.gz", + "unzip_filename": "rustc-x86_64-windows-std", + "install_dir": "${unzip_dir}/rust-std-nightly-x86_64-pc-windows-gnullvm", + "destdir": "${code_dir}/prebuilts/rustc/linux-x86_64/current", + "type": "src" + } + ] + }, + "darwin": { + "arm64": [ + { + "remote_url": "/openharmony/compiler/rust/1.72.0-20250515/rust-nightly-aarch64-apple-darwin.tar.gz", + "unzip_filename": "rustc", + "install_dir": "${unzip_dir}/rust-nightly-aarch64-apple-darwin", + "destdir": "${code_dir}/prebuilts/rustc/darwin-aarch64/current" + } + ], + "x86_64": [ + { + "remote_url": "/openharmony/compiler/rust/1.72.0-20250515/rust-nightly-x86_64-apple-darwin.tar.gz", + "install_dir": "${unzip_dir}/rust-nightly-x86_64-apple-darwin", + "destdir": "${code_dir}/prebuilts/rustc/darwin-x86_64/current", + "unzip_filename": "rustc" + } + ] + } + }, + "handle": [ + { + "type": "shell", + "cmd": [ + "${install_dir}/install.sh", + "--prefix=''", + "--destdir=${destdir}" + ] + } + ] + }, + { + "name": "hvigor", + "tag": "hvigor", + "type": "src, indep", + "config": { + "linux": { + "x86_64": [ + { + "unzip_dir": "${code_dir}/prebuilts/tool/command-line-tools", + "remote_url": "/harmonyos/compiler/hvigor/5.0.3.906/command-line-tools.tar", + "unzip_filename": "hvigor" + } + ] + } + }, + "handle": [ + { + "type": "shell", + "cmd": [ + "/bin/bash", + "${code_dir}/build/prebuilts_service/shell/init_ohpm.sh" + ] + } + ] + }, + { + "name": "ark_tools_llvm_aot", + "tag": "base", + "type": "src", + "config": { + "linux": { + "x86_64": [ + { + "unzip_dir": "${code_dir}/prebuilts/ark_tools/llvm_aot/aot_x86_release", + "remote_url": "/harmonyos/compiler/clang/15.0.4-0d8b9c-ark/llvm-15.0.4-ark18-release-x86_64.tar.xz", + "unzip_filename": "llvm_aot_x86_release", + "type": "src" + }, + { + "unzip_dir": "${code_dir}/prebuilts/ark_tools/llvm_aot/aot_x86_debug", + "remote_url": "/harmonyos/compiler/clang/15.0.4-0d8b9c-ark/llvm-15.0.4-ark18-debug-x86_64.tar.xz", + "unzip_filename": "llvm_aot_x86_debug", + "type": "src" + }, + { + "unzip_dir": "${code_dir}/prebuilts/ark_tools/llvm_aot/aot_aarch64_release", + "remote_url": "/harmonyos/compiler/clang/15.0.4-0d8b9c-ark/llvm-15.0.4-ark18-release-aarch64.tar.xz", + "unzip_filename": "llvm_aot_aarch64_release", + "type": "src" + }, + { + "unzip_dir": "${code_dir}/prebuilts/ark_tools/llvm_aot/aot_aarch64_debug", + "remote_url": "/harmonyos/compiler/clang/15.0.4-0d8b9c-ark/llvm-15.0.4-ark18-debug-aarch64.tar.xz", + "unzip_filename": "llvm_aot_aarch64_debug", + "type": "src" + }, + { + "unzip_dir": "${code_dir}/prebuilts/ark_tools/llvm_aot/aot_ohos_release", + "remote_url": "/harmonyos/compiler/clang/15.0.4-0d8b9c-ark/llvm-15.0.4-ark18-release-ohos.tar.xz", + "unzip_filename": "llvm_aot_ohos_release", + "type": "src" + }, + { + "unzip_dir": "${code_dir}/prebuilts/ark_tools/llvm_aot/aot_gn_ohos", + "remote_url": "/harmonyos/compiler/clang/15.0.4-0d8b9c-ark/llvm-15.0.4-ark18-release-ohos-gn_20250306.tar.xz", + "unzip_filename": "llvm_aot_gn_ohos_release", + "type": "src" + } + ] + } + }, + "handle": [] + }, + { + "name": "mingw", + "tag": "base", + "type": "src", + "config": { + "linux": { + "x86_64": [ + { + "unzip_dir": "${code_dir}/prebuilts/mingw-w64/ohos/linux-x86_64", + "remote_url": "/openharmony/compiler/mingw-w64/11.0.1/clang-mingw-20240510.tar.gz", + "unzip_filename": "clang-mingw", + "type": "src" + } + ] + } + }, + "handle": [] + }, + { + "name": "cangjie", + "tag": "cangjie", + "type": "src, indep", + "config": { + "linux": { + "x86_64": [ + { + "unzip_dir": "${code_dir}/prebuilts/cangjie_sdk/linux-x64", + "remote_url": "/openharmony/compiler/cangjie/1.0.0/cangjie-linux-x64-1.0.0.zip", + "unzip_filename": "cangjie-linux-x64" + }, + { + "unzip_dir": "${code_dir}/prebuilts/cangjie_sdk/windows-x64", + "remote_url": "/openharmony/compiler/cangjie/1.0.0/cangjie-windows-x64-1.0.0.zip", + "unzip_filename": "cangjie-windows-x64" + }, + { + "unzip_dir": "${code_dir}/prebuilts/cangjie_sdk/build-tools", + "remote_url": "/openharmony/compiler/cangjie/1.0.0/cangjie-api-tools-1.0.0.zip", + "unzip_filename": "cangjie-api-tools" + } + ] + }, + "darwin": { + "arm64": [ + { + "unzip_dir": "${code_dir}/prebuilts/cangjie_sdk/mac-aarch64", + "remote_url": "/openharmony/compiler/cangjie/1.0.0/cangjie-mac-aarch64-1.0.0.zip", + "unzip_filename": "cangjie-mac-aarch64" + }, + { + "unzip_dir": "${code_dir}/prebuilts/cangjie_sdk/build-tools", + "remote_url": "/openharmony/compiler/cangjie/1.0.0/cangjie-api-tools-1.0.0.zip", + "unzip_filename": "cangjie-api-tools" + } + ], + "x86_64": [ + { + "unzip_dir": "${code_dir}/prebuilts/cangjie_sdk/mac-x64", + "remote_url": "/openharmony/compiler/cangjie/1.0.0/cangjie-mac-x64-1.0.0.zip", + "unzip_filename": "cangjie-mac-x64" + }, + { + "unzip_dir": "${code_dir}/prebuilts/cangjie_sdk/build-tools", + "remote_url": "/openharmony/compiler/cangjie/1.0.0/cangjie-api-tools-1.0.0.zip", + "unzip_filename": "cangjie-api-tools" + } + ] + } + }, + "handle": [] + }, + { + "name": "python_llvm", + "tag": "base", + "type": "src", + "config": { + "linux": { + "x86_64": [ + { + "unzip_dir": "${code_dir}/prebuilts/python_llvm", + "remote_url": "/openharmony/compiler/python/3.11.4/linux/python-linux-arm64-3.11.4_20240715.tar.gz", + "unzip_filename": "linux-arm64" + }, + { + "unzip_dir": "${code_dir}/prebuilts/python_llvm", + "remote_url": "/openharmony/compiler/python/3.11.4/linux/python-linux-x86-GLIBC2.27-3.11.4_20250807.tar.gz", + "unzip_filename": "linux-x86" + }, + { + "unzip_dir": "${code_dir}/prebuilts/python_llvm", + "remote_url": "/openharmony/compiler/python/3.11.4/windows/python-mingw-x86-3.11.4_20250617.tar.gz", + "unzip_filename": "windows-x86" + } + ] + }, + "darwin": { + "arm64": [ + { + "unzip_dir": "${code_dir}/prebuilts/python_llvm", + "remote_url": "/openharmony/compiler/python/3.11.4/darwin/python-darwin-arm64-3.11.4_20250804.tar.gz", + "unzip_filename": "darwin-arm64" + } + ], + "x86_64": [ + { + "unzip_dir": "${code_dir}/prebuilts/python_llvm", + "remote_url": "/openharmony/compiler/python/3.11.4/darwin/python-darwin-x86-3.11.4_20250804.tar.gz", + "unzip_filename": "darwin-x86" + } + ] + } + }, + "handle": [] + }, + { + "name": "npm_install", + "tag": "npm_install", + "type": "src, indep", + "handle": [ + { + "type": "npm_install", + "npm_install_path": [ + "${code_dir}/developtools/ace_ets2bundle/compiler", + "${code_dir}/developtools/ace_js2bundle/ace-loader", + "${code_dir}/third_party/jsframework", + "${code_dir}/third_party/parse5/packages/parse5", + "${code_dir}/third_party/weex-loader", + "${code_dir}/arkcompiler/ets_frontend/legacy_bin/api8", + "${code_dir}/interface/sdk-js/build-tools", + "${code_dir}/arkcompiler/ets_frontend/arkguard", + "${code_dir}/arkcompiler/ets_frontend/ets2panda/driver/build_system", + "${code_dir}/arkcompiler/ets_frontend/ets2panda/linter", + "${code_dir}/arkcompiler/ets_frontend/ets2panda/bindings", + "${code_dir}/arkcompiler/runtime_core/static_core/plugins/ets/tools/declgen_ts2sts", + "${code_dir}/developtools/ace_ets2bundle/koala-wrapper", + "${code_dir}/developtools/ace_ets2bundle/arkui-plugins" + ] + } + ] + }, + { + "name": "node_modules_copy", + "tag": "npm_install", + "type": "src, indep", + "handle": [ + { + "type": "node_modules_copy", + "copy_list": [ + { + "src": "${code_dir}/third_party/jsframework/node_modules", + "dest": "${code_dir}/prebuilts/build-tools/common/js-framework/node_modules", + "use_symlink": "True" + }, + { + "src": "${code_dir}/arkcompiler/ets_frontend/legacy_bin/api8/node_modules", + "dest": "${code_dir}/prebuilts/build-tools/common/ts2abc/node_modules", + "use_symlink": "True" + }, + { + "src": "${code_dir}/test/testfwk/arkxtest/jsunit", + "dest": "${code_dir}/developtools/ace_ets2bundle/compiler/node_modules/@ohos/hypium", + "use_symlink": "False" + }, + { + "src": "${code_dir}/test/testfwk/arkxtest/jsunit", + "dest": "${code_dir}/developtools/ace_js2bundle/ace-loader/node_modules/@ohos/hypium", + "use_symlink": "False" + }, + { + "src": "${code_dir}/test/testfwk/arkxtest/jsunit/", + "dest": "${code_dir}/developtools/ace_ets2bundle/compiler/node_modules/hypium/", + "use_symlink": "False" + }, + { + "src": "${code_dir}/test/testfwk/arkxtest/jsunit/", + "dest": "${code_dir}/developtools/ace_js2bundle/ace-loader/node_modules/hypium/", + "use_symlink": "False" + } + ] + } + ] + }, + { + "name": "hpm", + "tag": "base", + "type": "indep", + "handle": [ + { + "type": "hpm_download", + "name": "@ohos/hpm-cli", + "version": "1.6.1", + "package_path": "${code_dir}", + "package_lock_path": "${code_dir}", + "download_dir": "${download_root}/hpm", + "symlink": "${code_dir}/prebuilts/hpm/node_modules" + } + ] + }, + { + "name": "uninstalled_tools", + "tag": "uninstalled_tools", + "type": "src", + "handle": [ + { + "type": "remove", + "path": "prebuilts/build-tools/common/restool" + } + ] + }, + { + "name": "sdk", + "tag": "sdk", + "type": "indep", + "handle": [ + { + "type": "download_sdk", + "sdk_name": "ohos-sdk-full-linux", + "version": 20 + } + ] + } + ] +} \ No newline at end of file diff --git a/prebuilts_config.py b/prebuilts_config.py index 6dd97e54e1..ad7dce9340 100644 --- a/prebuilts_config.py +++ b/prebuilts_config.py @@ -67,7 +67,7 @@ def main(): os.makedirs(prebuilts_path) # 使用线程池下载 - print(f"start download prebuilts, tool list is:") + print(f"start download prebuilts, total {len(download_operate)}, tool list is:") for item in download_operate: print(item.get("remote_url")) pool_downloader = PoolDownloader(download_operate, global_args) diff --git a/prebuilts_config.sh b/prebuilts_config.sh index 4216853974..06dddfe748 100644 --- a/prebuilts_config.sh +++ b/prebuilts_config.sh @@ -25,14 +25,14 @@ parse_args(){ while [[ $# -gt 0 ]]; do case "$1" in # 处理长参数(带等号) - --*=*) + --*=* | -*=*) key="${1%%=*}" # 提取参数名 value="${1#*=}" # 提取参数值 args["$key"]="$value" # 取最后的值 shift ;; # 处理长参数(不带等号) - --*) + --* | -*) key="$1" shift values=() @@ -47,37 +47,6 @@ parse_args(){ args["$key"]="${values[*]}" # 合并为空格分隔的字符串 fi ;; - # 处理短参数(带等号,如 -k=value) - -*=*) - key_part="${1%%=*}" # 提取短参数部分(如 -abc=value → -abc) - value="${1#*=}" # 提取值 - chars="${key_part:1}" # 去掉前缀的短参数(如 abc) - # 处理除最后一个字符外的所有字符(作为无值参数) - while [[ ${#chars} -gt 1 ]]; do - args["-${chars:0:1}"]="1" - chars="${chars:1}" - done - # 最后一个字符作为带值参数 - args["-${chars}"]="$value" - shift - ;; - # 处理短参数(不带等号) - -*) - chars="${1:1}" # 去掉短参数前缀(如 abc) - while [[ -n "$chars" ]]; do - key="-${chars:0:1}" - chars="${chars:1}" - # 如果还有剩余字符或后续参数是选项,视为无值参数 - if [[ -n "$chars" ]] || [[ $# -gt 1 && "$2" == -* ]]; then - args["$key"]="1" - else - # 否则取下一个参数作为值 - args["$key"]="$2" - shift - fi - done - shift - ;; # 不处理其他参数 *) shift @@ -161,7 +130,9 @@ if [[ -v args["--part-names"] ]]; then fi # 运行Python命令 -python3 "${script_path}/prebuilts_config.py" $glibc_version --config-file $config_file --host-platform $host_platform --host-cpu $host_cpu $disable_rich $part_names +type="--type indep" +pip3 install --trusted-host $trusted_host -i $pypi_url requests +python3 "${script_path}/prebuilts_config.py" $glibc_version --config-file $config_file --host-platform $host_platform --host-cpu $host_cpu $disable_rich $part_names $type PYTHON_PATH=$(realpath $code_dir/prebuilts/python/${host_platform}-${host_cpu_prefix}/*/bin | tail -1) if [[ -v args["--download-sdk"] ]]; then diff --git a/prebuilts_download.sh b/prebuilts_download.sh index f5c1362d4b..2cdfe92733 100755 --- a/prebuilts_download.sh +++ b/prebuilts_download.sh @@ -186,8 +186,13 @@ if [ -d "${code_dir}/prebuilts/build-tools/common/nodejs" ];then echo "remove nodejs" fi type="--type src" -config_file="--config-file ${code_dir}/build/prebuilts_download_config.json" -python3 "${code_dir}/build/prebuilts_config.py" $wget_ssl_check $tool_repo $npm_registry $help $cpu $platform $npm_para $disable_rich $enable_symlink $build_arkuix $glibc_version $type $config_file +config_file="--config-file ${code_dir}/build/prebuilts_config.json" +pip3 install --trusted-host $trusted_host -i $pypi_url requests +if [[ "${BUILD_ARKUIX}" != "YES" ]]; then + python3 "${code_dir}/build/prebuilts_config.py" $wget_ssl_check $tool_repo $npm_registry $help $cpu $platform $npm_para $disable_rich $enable_symlink $build_arkuix $glibc_version $type $config_file + else + python3 "${code_dir}/build/prebuilts_download.py" $wget_ssl_check $tool_repo $npm_registry $help $cpu $platform $npm_para $disable_rich $enable_symlink $build_arkuix $glibc_version +fi if [ -f "${code_dir}/prebuilts/cmake/linux-${host_cpu_prefix}/bin/ninja" ];then rm -rf "${code_dir}/prebuilts/cmake/linux-${host_cpu_prefix}/bin/ninja" fi diff --git a/prebuilts_download_config.json b/prebuilts_download_config.json deleted file mode 100644 index df0c4362d6..0000000000 --- a/prebuilts_download_config.json +++ /dev/null @@ -1,1002 +0,0 @@ -{ - "download_root": "../openharmony_prebuilts", - "tool_list": [ - { - "name": "node", - "tag": "base", - "type": "src", - "unzip_dir": "${code_dir}/prebuilts/build-tools/common/nodejs", - "config": { - "linux": { - "arm64": [ - { - "remote_url": "/openharmony/compiler/nodejs/v14.21.1/node-v14.21.1-linux-aarch64.tar.gz", - "unzip_filename": "node-v14.21.1-linux-aarch64", - "symlink_src": "${unzip_dir}/node-v14.21.1-linux-aarch64", - "type": "src" - } - ], - "x86_64": [ - { - "remote_url": "/nodejs/v14.21.1/node-v14.21.1-linux-x64.tar.gz", - "unzip_filename": "node-v14.21.1-linux-x64", - "symlink_src": "${unzip_dir}/node-v14.21.1-linux-x64", - "type": "src" - }, - { - "remote_url": "/nodejs/v16.20.2/node-v16.20.2-linux-x64.tar.gz", - "unzip_filename": "node-v16.20.2-linux-x64", - "type": "src" - }, - { - "remote_url": "/nodejs/v18.20.1/node-v18.20.1-linux-x64.tar.gz", - "unzip_filename": "node-v18.20.1-linux-x64", - "type": "src" - } - ] - }, - "darwin": { - "any": [ - { - "remote_url": "/nodejs/v14.21.1/node-v14.21.1-darwin-x64.tar.gz", - "unzip_filename": "node-v14.21.1-darwin-x64", - "symlink_src": "${unzip_dir}/node-v14.21.1-darwin-x64", - "type": "src" - }, - { - "remote_url": "/nodejs/v16.20.2/node-v16.20.2-darwin-x64.tar.gz", - "unzip_filename": "node-v16.20.2-darwin-x64", - "type": "src" - }, - { - "remote_url": "/nodejs/v18.20.1/node-v18.20.1-darwin-x64.tar.gz", - "unzip_filename": "node-v18.20.1-darwin-x64", - "type": "src" - } - ] - } - }, - "handle": [ - { - "type": "symlink", - "src": "${symlink_src}", - "dest": "${code_dir}/prebuilts/build-tools/common/nodejs/current" - } - ] - }, - { - "name": "cmake", - "tag": "base", - "type": "src", - "unzip_dir": "${code_dir}/prebuilts/cmake", - "config": { - "linux": { - "arm64": [ - { - "remote_url": "/openharmony/compiler/cmake/3.28.2/cmake-linux-aarch64-3.28.2-20241210.tar.gz", - "unzip_filename": "linux", - "type": "src" - } - ], - "x86_64": [ - { - "remote_url": "/openharmony/compiler/cmake/3.28.2/cmake-linux-x86-3.28.2.tar.gz", - "unzip_filename": "linux-x86", - "type": "src" - }, - { - "remote_url": "/openharmony/compiler/cmake/3.28.2/cmake-ohos-3.28.2-20240827.tar.gz", - "unzip_filename": "ohos", - "type": "src" - }, - { - "remote_url": "/openharmony/compiler/cmake/3.28.2/cmake-windows-x86-3.28.2.tar.gz", - "unzip_filename": "windows-x86", - "type": "src" - } - ] - }, - "darwin": { - "arm64": [ - { - "remote_url": "/openharmony/compiler/cmake/3.28.2/cmake-darwin-universal-3.28.2.tar.gz", - "unzip_filename": "darwin-universal", - "type": "src" - } - ], - "x86_64": [ - { - "remote_url": "/openharmony/compiler/cmake/3.28.2/cmake-darwin-universal-3.28.2.tar.gz", - "unzip_filename": "darwin-universal", - "type": "src" - } - ] - } - }, - "handle": [] - }, - { - "name": "gn", - "tag": "base", - "type": "src", - "unzip_filename": "gn", - "config": { - "linux": { - "arm64": [ - { - "unzip_dir": "${code_dir}/prebuilts/build-tools/linux-aarch64/bin", - "remote_url": "/openharmony/compiler/gn/20240530/gn-linux-aarch64-20240530.tar.gz" - } - ], - "x86_64": [ - { - "unzip_dir": "${code_dir}/prebuilts/build-tools/linux-x86/bin", - "remote_url": "/openharmony/compiler/gn/20250804/gn-linux-x86-20250804.tar.gz" - } - ] - }, - "darwin": { - "arm64": [ - { - "unzip_dir": "${code_dir}/prebuilts/build-tools/darwin-x86/bin", - "remote_url": "/openharmony/compiler/gn/20250529/gn-darwin-x86-20250529.tar.gz" - } - ], - "x86_64": [ - { - "unzip_dir": "${code_dir}/prebuilts/build-tools/darwin-x86/bin", - "remote_url": "/openharmony/compiler/gn/20250529/gn-darwin-x86-20250529.tar.gz" - } - ] - } - }, - "handle": [] - }, - { - "name": "ninja", - "tag": "base", - "type": "src", - "unzip_filename": "ninja", - "config": { - "linux": { - "arm64": [ - { - "unzip_dir": "${code_dir}/prebuilts/build-tools/linux-aarch64/bin", - "remote_url": "/openharmony/compiler/ninja/1.12.0/linux/ninja-linux-aarch64-1.12.0-20241210.tar.gz" - } - ], - "x86_64": [ - { - "unzip_dir": "${code_dir}/prebuilts/build-tools/ohos/bin", - "remote_url": "/openharmony/compiler/ninja/1.12.0/ohos/ninja-ohos-1.12.0-20240827.tar.gz", - "type": "src" - }, - { - "unzip_dir": "${code_dir}/prebuilts/build-tools/linux-x86/bin", - "remote_url": "/openharmony/compiler/ninja/1.12.0/linux/ninja-linux-x86-1.12.0-20240523.tar.gz", - "type": "src" - }, - { - "unzip_dir": "${code_dir}/prebuilts/build-tools/windows-x86/bin", - "remote_url": "/openharmony/compiler/ninja/1.12.0/windows/ninja-windows-x86-1.12.0-20240523.tar.gz", - "type": "src" - } - ] - }, - "darwin": { - "arm64": [ - { - "unzip_dir": "${code_dir}/prebuilts/build-tools/darwin-x86/bin", - "remote_url": "/openharmony/compiler/ninja/1.12.0/darwin/arm/ninja-darwin-arm-1.12.0-20240829.tar.gz", - "type": "src" - } - ], - "x86_64": [ - { - "unzip_dir": "${code_dir}/prebuilts/build-tools/darwin-x86/bin", - "remote_url": "/openharmony/compiler/ninja/1.12.0/darwin/x86/ninja-darwin-x86-1.12.0-20240829.tar.gz", - "type": "src" - } - ] - } - }, - "handle": [] - }, - { - "name": "ark_js_prebuilts", - "tag": "base", - "type": "src", - "unzip_dir": "${code_dir}/prebuilts/ark_tools", - "unzip_filename": "ark_js_prebuilts", - "config": { - "linux": { - "arm64": [ - { - "remote_url": "/openharmony/compiler/llvm_prebuilt_libs/ark_js_prebuilts_20231215.tar.gz", - "type": "src" - } - ], - "x86_64": [ - { - "remote_url": "/openharmony/compiler/llvm_prebuilt_libs/ark_js_prebuilts_20230713.tar.gz", - "type": "src" - } - ] - }, - "darwin": { - "arm64": [ - { - "remote_url": "/openharmony/compiler/llvm_prebuilt_libs/ark_js_prebuilts_darwin_arm64_20230209.tar.gz", - "type": "src" - } - ], - "x86_64": [ - { - "remote_url": "/openharmony/compiler/llvm_prebuilt_libs/ark_js_prebuilts_darwin_x64_20230209.tar.gz", - "type": "src" - } - ] - } - }, - "handle": [] - }, - { - "name": "packaging_tools", - "tag": "base", - "type": "src", - "unzip_dir": "${code_dir}/prebuilts/packing_tool", - "unzip_filename": "packing_tool", - "config": { - "any": { - "any": [ - { - "remote_url": "/harmonyos/compiler/packing_tool/packing_tool_libs_20250215.zip", - "type": "src" - } - ] - } - }, - "handle": [] - }, - { - "name": "clang", - "tag": "base", - "type": "src", - "unzip_filename": "llvm", - "config": { - "linux": { - "arm64": [ - { - "unzip_dir": "${code_dir}/prebuilts/clang/ohos/linux-aarch64", - "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/linux_aarch64/clang_linux_aarch64-115b62-20250811.tar.gz", - "rename_src": "/prebuilts/clang/ohos/linux-aarch64/clang_linux_aarch64-115b62-20250811", - "type": "src" - } - ], - "x86_64": [ - { - "unzip_dir": "${code_dir}/prebuilts/clang/ohos/ohos-arm64", - "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/ohos_arm64/clang_ohos-arm64-115b62-20250811.tar.gz", - "rename_src": "${code_dir}/prebuilts/clang/ohos/ohos-arm64/clang_ohos-arm64-115b62-20250811", - "type": "src" - }, - { - "unzip_dir": "${code_dir}/prebuilts/clang/ohos/windows-x86_64", - "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/windows/clang_windows-x86_64-115b62-20250811.tar.gz", - "rename_src": "${code_dir}/prebuilts/clang/ohos/windows-x86_64/clang_windows-x86_64-115b62-20250811", - "type": "src" - }, - { - "unzip_dir": "${code_dir}/prebuilts/clang/ohos/linux-x86_64", - "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/linux/clang_linux-x86_64-115b62-20250811.tar.gz", - "rename_src": "${code_dir}/prebuilts/clang/ohos/linux-x86_64/clang_linux-x86_64-115b62-20250811", - "type": "src" - } - ] - }, - "darwin": { - "arm64": [ - { - "unzip_dir": "${code_dir}/prebuilts/clang/ohos/darwin-arm64", - "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/darwin_arm64/clang_darwin-arm64-115b62-20250811.tar.gz", - "rename_src": "${code_dir}/prebuilts/clang/ohos/darwin-arm64/clang_darwin-arm64-115b62-20250811", - "type": "src" - } - ], - "x86_64": [ - { - "unzip_dir": "${code_dir}/prebuilts/clang/ohos/darwin-x86_64", - "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/darwin_x86_64/clang_darwin-x86_64-115b62-20250811.tar.gz", - "rename_src": "${code_dir}/prebuilts/clang/ohos/darwin-arm64/clang_darwin-arm64-115b62-20250811", - "type": "src" - } - ] - } - }, - "handle": [ - { - "type": "move", - "src": "${rename_src}", - "dest": "${unzip_dir}/llvm" - }, - { - "type": "symlink", - "src": "${unzip_dir}/llvm/lib/clang/15.0.4", - "dest": "${unzip_dir}/llvm/lib/clang/current" - } - ] - }, - { - "name": "libcxx-ndk", - "tag": "base", - "type": "src", - "unzip_filename": "libcxx-ndk", - "config": { - "linux": { - "arm64": [ - { - "unzip_dir": "${code_dir}/prebuilts/clang/ohos/linux-aarch64", - "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/linux_aarch64/libcxx-ndk_linux-aarch64-115b62-20250811.tar.gz", - "rename_src": "${unzip_dir}/libcxx-ndk_linux-aarch64-115b62-20250811", - "type": "src" - } - ], - "x86_64": [ - { - "unzip_dir": "${code_dir}/prebuilts/clang/ohos/ohos-arm64", - "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/ohos_arm64/libcxx_ndk_ohos-arm64-115b62-20250811.tar.gz", - "rename_src": "${unzip_dir}/libcxx_ndk_ohos-arm64-115b62-20250811", - "type": "src" - }, - { - "unzip_dir": "${code_dir}/prebuilts/clang/ohos/windows-x86_64", - "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/windows/libcxx-ndk_windows-x86_64-115b62-20250811.tar.gz", - "rename_src": "${unzip_dir}/libcxx-ndk_windows-x86_64-115b62-20250811", - "type": "src" - }, - { - "unzip_dir": "${code_dir}/prebuilts/clang/ohos/linux-x86_64", - "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/linux/libcxx-ndk_linux-x86_64-115b62-20250811.tar.gz", - "rename_src": "${unzip_dir}/libcxx-ndk_linux-x86_64-115b62-20250811", - "type": "src" - } - ] - }, - "darwin": { - "arm64": [ - { - "unzip_dir": "${code_dir}/prebuilts/clang/ohos/darwin-arm64", - "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/darwin_arm64/libcxx-ndk_darwin-arm64-115b62-20250811.tar.gz", - "rename_src": "${unzip_dir}/libcxx-ndk_darwin-arm64-115b62-20250811", - "type": "src" - } - ], - "x86_64": [ - { - "unzip_dir": "${code_dir}/prebuilts/clang/ohos/darwin-x86_64", - "remote_url": "/openharmony/compiler/clang/15.0.4-115b62/darwin_x86_64/libcxx-ndk_darwin-x86_64-115b62-20250811.tar.gz", - "rename_src": "${unzip_dir}/libcxx-ndk_darwin-x86_64-115b62-20250811", - "type": "src" - } - ] - } - }, - "handle": [ - { - "type": "move", - "src": "${rename_src}", - "dest": "${unzip_dir}/libcxx-ndk" - } - ] - }, - { - "name": "gcc", - "tag": "base", - "type": "src", - "config": { - "linux": { - "arm64": [ - { - "unzip_dir": "${code_dir}/prebuilts/gcc/linux-x86/arm/gcc-linaro-7.5.0-arm-linux-gnueabi", - "remote_url": "/openharmony/compiler/prebuilts_gcc_linux-x86_arm_gcc-linaro-7.5.0-arm-linux-gnueabi/1.0/prebuilts_gcc_linux-x86_arm_gcc-linaro-7.5.0-arm-linux-gnueabi.tar.gz", - "unzip_filename": "prebuilts_gcc_linux-x86_arm_gcc-linaro-7.5.0-arm-linux-gnueabi", - "type": "src" - }, - { - "unzip_dir": "${code_dir}/prebuilts/gcc/linux-x86/aarch64", - "remote_url": "/openharmony/compiler/prebuilts_gcc_linux-x86_arm_gcc-linaro-7.5.0-arm-linux-gnueabi/1.0/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu.tar.xz", - "unzip_filename": "gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu", - "type": "src" - } - ], - "x86_64": [ - { - "unzip_dir": "${code_dir}/prebuilts/gcc/linux-x86/arm/gcc-linaro-7.5.0-arm-linux-gnueabi", - "remote_url": "/openharmony/compiler/prebuilts_gcc_linux-x86_arm_gcc-linaro-7.5.0-arm-linux-gnueabi/1.0/prebuilts_gcc_linux-x86_arm_gcc-linaro-7.5.0-arm-linux-gnueabi.tar.gz", - "unzip_filename": "prebuilts_gcc_linux-x86_arm_gcc-linaro-7.5.0-arm-linux-gnueabi", - "rename_src": "${unzip_dir}/${unzip_filename}", - "tmp": "${code_dir}/prebuilts/gcc/linux-x86/arm/gcc-linaro-7.5.0-arm-linux-gnueabi2", - "rename_dest": "${code_dir}/prebuilts/gcc/linux-x86/arm/gcc-linaro-7.5.0-arm-linux-gnueabi", - "type": "src" - }, - { - "unzip_dir": "${code_dir}/prebuilts/gcc/linux-x86/aarch64", - "remote_url": "/openharmony/compiler/prebuilts_gcc_linux-x86_arm_gcc-linaro-7.5.0-arm-linux-gnueabi/1.0/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu.tar.xz", - "unzip_filename": "gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu", - "type": "src" - } - ] - } - }, - "handle": [ - { - "type": "move", - "src": "${rename_src}", - "dest": "${tmp}" - }, - { - "type": "move", - "filetype": "mark", - "src": "${rename_dest}", - "dest": "${tmp}" - }, - { - "type": "remove", - "path": "${rename_dest}" - }, - { - "type": "move", - "src": "${tmp}", - "dest": "${rename_dest}" - } - ] - }, - { - "name": "taihe", - "tag": "base", - "type": "src", - "unzip_filename": "taihe", - "config": { - "linux": { - "arm64": [ - { - "unzip_dir": "${code_dir}/prebuilts/taihe/ohos/linux-x86_64", - "remote_url": "/openharmony/compiler/Taihe/0.34.1/taihe-linux-x86_64-v0.34.1-20250623.tar.gz", - "type": "src" - }, - { - "unzip_dir": "${code_dir}/prebuilts/taihe/ohos/windows-x86_64", - "remote_url": "/openharmony/compiler/Taihe/0.34.1/taihe-windows-x86_64-v0.34.1-20250623.tar.gz", - "type": "src" - } - ], - "x86_64": [ - { - "unzip_dir": "${code_dir}/prebuilts/taihe/ohos/linux-x86_64", - "remote_url": "/openharmony/compiler/Taihe/0.34.1/taihe-linux-x86_64-v0.34.1-20250623.tar.gz", - "type": "src" - }, - { - "unzip_dir": "${code_dir}/prebuilts/taihe/ohos/windows-x86_64", - "remote_url": "/openharmony/compiler/Taihe/0.34.1/taihe-windows-x86_64-v0.34.1-20250623.tar.gz", - "type": "src" - } - ] - }, - "darwin": { - "arm64": [ - { - "unzip_dir": "${code_dir}/prebuilts/taihe/ohos/darwin-arm64", - "remote_url": "/openharmony/compiler/Taihe/0.34.1/taihe-darwin-arm64-v0.34.1-20250623.tar.gz", - "type": "src" - } - ], - "x86_64": [ - { - "unzip_dir": "${code_dir}/prebuilts/taihe/ohos/darwin-x86_64", - "remote_url": "/openharmony/compiler/Taihe/0.34.1/taihe-darwin-x86_64-v0.34.1-20250623.tar.gz", - "type": "src" - } - ] - } - }, - "handle": [] - }, - { - "name": "python", - "tag": "base", - "type": "src", - "unzip_dir": "${code_dir}/prebuilts/python", - "config": { - "linux": { - "arm64": [ - { - "remote_url": "/openharmony/compiler/python/3.11.4/linux/python-linux-arm64-3.11.4_20240715.tar.gz", - "unzip_filename": "linux-arm64", - "rename_src": "${code_dir}/prebuilts/python/linux-arm64", - "rename_dest": "${code_dir}/prebuilts/python/linux-aarch64", - "type": "src" - } - ], - "x86_64": [ - { - "remote_url": "/openharmony/compiler/python/3.11.4/linux/python-linux-x86-GLIBC2.27-3.11.4_20250807.tar.gz", - "unzip_filename": "linux-x86", - "type": "src" - }, - { - "remote_url": "/openharmony/compiler/python/3.11.4/windows/python-mingw-x86-3.11.4_20250617.tar.gz", - "unzip_filename": "windows-x86", - "type": "src", - "skip_handle": true - } - ] - }, - "darwin": { - "arm64": [ - { - "remote_url": "/openharmony/compiler/python/3.11.4/darwin/python-darwin-arm64-3.11.4_20250804.tar.gz", - "unzip_filename": "darwin-arm64", - "type": "src" - } - ], - "x86_64": [ - { - "remote_url": "/openharmony/compiler/python/3.11.4/darwin/python-darwin-x86-3.11.4_20250804.tar.gz", - "unzip_filename": "darwin-x86", - "type": "src" - } - ] - } - }, - "handle": [ - { - "type": "move", - "src": "${rename_src}", - "dest": "${rename_dest}" - }, - { - "type": "symlink", - "src": "${unzip_dir}/${unzip_filename}/3.11.4", - "dest": "${unzip_dir}/${unzip_filename}/current" - }, - { - "type": "shell", - "python_path": "${unzip_dir}/${unzip_filename}/current/bin/python3", - "pip_path": "${unzip_dir}/${unzip_filename}/current/bin/pip3", - "cmd": [ - "${python_path}", - "${pip_path}", - "install", - "--trusted-host", - "repo.huaweicloud.com", - "-i", - "http://repo.huaweicloud.com/repository/pypi/simple", - "pyyaml", - "requests>=2.32.1", - "prompt_toolkit==1.0.14", - "asn1crypto", - "cryptography", - "json5==0.9.6" - ] - } - ] - }, - { - "name": "bpftool", - "tag": "base", - "type": "src", - "config": { - "any": { - "arm64": [ - { - "unzip_dir": "${code_dir}/prebuilts/develop_tools", - "remote_url": "/openharmony/develop_tools/bpftool_v5.10.93_20221114.tar.gz", - "unzip_filename": "bpftool", - "type": "src" - } - ], - "x86_64": [ - { - "unzip_dir": "${code_dir}/prebuilts/develop_tools", - "remote_url": "/openharmony/develop_tools/bpftool_v5.10.93_20221114.tar.gz", - "unzip_filename": "bpftool", - "type": "src" - } - ] - } - }, - "handle": [] - }, - { - "name": "pahole", - "tag": "base", - "type": "src", - "config": { - "linux": { - "arm64": [ - { - "unzip_dir": "${code_dir}/prebuilts/develop_tools", - "remote_url": "/openharmony/develop_tools/pahole_v1.21_20221124.tar.gz", - "unzip_filename": "pahole", - "type": "src" - } - ], - "x86_64": [ - { - "unzip_dir": "${code_dir}/prebuilts/develop_tools", - "remote_url": "/openharmony/develop_tools/pahole_v1.21_20221124.tar.gz", - "unzip_filename": "pahole", - "type": "src" - } - ] - } - }, - "handle": [] - }, - { - "name": "rust", - "tag": "base", - "type": "src", - "config": { - "linux": { - "arm64": [ - { - "unzip_dir": "${code_dir}/prebuilts/rustc", - "remote_url": "/openharmony/compiler/rust/20240528/rust-std-nightly-aarch64-unknown-linux-ohos_20240528.tar.gz", - "unzip_filename": "rustc-aarch64-std", - "install_dir": "${unzip_dir}/rust-std-nightly-aarch64-unknown-linux-ohos_20240528", - "destdir": "${code_dir}/prebuilts/rustc/linux-aarch64/current", - "type": "src" - } - ], - "x86_64": [ - { - "unzip_dir": "${code_dir}/prebuilts/rustc", - "remote_url": "/openharmony/compiler/rust/1.72.0-20250515/rust-nightly-x86_64-unknown-linux-gnu.tar.gz", - "unzip_filename": "rustc", - "install_dir": "${unzip_dir}/rust-nightly-x86_64-unknown-linux-gnu", - "destdir": "${code_dir}/prebuilts/rustc/linux-x86_64/current", - "type": "src" - }, - { - "unzip_dir": "${code_dir}/prebuilts/rustc", - "remote_url": "/openharmony/compiler/rust/1.72.0-20250515/rust-std-nightly-aarch64-unknown-linux-ohos.tar.gz", - "unzip_filename": "rustc-aarch64-std", - "install_dir": "${unzip_dir}/rust-std-nightly-aarch64-unknown-linux-ohos", - "destdir": "${code_dir}/prebuilts/rustc/linux-x86_64/current", - "type": "src" - }, - { - "unzip_dir": "${code_dir}/prebuilts/rustc", - "remote_url": "/openharmony/compiler/rust/1.72.0-20250515/rust-std-nightly-armv7-unknown-linux-ohos.tar.gz", - "unzip_filename": "rustc-arm-std", - "install_dir": "${unzip_dir}/rust-std-nightly-armv7-unknown-linux-ohos", - "destdir": "${code_dir}/prebuilts/rustc/linux-x86_64/current", - "type": "src" - }, - { - "unzip_dir": "${code_dir}/prebuilts/rustc", - "remote_url": "/openharmony/compiler/rust/1.72.0-20250515/rust-std-nightly-x86_64-unknown-linux-ohos.tar.gz", - "unzip_filename": "rustc-x86_64-std", - "install_dir": "${unzip_dir}/rust-std-nightly-x86_64-unknown-linux-ohos", - "destdir": "${code_dir}/prebuilts/rustc/linux-x86_64/current", - "type": "src" - }, - { - "unzip_dir": "${code_dir}/prebuilts/rustc", - "remote_url": "/openharmony/compiler/rust/1.72.0-20250515/rust-std-nightly-x86_64-pc-windows-gnullvm.tar.gz", - "unzip_filename": "rustc-x86_64-windows-std", - "install_dir": "${unzip_dir}/rust-std-nightly-x86_64-pc-windows-gnullvm", - "destdir": "${code_dir}/prebuilts/rustc/linux-x86_64/current", - "type": "src" - } - ] - }, - "darwin": { - "arm64": [ - { - "unzip_dir": "${code_dir}/prebuilts/rustc", - "remote_url": "/openharmony/compiler/rust/1.72.0-20250515/rust-nightly-aarch64-apple-darwin.tar.gz", - "unzip_filename": "rustc", - "install_dir": "${unzip_dir}/rust-nightly-aarch64-apple-darwin", - "destdir": "${code_dir}/prebuilts/rustc/darwin-aarch64/current", - "type": "src" - } - ], - "x86_64": [ - { - "unzip_dir": "${code_dir}/prebuilts/rustc", - "remote_url": "/openharmony/compiler/rust/1.72.0-20250515/rust-nightly-x86_64-apple-darwin.tar.gz", - "install_dir": "${unzip_dir}/rust-nightly-x86_64-apple-darwin", - "destdir": "${code_dir}/prebuilts/rustc/darwin-x86_64/current", - "unzip_filename": "rustc", - "type": "src" - } - ] - } - }, - "handle": [ - { - "type": "shell", - "cmd": [ - "${install_dir}/install.sh", - "--prefix=''", - "--destdir=${destdir}" - ] - } - ] - }, - { - "name": "hvigor", - "tag": "base", - "type": "src", - "config": { - "linux": { - "x86_64": [ - { - "unzip_dir": "${code_dir}/prebuilts/tool/command-line-tools", - "remote_url": "/harmonyos/compiler/hvigor/5.0.3.906/command-line-tools.tar", - "unzip_filename": "hvigor", - "type": "src" - } - ] - } - }, - "handle": [] - }, - { - "name": "ark_tools_llvm_aot", - "tag": "base", - "type": "src", - "config": { - "linux": { - "x86_64": [ - { - "unzip_dir": "${code_dir}/prebuilts/ark_tools/llvm_aot/aot_x86_release", - "remote_url": "/harmonyos/compiler/clang/15.0.4-0d8b9c-ark/llvm-15.0.4-ark18-release-x86_64.tar.xz", - "unzip_filename": "llvm_aot_x86_release", - "type": "src" - }, - { - "unzip_dir": "${code_dir}/prebuilts/ark_tools/llvm_aot/aot_x86_debug", - "remote_url": "/harmonyos/compiler/clang/15.0.4-0d8b9c-ark/llvm-15.0.4-ark18-debug-x86_64.tar.xz", - "unzip_filename": "llvm_aot_x86_debug", - "type": "src" - }, - { - "unzip_dir": "${code_dir}/prebuilts/ark_tools/llvm_aot/aot_aarch64_release", - "remote_url": "/harmonyos/compiler/clang/15.0.4-0d8b9c-ark/llvm-15.0.4-ark18-release-aarch64.tar.xz", - "unzip_filename": "llvm_aot_aarch64_release", - "type": "src" - }, - { - "unzip_dir": "${code_dir}/prebuilts/ark_tools/llvm_aot/aot_aarch64_debug", - "remote_url": "/harmonyos/compiler/clang/15.0.4-0d8b9c-ark/llvm-15.0.4-ark18-debug-aarch64.tar.xz", - "unzip_filename": "llvm_aot_aarch64_debug", - "type": "src" - }, - { - "unzip_dir": "${code_dir}/prebuilts/ark_tools/llvm_aot/aot_ohos_release", - "remote_url": "/harmonyos/compiler/clang/15.0.4-0d8b9c-ark/llvm-15.0.4-ark18-release-ohos.tar.xz", - "unzip_filename": "llvm_aot_ohos_release", - "type": "src" - }, - { - "unzip_dir": "${code_dir}/prebuilts/ark_tools/llvm_aot/aot_gn_ohos", - "remote_url": "/harmonyos/compiler/clang/15.0.4-0d8b9c-ark/llvm-15.0.4-ark18-release-ohos-gn_20250306.tar.xz", - "unzip_filename": "llvm_aot_gn_ohos_release", - "type": "src" - } - ] - } - }, - "handle": [] - }, - { - "name": "mingw", - "tag": "base", - "type": "src", - "config": { - "linux": { - "x86_64": [ - { - "unzip_dir": "${code_dir}/prebuilts/mingw-w64/ohos/linux-x86_64", - "remote_url": "/openharmony/compiler/mingw-w64/11.0.1/clang-mingw-20240510.tar.gz", - "unzip_filename": "clang-mingw", - "type": "src" - } - ] - } - }, - "handle": [] - }, - { - "name": "cangjie", - "tag": "base", - "type": "src", - "config": { - "linux": { - "x86_64": [ - { - "unzip_dir": "${code_dir}/prebuilts/cangjie_sdk/linux-x64", - "remote_url": "/openharmony/compiler/cangjie/1.0.0/cangjie-linux-x64-1.0.0.zip", - "unzip_filename": "cangjie-linux-x64", - "type": "src" - }, - { - "unzip_dir": "${code_dir}/prebuilts/cangjie_sdk/windows-x64", - "remote_url": "/openharmony/compiler/cangjie/1.0.0/cangjie-windows-x64-1.0.0.zip", - "unzip_filename": "cangjie-windows-x64", - "type": "src" - }, - { - "unzip_dir": "${code_dir}/prebuilts/cangjie_sdk/build-tools", - "remote_url": "/openharmony/compiler/cangjie/1.0.0/cangjie-api-tools-1.0.0.zip", - "unzip_filename": "cangjie-api-tools", - "type": "src" - } - ] - }, - "darwin": { - "arm64": [ - { - "unzip_dir": "${code_dir}/prebuilts/cangjie_sdk/mac-aarch64", - "remote_url": "/openharmony/compiler/cangjie/1.0.0/cangjie-mac-aarch64-1.0.0.zip", - "unzip_filename": "cangjie-mac-aarch64", - "type": "src" - }, - { - "unzip_dir": "${code_dir}/prebuilts/cangjie_sdk/build-tools", - "remote_url": "/openharmony/compiler/cangjie/1.0.0/cangjie-api-tools-1.0.0.zip", - "unzip_filename": "cangjie-api-tools", - "type": "src" - } - ], - "x86_64": [ - { - "unzip_dir": "${code_dir}/prebuilts/cangjie_sdk/mac-x64", - "remote_url": "/openharmony/compiler/cangjie/1.0.0/cangjie-mac-x64-1.0.0.zip", - "unzip_filename": "cangjie-mac-x64", - "type": "src" - }, - { - "unzip_dir": "${code_dir}/prebuilts/cangjie_sdk/build-tools", - "remote_url": "/openharmony/compiler/cangjie/1.0.0/cangjie-api-tools-1.0.0.zip", - "unzip_filename": "cangjie-api-tools", - "type": "src" - } - ] - } - }, - "handle": [] - }, - { - "name": "python_llvm", - "tag": "base", - "type": "src", - "config": { - "linux": { - "x86_64": [ - { - "unzip_dir": "${code_dir}/prebuilts/python_llvm", - "remote_url": "/openharmony/compiler/python/3.11.4/linux/python-linux-arm64-3.11.4_20240715.tar.gz", - "unzip_filename": "linux-arm64", - "type": "src" - }, - { - "unzip_dir": "${code_dir}/prebuilts/python_llvm", - "remote_url": "/openharmony/compiler/python/3.11.4/linux/python-linux-x86-GLIBC2.27-3.11.4_20250807.tar.gz", - "unzip_filename": "linux-x86", - "type": "src" - }, - { - "unzip_dir": "${code_dir}/prebuilts/python_llvm", - "remote_url": "/openharmony/compiler/python/3.11.4/windows/python-mingw-x86-3.11.4_20250617.tar.gz", - "unzip_filename": "windows-x86", - "type": "src" - } - ] - }, - "darwin": { - "arm64": [ - { - "unzip_dir": "${code_dir}/prebuilts/python_llvm", - "remote_url": "/openharmony/compiler/python/3.11.4/darwin/python-darwin-arm64-3.11.4_20250804.tar.gz", - "unzip_filename": "darwin-arm64", - "type": "src" - } - ], - "x86_64": [ - { - "unzip_dir": "${code_dir}/prebuilts/python_llvm", - "remote_url": "/openharmony/compiler/python/3.11.4/darwin/python-darwin-x86-3.11.4_20250804.tar.gz", - "unzip_filename": "darwin-x86", - "type": "src" - } - ] - } - }, - "handle": [] - }, - { - "name": "npm_install", - "tag": "npm_install", - "type": "src", - "handle": [ - { - "type": "npm_install", - "npm_install_path": [ - "${code_dir}/developtools/ace_ets2bundle/compiler", - "${code_dir}/developtools/ace_js2bundle/ace-loader", - "${code_dir}/third_party/jsframework", - "${code_dir}/third_party/parse5/packages/parse5", - "${code_dir}/third_party/weex-loader", - "${code_dir}/arkcompiler/ets_frontend/legacy_bin/api8", - "${code_dir}/interface/sdk-js/build-tools", - "${code_dir}/arkcompiler/ets_frontend/arkguard", - "${code_dir}/arkcompiler/ets_frontend/ets2panda/driver/build_system", - "${code_dir}/arkcompiler/ets_frontend/ets2panda/linter", - "${code_dir}/arkcompiler/ets_frontend/ets2panda/bindings", - "${code_dir}/arkcompiler/runtime_core/static_core/plugins/ets/tools/declgen_ts2sts", - "${code_dir}/developtools/ace_ets2bundle/koala-wrapper", - "${code_dir}/developtools/ace_ets2bundle/arkui-plugins" - ] - } - ] - }, - { - "name": "node_modules_copy", - "tag": "npm_install", - "type": "src", - "handle": [ - { - "type": "node_modules_copy", - "copy_list": [ - { - "src": "${code_dir}/third_party/jsframework/node_modules", - "dest": "${code_dir}/prebuilts/build-tools/common/js-framework/node_modules", - "use_symlink": "True" - }, - { - "src": "${code_dir}/arkcompiler/ets_frontend/legacy_bin/api8/node_modules", - "dest": "${code_dir}/prebuilts/build-tools/common/ts2abc/node_modules", - "use_symlink": "True" - }, - { - "src": "${code_dir}/test/testfwk/arkxtest/jsunit", - "dest": "${code_dir}/developtools/ace_ets2bundle/compiler/node_modules/@ohos/hypium", - "use_symlink": "False" - }, - { - "src": "${code_dir}/test/testfwk/arkxtest/jsunit", - "dest": "${code_dir}/developtools/ace_js2bundle/ace-loader/node_modules/@ohos/hypium", - "use_symlink": "False" - }, - { - "src": "${code_dir}/test/testfwk/arkxtest/jsunit/", - "dest": "${code_dir}/developtools/ace_ets2bundle/compiler/node_modules/hypium/", - "use_symlink": "False" - }, - { - "src": "${code_dir}/test/testfwk/arkxtest/jsunit/", - "dest": "${code_dir}/developtools/ace_js2bundle/ace-loader/node_modules/hypium/", - "use_symlink": "False" - } - ] - } - ] - }, - { - "name": "uninstalled_tools", - "tag": "uninstalled_tools", - "type": "src", - "handle": [ - { - "type": "remove", - "path": "prebuilts/build-tools/common/restool" - } - ] - } - ] -} \ No newline at end of file diff --git a/prebuilts_service/config_parser.py b/prebuilts_service/config_parser.py index 3998a57cbb..bae4ff3209 100644 --- a/prebuilts_service/config_parser.py +++ b/prebuilts_service/config_parser.py @@ -28,7 +28,7 @@ class ConfigParser: self.input_type = global_args.type self.global_config = { "code_dir": global_args.code_dir, - "download_root": self.data["download_root"] + "download_root": self.data["download_root"].get(self.input_type) } self._parse_global_config() -- Gitee From 885f74e6cf4bfe8f8a65cbe28b1c804efb9dbe5d Mon Sep 17 00:00:00 2001 From: zhaohang Date: Thu, 11 Sep 2025 17:05:17 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E5=88=A0=E9=99=A4hvigor=E7=9A=84handle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhaohang --- prebuilts_config.json | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/prebuilts_config.json b/prebuilts_config.json index 608de7c91e..fe4f650ce4 100644 --- a/prebuilts_config.json +++ b/prebuilts_config.json @@ -736,16 +736,7 @@ } ] } - }, - "handle": [ - { - "type": "shell", - "cmd": [ - "/bin/bash", - "${code_dir}/build/prebuilts_service/shell/init_ohpm.sh" - ] - } - ] + } }, { "name": "ark_tools_llvm_aot", -- Gitee From e65ff5af0c475b8ffe78a4c9c69aa8401ab8a92a Mon Sep 17 00:00:00 2001 From: zhaohang Date: Fri, 12 Sep 2025 10:10:17 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E5=A4=84=E7=90=86mac=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhaohang --- prebuilts_config.sh | 17 +++++++++++++++++ prebuilts_download.sh | 18 ++++++++++++++++++ 2 files changed, 35 insertions(+) diff --git a/prebuilts_config.sh b/prebuilts_config.sh index 06dddfe748..8cd2b9acc8 100644 --- a/prebuilts_config.sh +++ b/prebuilts_config.sh @@ -111,6 +111,17 @@ else trusted_host='repo.huaweicloud.com' fi +set +e +python3 -m venv oh_venv +if [ $? -ne 0 ]; then + echo "create venv failed. ignore it." + USE_VENV=1 + else + USE_VENV=0 + source oh_venv/bin/activate + pip3 install --upgrade pip +fi +set -e if [[ -v args["--disable-rich"] ]]; then disable_rich='--disable-rich' @@ -133,6 +144,12 @@ fi type="--type indep" pip3 install --trusted-host $trusted_host -i $pypi_url requests python3 "${script_path}/prebuilts_config.py" $glibc_version --config-file $config_file --host-platform $host_platform --host-cpu $host_cpu $disable_rich $part_names $type + +if [ $USE_VENV -eq 0 ]; then + deactivate + rm -rf oh_venv +fi + PYTHON_PATH=$(realpath $code_dir/prebuilts/python/${host_platform}-${host_cpu_prefix}/*/bin | tail -1) if [[ -v args["--download-sdk"] ]]; then diff --git a/prebuilts_download.sh b/prebuilts_download.sh index 2cdfe92733..0771a26782 100755 --- a/prebuilts_download.sh +++ b/prebuilts_download.sh @@ -160,6 +160,18 @@ else build_arkuix='' fi +set +e +python3 -m venv oh_venv +if [ $? -ne 0 ]; then + echo "create venv failed. ignore it." + USE_VENV=1 + else + USE_VENV=0 + source oh_venv/bin/activate + pip3 install --upgrade pip +fi +set -e + if [ "X${DISABLE_RICH}" == "XYES" ];then disable_rich='--disable-rich' else @@ -193,6 +205,12 @@ if [[ "${BUILD_ARKUIX}" != "YES" ]]; then else python3 "${code_dir}/build/prebuilts_download.py" $wget_ssl_check $tool_repo $npm_registry $help $cpu $platform $npm_para $disable_rich $enable_symlink $build_arkuix $glibc_version fi + +if [ $USE_VENV -eq 0 ]; then + deactivate + rm -rf oh_venv +fi + if [ -f "${code_dir}/prebuilts/cmake/linux-${host_cpu_prefix}/bin/ninja" ];then rm -rf "${code_dir}/prebuilts/cmake/linux-${host_cpu_prefix}/bin/ninja" fi -- Gitee