From 406a5d83c259866ef6e0b296f4e2b8f90d510834 Mon Sep 17 00:00:00 2001 From: uazo <29201891+uazo@users.noreply.github.com> Date: Mon, 1 Aug 2022 08:28:45 +0200 Subject: [PATCH] Using github --- images/chr-source/prepare-build.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/images/chr-source/prepare-build.sh b/images/chr-source/prepare-build.sh index 77d496d..437a267 100644 --- a/images/chr-source/prepare-build.sh +++ b/images/chr-source/prepare-build.sh @@ -29,16 +29,19 @@ gclient root mkdir ./src cd ./src -git init -git remote add origin https://chromium.googlesource.com/chromium/src.git +#CHR_SOURCE=https://chromium.googlesource.com/chromium/src.git +CHR_SOURCE=https://github.com/chromium/chromium.git -git fetch --depth 2 https://chromium.googlesource.com/chromium/src.git +refs/tags/$VERSION:chromium_$VERSION +git init +git remote add origin $CHR_SOURCE + +git fetch --depth 2 $CHR_SOURCE +refs/tags/$VERSION:chromium_$VERSION git checkout $VERSION VERSION_SHA=$( git show-ref -s $VERSION | head -n1 ) echo >../.gclient "solutions = [" echo >>../.gclient " { \"name\" : 'src'," -echo >>../.gclient " \"url\" : 'https://chromium.googlesource.com/chromium/src.git@$VERSION_SHA'," +echo >>../.gclient " \"url\" : '$CHR_SOURCE@$VERSION_SHA'," echo >>../.gclient " \"deps_file\" : 'DEPS'," echo >>../.gclient " \"managed\" : True," echo >>../.gclient " \"custom_deps\" : {"