mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-01 09:45:18 +00:00
kivy build: test and document that make_locale is to be run first
This commit is contained in:
parent
6fb974227b
commit
ba08b2279d
4 changed files with 40 additions and 17 deletions
|
@ -1,5 +1,22 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
CONTRIB="$(dirname "$(readlink -e "$0")")"
|
||||||
|
ROOT_FOLDER="$CONTRIB"/..
|
||||||
|
PACKAGES="$ROOT_FOLDER"/packages/
|
||||||
|
LOCALE="$ROOT_FOLDER"/electrum/locale/
|
||||||
|
|
||||||
|
if [ ! -d "$LOCALE" ]; then
|
||||||
|
echo "Run make_locale first!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -d "$PACKAGES" ]; then
|
||||||
|
echo "Run make_packages first!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
pushd ./electrum/gui/kivy/
|
pushd ./electrum/gui/kivy/
|
||||||
|
|
||||||
make theming
|
make theming
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
contrib=$(dirname "$0")
|
CONTRIB="$(dirname "$0")"
|
||||||
test -n "$contrib" -a -d "$contrib" || exit
|
test -n "$CONTRIB" -a -d "$CONTRIB" || exit
|
||||||
|
|
||||||
rm "$contrib"/../packages/ -r
|
rm "$CONTRIB"/../packages/ -r
|
||||||
|
|
||||||
#Install pure python modules in electrum directory
|
#Install pure python modules in electrum directory
|
||||||
python3 -m pip install -r $contrib/deterministic-build/requirements.txt -t $contrib/../packages
|
python3 -m pip install -r "$CONTRIB"/deterministic-build/requirements.txt -t "$CONTRIB"/../packages
|
||||||
|
|
||||||
|
|
|
@ -7,19 +7,19 @@ ROOT_FOLDER="$CONTRIB"/..
|
||||||
PACKAGES="$ROOT_FOLDER"/packages/
|
PACKAGES="$ROOT_FOLDER"/packages/
|
||||||
LOCALE="$ROOT_FOLDER"/electrum/locale/
|
LOCALE="$ROOT_FOLDER"/electrum/locale/
|
||||||
|
|
||||||
|
if [ ! -d "$LOCALE" ]; then
|
||||||
|
echo "Run make_locale first!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -d "$PACKAGES" ]; then
|
||||||
|
echo "Run make_packages first!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
(
|
(
|
||||||
cd "$ROOT_FOLDER"
|
cd "$ROOT_FOLDER"
|
||||||
|
|
||||||
if [ ! -d "$LOCALE" ]; then
|
|
||||||
echo "Run make_locale first!"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -d "$PACKAGES" ]; then
|
|
||||||
echo "Run make_packages first!"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "'git clean -fx' would delete the following files: >>>"
|
echo "'git clean -fx' would delete the following files: >>>"
|
||||||
git clean -fx --dry-run
|
git clean -fx --dry-run
|
||||||
echo "<<<"
|
echo "<<<"
|
||||||
|
|
|
@ -24,13 +24,19 @@ 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. Prepare pure python dependencies
|
3. Build locale files
|
||||||
|
|
||||||
```
|
```
|
||||||
$ sudo ./contrib/make_packages
|
$ ./contrib/make_locale
|
||||||
```
|
```
|
||||||
|
|
||||||
4. Build binaries
|
4. Prepare pure python dependencies
|
||||||
|
|
||||||
|
```
|
||||||
|
$ ./contrib/make_packages
|
||||||
|
```
|
||||||
|
|
||||||
|
5. Build binaries
|
||||||
|
|
||||||
```
|
```
|
||||||
$ sudo docker run -it --rm \
|
$ sudo docker run -it --rm \
|
||||||
|
|
Loading…
Add table
Reference in a new issue