From ecaf2a97a3afcb5500e0fd6c221bc0a528c27ca8 Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Tue, 10 Jun 2014 00:17:02 -0400 Subject: [PATCH] starting debian/fedora packaging (#25) --- build_deb.sh | 14 ++++++++++++++ build_rpm.sh | 14 ++++++++++++++ stdeb.cfg | 4 ++++ 3 files changed, 32 insertions(+) create mode 100755 build_deb.sh create mode 100755 build_rpm.sh create mode 100644 stdeb.cfg diff --git a/build_deb.sh b/build_deb.sh new file mode 100755 index 00000000..5461283d --- /dev/null +++ b/build_deb.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +VERSION=`cat version` + +# clean up from last build +rm -r deb_dist + +# build binary package +python setup.py --command-packages=stdeb.command bdist_deb + +# install it +echo "" +echo "To install, run:" +echo "sudo dpkg -i deb_dist/onionshare_$VERSION-1_all.deb" diff --git a/build_rpm.sh b/build_rpm.sh new file mode 100755 index 00000000..acd2aed1 --- /dev/null +++ b/build_rpm.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +VERSION=`cat version` + +# clean up from last build +rm -r build dist + +# build binary package +python setup.py bdist_rpm --requires="python-flask, python-stem, pywebkitgtk" + +# install it +echo "" +echo "To install, run:" +echo "sudo yum install dist/onionshare-$VERSION-1.noarch.rpm" diff --git a/stdeb.cfg b/stdeb.cfg new file mode 100644 index 00000000..dd6d3293 --- /dev/null +++ b/stdeb.cfg @@ -0,0 +1,4 @@ +[DEFAULT] +Package: onionshare +Depends: python-flask, python-stem, python-webkit +Suite: trusty