|
|
@ -7,6 +7,7 @@ branch="Stable" |
|
|
|
lastest_cronet_version=`curl -s "https://chromiumdash.appspot.com/fetch_releases?channel=$branch&platform=Android&num=1&offset=0" | jq .[0].version -r` |
|
|
|
lastest_cronet_version=`curl -s "https://chromiumdash.appspot.com/fetch_releases?channel=$branch&platform=Android&num=1&offset=0" | jq .[0].version -r` |
|
|
|
echo "lastest_cronet_version: $lastest_cronet_version" |
|
|
|
echo "lastest_cronet_version: $lastest_cronet_version" |
|
|
|
#lastest_cronet_version=100.0.4845.0 |
|
|
|
#lastest_cronet_version=100.0.4845.0 |
|
|
|
|
|
|
|
lastest_cronet_main_version=${lastest_cronet_version%%\.*}.0.0.0 |
|
|
|
|
|
|
|
|
|
|
|
function checkVersionExit() { |
|
|
|
function checkVersionExit() { |
|
|
|
local jar_url="https://storage.googleapis.com/chromium-cronet/android/$lastest_cronet_version/Release/cronet/cronet_api.jar" |
|
|
|
local jar_url="https://storage.googleapis.com/chromium-cronet/android/$lastest_cronet_version/Release/cronet/cronet_api.jar" |
|
|
@ -26,6 +27,7 @@ if [[ $current_cronet_version == $lastest_cronet_version ]];then |
|
|
|
else |
|
|
|
else |
|
|
|
checkVersionExit |
|
|
|
checkVersionExit |
|
|
|
sed -i s/CronetVersion=.*/CronetVersion=$lastest_cronet_version/ $path |
|
|
|
sed -i s/CronetVersion=.*/CronetVersion=$lastest_cronet_version/ $path |
|
|
|
|
|
|
|
sed -i s/CronetMainVersion=.*/CronetMainVersion=$lastest_cronet_main_version/ $path |
|
|
|
sed "15a* 更新cronet: $lastest_cronet_version" -i $GITHUB_WORKSPACE/app/src/main/assets/updateLog.md |
|
|
|
sed "15a* 更新cronet: $lastest_cronet_version" -i $GITHUB_WORKSPACE/app/src/main/assets/updateLog.md |
|
|
|
echo "start download latest cronet" |
|
|
|
echo "start download latest cronet" |
|
|
|
chmod +x gradlew |
|
|
|
chmod +x gradlew |
|
|
|