contrib/make_tgz: small improvements. (#5040)
This commit is contained in:
@@ -1,11 +1,31 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
contrib=$(dirname "$0")
|
set -e
|
||||||
packages="$contrib"/../packages/
|
|
||||||
|
|
||||||
if [ ! -d "$packages" ]; then
|
CONTRIB="$(dirname "$(readlink -e "$0")")"
|
||||||
echo "Run make_packages first!"
|
ROOT_FOLDER="$CONTRIB"/..
|
||||||
exit 1
|
PACKAGES="$ROOT_FOLDER"/packages/
|
||||||
fi
|
LOCALE="$ROOT_FOLDER"/electrum/locale/
|
||||||
|
|
||||||
python3 setup.py sdist --format=zip,gztar
|
(
|
||||||
|
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: >>>"
|
||||||
|
git clean -fx --dry-run
|
||||||
|
echo "<<<"
|
||||||
|
|
||||||
|
# we could build the kivy atlas potentially?
|
||||||
|
#(cd electrum/gui/kivy/; make theming) || echo "building kivy atlas failed! skipping."
|
||||||
|
|
||||||
|
python3 setup.py --quiet sdist --format=zip,gztar
|
||||||
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user