fetch-chromium-release 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #!/bin/bash
  2. set -e
  3. readonly VERSION=$1
  4. if [[ -z $VERSION ]]; then
  5. echo >&2 'No version given as an argument'
  6. exit 1
  7. fi
  8. mkdir chromium-checkout
  9. cd chromium-checkout
  10. cat >.gclient <<EOF
  11. solutions = [
  12. {
  13. "name": "src",
  14. "url": "https://chromium.googlesource.com/chromium/src.git",
  15. "managed": False,
  16. "custom_deps": {},
  17. "custom_vars": {},
  18. },
  19. ]
  20. EOF
  21. git clone --depth=1 https://chromium.googlesource.com/chromium/tools/depot_tools
  22. export PATH+=":$PWD/depot_tools" DEPOT_TOOLS_UPDATE=0
  23. export VPYTHON_BYPASS='manually managed python not supported by chrome operations'
  24. git clone -b $VERSION --depth=2 https://chromium.googlesource.com/chromium/src
  25. gclient sync --no-history --nohooks
  26. src/build/util/lastchange.py -o src/build/util/LASTCHANGE
  27. src/build/util/lastchange.py -m GPU_LISTS_VERSION \
  28. --revision-id-only --header src/gpu/config/gpu_lists_version.h
  29. src/build/util/lastchange.py -m SKIA_COMMIT_HASH \
  30. -s src/third_party/skia --header src/skia/ext/skia_commit_hash.h
  31. src/build/util/lastchange.py \
  32. -s src/third_party/dawn --revision src/gpu/webgpu/DAWN_VERSION
  33. src/tools/update_pgo_profiles.py --target=linux update \
  34. --gs-url-base=chromium-optimization-profiles/pgo_profiles
  35. download_from_google_storage.py --no_resume --extract --no_auth \
  36. --bucket chromium-nodejs -s src/third_party/node/node_modules.tar.gz.sha1
  37. find src/third_party/jdk/current -type f -delete
  38. mv src ../chromium-$VERSION