mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-04 21:36:45 +00:00
Add git pull & git submodule update --checkout
This commit is contained in:
parent
73d9cd2e68
commit
cd96fc1daa
1 changed files with 21 additions and 3 deletions
|
@ -79,16 +79,34 @@ sudo apt install -y rpm fakeroot binutils
|
||||||
|
|
||||||
### Building the binaries
|
### Building the binaries
|
||||||
|
|
||||||
The project can cloned for a specific release tag as follows:
|
First, assign a temporary variabel in your shell for the specific release you want to build. For the current one specify:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
GIT_TAG="1.7.0"
|
GIT_TAG="1.7.0"
|
||||||
|
```
|
||||||
|
|
||||||
|
The project can then be initially cloned as follows:
|
||||||
|
|
||||||
|
```shell
|
||||||
git clone --recursive --branch "${GIT_TAG}" https://github.com/sparrowwallet/sparrow.git
|
git clone --recursive --branch "${GIT_TAG}" https://github.com/sparrowwallet/sparrow.git
|
||||||
```
|
```
|
||||||
|
|
||||||
Thereafter, building should be straightforward:
|
If you already have the sparrow repo cloned, fetch all new updates and checkout the release. For this, change into your local sparrow folder and execute:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
git pull --recurse-submodules
|
||||||
|
git checkout "${GIT_TAG}"
|
||||||
|
```
|
||||||
|
|
||||||
|
Note - there is an additional step if you updated rather then intitally cloned the repo. This is due to the [drongo submodule](https://github.com/sparrowwallet/drongo/tree/master) which needs to be synchronized (back) to the commit state it had at the time of the release. Only then your build will be comparable to the provided one in the release section of Github. To synchronize, additionally run:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
git submodule update --checkout
|
||||||
|
```
|
||||||
|
|
||||||
|
Thereafter, building should be straightforward. If not already done, change into the sparrow folder and run:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
cd sparrow
|
|
||||||
./gradlew jpackage
|
./gradlew jpackage
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue