First, make sure the python dependencies are installed:
pip install -r requirements.txt
Next, we will use cookiecutter
and Jolt's cookiecutter app template to
generate a jolt application project.
cookiecutter -c v0.1.3 https://github.com/joltwallet/cookiecutter-joltapp
Follow the onscreen prompts; pressing enter will use the default value. The prompts are described in more detail as below.
app_name
- Name of the app exactly as it should appear on device. Case-sensitive.app_var_name
- Name of app-related variables in code.folder_name
- name of the folder to contain the project.signing_key
- private key to sign your application with. Using the default key here is fine since Jolt will have to sign it with the master private key upon release.coin_path
- The registered coin type for the coin.bip32_key
- The derivation seed string. TypicallyBitcoin seed
ored25519 seed
This cookiecutter performs the following actions or sets up to allow you to perform the following actions:
Git will be initialized and all the files will be commited indicating the cookiecutter version and commit you used.
Build artifacts will already be in the .gitignore
The Makefile will already be populated so that you can immediately build your application. See your app's README for more information.
ESP-IDF style components can be added to the components
directory and will
automatically be detected by the build system.
Use bump2version
to manage your app's version. bump2version
is a maintained
fork of bumpversion
.
pip3 install bump2version
This template already has a .bumpversion.cfg
populated for you. In your project's
clean (no unstaged changes) root directory, the following commands will increase
the version number and commit the version change:
bump2version major # For backwards incompatible changes.
bump2version minor # For backwards compatible feature updates
bump2version patch # For bug fixes
I recommend adding the alias to your ~/.bashrc
alias bumpversion="bump2version"