build: add replace local electron url.
This commit is contained in:
parent
b3b8e4e351
commit
3b48fa3802
3
build.sh
3
build.sh
|
@ -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."
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue