aboutsummaryrefslogtreecommitdiff
path: root/desktop/install/ppa_release.sh
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/install/ppa_release.sh')
-rwxr-xr-xdesktop/install/ppa_release.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/desktop/install/ppa_release.sh b/desktop/install/ppa_release.sh
new file mode 100755
index 00000000..cb1a4cdb
--- /dev/null
+++ b/desktop/install/ppa_release.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+# This script pushes updates to my Ubuntu PPA: https://launchpad.net/~micahflee/+archive/ppa
+# If you want to use it, you'll need your own ~/.dput.cf and ssh key.
+# More info: https://help.launchpad.net/Packaging/PPA/Uploading
+
+DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )"
+cd $DIR
+
+VERSION=`cat share/version.txt`
+
+rm -rf deb_dist >/dev/null 2>&1
+python3 setup.py --command-packages=stdeb.command sdist_dsc
+cd deb_dist/onionshare-$VERSION
+dpkg-buildpackage -S
+cd ..
+dput ppa:micahflee/ppa onionshare_$VERSION-1_source.changes
+cd ..