Using github

This commit is contained in:
uazo 2022-08-01 08:28:45 +02:00 committed by GitHub
parent 963ab065f9
commit 406a5d83c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,16 +29,19 @@ gclient root
mkdir ./src mkdir ./src
cd ./src cd ./src
git init #CHR_SOURCE=https://chromium.googlesource.com/chromium/src.git
git remote add origin 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 git checkout $VERSION
VERSION_SHA=$( git show-ref -s $VERSION | head -n1 ) VERSION_SHA=$( git show-ref -s $VERSION | head -n1 )
echo >../.gclient "solutions = [" echo >../.gclient "solutions = ["
echo >>../.gclient " { \"name\" : 'src'," 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 " \"deps_file\" : 'DEPS',"
echo >>../.gclient " \"managed\" : True," echo >>../.gclient " \"managed\" : True,"
echo >>../.gclient " \"custom_deps\" : {" echo >>../.gclient " \"custom_deps\" : {"