1
0

android docker: make_apk optionally takes "release" as arg

This commit is contained in:
SomberNight
2018-11-27 21:35:26 +01:00
parent a34d42492d
commit 243a0e3cf1
3 changed files with 13 additions and 14 deletions

View File

@@ -2,6 +2,8 @@
pushd ./electrum/gui/kivy/ pushd ./electrum/gui/kivy/
make theming
if [[ -n "$1" && "$1" == "release" ]] ; then if [[ -n "$1" && "$1" == "release" ]] ; then
echo -n Keystore Password: echo -n Keystore Password:
read -s password read -s password

View File

@@ -24,22 +24,28 @@ folder.
$ sudo docker build -t electrum-android-builder-img electrum/gui/kivy/tools $ sudo docker build -t electrum-android-builder-img electrum/gui/kivy/tools
``` ```
3. Build binaries 3. Prepare pure python dependencies
``` ```
$ sudo docker run \ $ sudo ./contrib/make_packages
```
4. Build binaries
```
$ sudo docker run -it --rm \
--name electrum-android-builder-cont \ --name electrum-android-builder-cont \
--rm \
-v $PWD:/home/user/wspace/electrum \ -v $PWD:/home/user/wspace/electrum \
-v ~/.keystore:/home/user/.keystore \
--workdir /home/user/wspace/electrum \ --workdir /home/user/wspace/electrum \
electrum-android-builder-img \ electrum-android-builder-img \
./electrum/gui/kivy/tools/build.sh ./contrib/make_apk
``` ```
This mounts the project dir inside the container, This mounts the project dir inside the container,
and so the modifications will affect it, e.g. `.buildozer` folder and so the modifications will affect it, e.g. `.buildozer` folder
will be created. will be created.
4. The generated binary is in `./bin`. 5. The generated binary is in `./bin`.

View File

@@ -1,9 +0,0 @@
#!/usr/bin/env bash
pushd electrum/gui/kivy
make theming
popd
sudo ./contrib/make_packages
./contrib/make_apk