2015-05-15 16:15:49 -04:00
|
|
|
#!/bin/bash
|
2014-06-10 00:17:02 -04:00
|
|
|
|
2015-05-15 16:03:04 -04:00
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )"
|
|
|
|
cd $DIR
|
|
|
|
|
2017-02-21 19:59:14 -05:00
|
|
|
VERSION=`cat share/version.txt`
|
2014-06-10 00:17:02 -04:00
|
|
|
|
|
|
|
# clean up from last build
|
2015-05-15 16:03:04 -04:00
|
|
|
rm -r build dist >/dev/null 2>&1
|
2014-06-10 00:17:02 -04:00
|
|
|
|
|
|
|
# build binary package
|
2019-04-18 15:19:19 -04:00
|
|
|
python3 setup.py bdist_rpm --requires="python3-flask, python3-stem, python3-qt5, python3-crypto, python3-pysocks, nautilus-python, tor, obfs4"
|
2014-06-10 00:17:02 -04:00
|
|
|
|
|
|
|
# install it
|
|
|
|
echo ""
|
|
|
|
echo "To install, run:"
|
2016-02-13 20:36:18 -05:00
|
|
|
echo "sudo dnf install dist/onionshare-$VERSION-1.noarch.rpm"
|