build: add replace local electron url.

This commit is contained in:
wangpenglong 2024-08-02 08:10:11 +00:00
parent b3b8e4e351
commit 3b48fa3802
1 changed files with 3 additions and 0 deletions

View File

@ -69,6 +69,9 @@ function replace_url() {
sed -i "s#${sysrootJSONUrl}#${sysrootJSONUrl_local}#g" ${install_sysroot_file}
sed -i "s/https/http/g" ${install_sysroot_file}
done
echo "electron_mirror=http://127.0.0.1:9099/electron/" > .npmrc
ELECTRON_URL="https://electronjs.org"
sed -i "s#${ELECTRON_URL}#${URL_PREFIX_local}#g" .yarnrc
echo "[done] replace local url end."
}