Browse Source

build: fresh_clone: turns out we can just clone from a local dir :P

this saves us some network requests, and reduces trust in github
patch-4
SomberNight 4 years ago
parent
commit
0842f4977b
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 10
      contrib/android/Readme.md
  2. 10
      contrib/build-linux/sdist/README.md
  3. 11
      contrib/build-wine/README.md
  4. 33
      contrib/release.sh

10
contrib/android/Readme.md

@ -33,13 +33,11 @@ folder.
(but you can skip this if reproducibility is not necessary).
```
$ FRESH_CLONE=contrib/android/fresh_clone && \
sudo rm -rf $FRESH_CLONE && \
$ FRESH_CLONE="contrib/android/fresh_clone/electrum" && \
sudo rm -rf "$FRESH_CLONE" && \
umask 0022 && \
mkdir -p $FRESH_CLONE && \
cd $FRESH_CLONE && \
git clone https://github.com/spesmilo/electrum.git && \
cd electrum
git clone . "$FRESH_CLONE" && \
cd "$FRESH_CLONE"
```
And then build from this directory:

10
contrib/build-linux/sdist/README.md

@ -29,13 +29,11 @@ folder.
(but you can skip this if reproducibility is not necessary).
```
$ FRESH_CLONE=contrib/build-linux/sdist/fresh_clone && \
sudo rm -rf $FRESH_CLONE && \
$ FRESH_CLONE="contrib/build-linux/sdist/fresh_clone/electrum" && \
sudo rm -rf "$FRESH_CLONE" && \
umask 0022 && \
mkdir -p $FRESH_CLONE && \
cd $FRESH_CLONE && \
git clone https://github.com/spesmilo/electrum.git && \
cd electrum
git clone . "$FRESH_CLONE" && \
cd "$FRESH_CLONE"
```
And then build from this directory:

11
contrib/build-wine/README.md

@ -35,12 +35,11 @@ folder.
(but you can skip this if reproducibility is not necessary).
```
$ FRESH_CLONE=contrib/build-wine/fresh_clone && \
sudo rm -rf $FRESH_CLONE && \
mkdir -p $FRESH_CLONE && \
cd $FRESH_CLONE && \
git clone https://github.com/spesmilo/electrum.git && \
cd electrum
$ FRESH_CLONE="contrib/build-wine/fresh_clone/electrum" && \
sudo rm -rf "$FRESH_CLONE" && \
umask 0022 && \
git clone . "$FRESH_CLONE" && \
cd "$FRESH_CLONE"
```
And then build from this directory:

33
contrib/release.sh

@ -37,13 +37,11 @@ if test -f dist/$target; then
else
pushd .
sudo docker build -t electrum-sdist-builder-img contrib/build-linux/sdist
FRESH_CLONE=contrib/build-linux/sdist/fresh_clone && \
sudo rm -rf $FRESH_CLONE && \
umask 0022 && \
mkdir -p $FRESH_CLONE && \
cd $FRESH_CLONE && \
git clone https://github.com/spesmilo/electrum.git &&\
cd electrum
FRESH_CLONE="contrib/build-linux/sdist/fresh_clone/electrum" && \
sudo rm -rf "$FRESH_CLONE" && \
umask 0022 && \
git clone . "$FRESH_CLONE" && \
cd "$FRESH_CLONE"
git checkout "${COMMIT}^{commit}"
sudo docker run -it \
--name electrum-sdist-builder-cont \
@ -83,12 +81,11 @@ if test -f dist/$target; then
echo "file exists: $target"
else
pushd .
FRESH_CLONE=contrib/build-wine/fresh_clone && \
sudo rm -rf $FRESH_CLONE && \
mkdir -p $FRESH_CLONE && \
cd $FRESH_CLONE && \
git clone https://github.com/spesmilo/electrum.git && \
cd electrum
FRESH_CLONE="contrib/build-wine/fresh_clone/electrum" && \
sudo rm -rf "$FRESH_CLONE" && \
umask 0022 && \
git clone . "$FRESH_CLONE" && \
cd "$FRESH_CLONE"
git checkout "${COMMIT}^{commit}"
sudo docker run -it \
--name electrum-wine-builder-cont \
@ -113,13 +110,11 @@ if test -f dist/$target1; then
else
pushd .
./contrib/android/build_docker_image.sh
FRESH_CLONE=contrib/android/fresh_clone && \
sudo rm -rf $FRESH_CLONE && \
FRESH_CLONE="contrib/android/fresh_clone/electrum" && \
sudo rm -rf "$FRESH_CLONE" && \
umask 0022 && \
mkdir -p $FRESH_CLONE && \
cd $FRESH_CLONE && \
git clone https://github.com/spesmilo/electrum.git && \
cd electrum
git clone . "$FRESH_CLONE" && \
cd "$FRESH_CLONE"
git checkout "${COMMIT}^{commit}"
mkdir --parents $PWD/.buildozer/.gradle
sudo docker run -it --rm \

Loading…
Cancel
Save