GithubHelp home page GithubHelp logo

ledger-wallet-daemon's Introduction

ledger-wallet-daemon · CircleCI

Updating the libcore

When a new version of the libcore is available, we need to update our bindings.

| Prerequisite | Remarks | | ============================================== | ========================================= | | docker | Only needed if you plan to build in local | | sbt | |

  1. Check out lib core project

    git clone --recurse-submodules --depth 1 --branch <branch_or_version_tag> https://github.com/LedgerHQ/lib-ledger-core
  2. Copy build-jar.sh and build-jar-linux.sh to the lib core project folder

    cp $WALLET_DAEMON_FOLDER/build-jar.sh $LIB_CORE_FOLDER
    cp $WALLET_DAEMON_FOLDER/build-jar-linux.sh $LIB_CORE_FOLDER
  3. cd to lib core folder

    cd $LIB_CORE_FOLDER
  4. Two possible situations: either you want a fresh build from your local machine, or you want to grab the official lib core artifacts.

    1. For building on your machine, run the script build-jar.sh with command: mac, linux or all. MacOS can build both mac and linux. Linux can only build linux.
      # Build for mac only. You may want to do this when developing,
      # it's much faster than build for both mac and linux
      bash build-jar.sh mac
      
      # Build for linux. Linux build is using docker.
      bash build-jar.sh linux
      
      # Build for both mac and linux
      bash build-jar.sh all
    2. For getting the official release, pass an extra argument dl to the command invocation.
      # Get only the mac release artifacts.
      ./build-jar.sh mac dl
      
      # Get only the linux artifacts.
      ./build-jar.sh linux dl
      
      # Get both.
      ./build-jar.sh all dl
  5. Then, you find the jar file in $LIB_CORE_FOLDER/../build-jar/target/scala-<version>/build-jar-<version>.jar. Replace the ledger-lib-core.jar in the lib folder with this file.

    mv $LIB_CORE_FOLDER/../build-jar/target/scala-<version>/build-jar-<version>.jar $WALLET_DAEMON_FOLDER/lib/ledger-lib-core.jar
  6. Push the changes to upstream

  7. Add a tag on the new commit with the version of the ledger-core-lib, or the commit hash if no version was tagged

ledger-wallet-daemon's People

Contributors

alexitc avatar aymeric-ledger avatar drakofukayu avatar dud225 avatar flocks avatar jchampemont avatar luchenyuxx avatar malikfassi avatar phaazon avatar pollastri-pierre avatar thomsh avatar tt810 avatar vnorguet avatar ybadiss avatar zwilla avatar

Stargazers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.