How to checkout and BUILD specific chromium tag/branch without download the FULL source code of all history?

前端 未结 1 1706
深忆病人
深忆病人 2021-01-19 05:32

I don\'t want build master branch. Instead I would like to build a specific tag which the latest stable release as same as my Desktop Chrome.

相关标签:
1条回答
  • 2021-01-19 06:21

    This is probably the fastest way to fetch Chromium's source code. Suppose 59.0.3071.115 is the version of Chromium, you wish to build. You run this command:

    git fetch https://chromium.googlesource.com/chromium/src.git +refs/tags/59.0.3071.115:chromium_59.0.3071.115
    

    If you don't want the history to be fetched (faster fetching of Chromium source code):

    git fetch https://chromium.googlesource.com/chromium/src.git +refs/tags/59.0.3071.115:chromium_59.0.3071.115 --depth 1
    

    Now from your Chromium repo, use the following command to show a list of tags available

    git tag
    

    You have to checkout that tag by running

    git checkout tags/59.0.3071.115
    

    Then run these commands in the order listed below to pull all the third-party dependencies:

    gclient sync
    gclient sync --with_branch_heads
    gclient runhooks
    

    You can find the dev, beta, canary, latest and stable version info of Chromium from this page: https://www.chromium.org/developers/calendar

    Now, you should be able to build Chromium. Let me know, if it works

    0 讨论(0)
提交回复
热议问题