Guide For Compiling Just Latest Release ?

Discussion in 'Questions' started by arcos, Mar 30, 2017.

  1. 2017/12/15 - Decred v1.1.2 released! → Release Notes  → Downloads
  1. arcos

    arcos New Member

    Mar 29, 2017
    3
    0
    USA
    #1 arcos, Mar 30, 2017
    Last edited: Mar 30, 2017
    I want to compile the release version.

    I read the readme's on github and it just talks about compiling dcrd, dcrwallet, and dcrctl separately and downloading direct from latest code (not release version).

    I remember somewhere that you can somehow specify at what point (tag? commit link?) from github you want to download from... or how do I git get just the release version???

    I also saw there is info on compiling the installer, but that's not what I want.

    Do I just download the release source .zip file , and compile that somehow?

    Thanks.
     
  2. davecgh

    davecgh Hero Member
    Developer Organizer

    Dec 31, 2015
    642
    788
    Male
    United States
    I don't think there is a guide anywhere, but basically you follow the same instructions for building the latest code except you checkout the appropriate git tags in the various repos.

    So, before you run the
    Code:
    glide install
    step, you would just do
    Code:
    git checkout v0.8.2
     
  3. jcv

    jcv Full Member
    Developer

    As davec said, the releases are just compiled from a tag. The script I use for the cross compiling is in https://github.com/decred/decred-binaries but unless you are planning on building for systems other than the one you are on, you probably don't need that.
     
    Shadowlance likes this.
  4. arcos

    arcos New Member

    Mar 29, 2017
    3
    0
    USA
    Thank you both. So when I want to update (say v0.8.3), I do this ??:
    Code:
    git pull v0.8.3
    Thanks.
     
  5. davecgh

    davecgh Hero Member
    Developer Organizer

    Dec 31, 2015
    642
    788
    Male
    United States
    Code:
    $ cd $GOPATH/src/github.com/decred/dcrd
    $ git checkout master
    $ git pull
    $ git checkout v0.8.3
    $ glide install
    $ go install . ./cmd/...
    
    Repeat for dcrwallet while changing the directory appropriately.
     
    Shadowlance likes this.

Share This Page