build: try to consolidate instructions and decr codedupe in release.sh
This commit is contained in:
@@ -6,7 +6,6 @@ AppImage binary for Electrum
|
||||
|
||||
This assumes an Ubuntu host, but it should not be too hard to adapt to another
|
||||
similar system. The host architecture should be x86_64 (amd64).
|
||||
The docker commands should be executed in the project's root folder.
|
||||
|
||||
We currently only build a single AppImage, for x86_64 architecture.
|
||||
Help to adapt these scripts to build for (some flavor of) ARM would be welcome,
|
||||
@@ -22,25 +21,17 @@ see [issue #5159](https://github.com/spesmilo/electrum/issues/5159).
|
||||
$ sudo apt-get install -y docker-ce
|
||||
```
|
||||
|
||||
2. Build image
|
||||
2. Build binary
|
||||
|
||||
```
|
||||
$ sudo docker build -t electrum-appimage-builder-img contrib/build-linux/appimage
|
||||
$ ./build.sh
|
||||
```
|
||||
If you want reproducibility, try instead e.g.:
|
||||
```
|
||||
$ ELECBUILD_COMMIT=HEAD ELECBUILD_NOCACHE=1 ./build.sh
|
||||
```
|
||||
|
||||
3. Build binary
|
||||
|
||||
```
|
||||
$ sudo docker run -it \
|
||||
--name electrum-appimage-builder-cont \
|
||||
-v $PWD:/opt/electrum \
|
||||
--rm \
|
||||
--workdir /opt/electrum/contrib/build-linux/appimage \
|
||||
electrum-appimage-builder-img \
|
||||
./make_appimage.sh
|
||||
```
|
||||
|
||||
4. The generated binary is in `./dist`.
|
||||
3. The generated binary is in `./dist`.
|
||||
|
||||
|
||||
## FAQ
|
||||
|
||||
Reference in New Issue
Block a user