mirror of
https://github.com/frappe/bench.git
synced 2025-01-10 09:02:10 +00:00
.. | ||
debian | ||
bench_0.92.orig.tar.gz | ||
readme.md |
To prepare your environment for building .deb package install instruments:
sudo apt-get install build-essential devscripts debhelper
Important: to build .deb package archive name must be in the format $(name)_$(version).orig.tar.gz
and directory within it must be named as $(name)_$(version)
This build uses dh-virtualenv. For installation please follow the [tutorial] (http://dh-virtualenv.readthedocs.org/en/0.10/tutorial.html)
To build debian package from scratch:
- make working directory (basically with any name) near archive bench_0.92.orig.tar.gz:
mkdir build_dir
- copy debian directory in there:
cp -r debian/ build_dir/
- change directory:
cd build_dir/
- run package build:
debuild -us -uc
- package is:
../bench_0.92_amd64.deb
If you don't havegdebi
installed, first you need to run:
sudo apt-get install gdebi
To install resulting package with all it's dependencies:
sudo gdebi ../bench_0.92_amd64.deb
Please note that name of package contains your architecture so for 32-bit machines name will differ.
Current state: runs without problems on all Ubuntu versions installing bench in/usr/share/python/bench/bin/bench
. Fails on Debian 8 with version format conflict.
Useful links: Introduction to Debian Packaging