added package building instructions and a build script

This commit is contained in:
Micah Lee 2013-02-07 00:14:05 -08:00
parent 69418d88a2
commit 321de6a1fe
2 changed files with 51 additions and 0 deletions

30
README
View File

@ -6,3 +6,33 @@ Tor Browser Launcher is intended to make the Tor Browser Bundle (TBB) easier to
When you first launch Tor Browser Launcher, it will download TBB from https://www.torproject.org/ and extract it in ~/.torproject, and then execute it. When you run it after that it will just execute TBB.
Tor Browser Launcher will get updated each time a new version of TBB is released. When you open Tor Browser after an update, it will download the newer version of TBB for you and extract it over your old TBB directory in ~/.torproject, so you will maintain your TBB bookmarks.
Building a Debian package
=========================
You need to have stdeb installed. If you're using Debian or Ubuntu you can install it like this:
sudo apt-get install python-stdeb
Here are other things you might need:
sudo apt-get install build-essential dpkg-dev debhelper devscripts fakeroot cdbs
First build a source distribution:
python setup.py sdist
Turn it into a Debian source package:
cd dist
py2dsc torbrowser-launcher-2.3.25-2-1.tar.gz
Turn it into a Debian binary package:
cd deb_dist/torbrowser-launcher-2.3.25-2-1
dpkg-buildpackage -rfakeroot -uc -us
Once you've made a .deb, you can install it like this:
sudo dpkg -i python-torbrowser-launcher_2.3.25-2-1-1_all.deb

21
build_and_install.sh Executable file
View File

@ -0,0 +1,21 @@
#!/bin/sh
# clean up from last time
rm -rf ~/.torbrowser
# build source dist
python setup.py sdist
# turn it into a debian source package
cd dist
py2dsc torbrowser-launcher-2.3.25-2-1.tar.gz
# turn it into a debian binary package
cd deb_dist/torbrowser-launcher-2.3.25-2-1
dpkg-buildpackage -rfakeroot -uc -us
# install it
cd ..
sudo dpkg -i python-torbrowser-launcher_2.3.25-2-1-1_all.deb
cd ../..