This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
proj:deb [2012/02/24 02:54] 127.0.0.1 external edit |
proj:deb [2020/09/08 20:08] (current) 114.23.208.115 [An Alternative - stdeb] |
||
|---|---|---|---|
| Line 4: | Line 4: | ||
| ====== Notes on Debian Packaging ====== | ====== Notes on Debian Packaging ====== | ||
| + | |||
| + | ===== An Alternative - stdeb ===== | ||
| + | |||
| + | Hi everyone | ||
| + | | ||
| + | Some time ago, I gave a talk about the "fpm" package manager a while back. | ||
| + | Today, I came across a different tool, which is also available from | ||
| + | the Ubuntu repositories called "stdeb": | ||
| + | https://github.com/astraw/stdeb | ||
| + | | ||
| + | I successfully generated a Debian package for one of my little Python utilities: | ||
| + | https://github.com/waikato-datamining/docker-banner-gen/releases/tag/v.0.0.6 | ||
| + | | ||
| + | Just by using this command-line (using the "setup.py" of the project): | ||
| + | python3 setup.py --command-packages=stdeb.command bdist_deb | ||
| + | | ||
| + | Requires "python3-all" to be installed. | ||
| + | | ||
| + | Thought you might find this useful. | ||
| + | | ||
| + | Cheers, Peter | ||
| + | -- | ||
| + | Peter Reutemann | ||
| + | Dept. of Computer Science | ||
| + | University of Waikato, NZ | ||
| + | +64 (7) 858-5174 | ||
| + | |||
| + | Thanks to the following stackoverflow post I figured out how to | ||
| + | include a .desktop file and icon, making an application appear in the | ||
| + | main menu: | ||
| + | https://stackoverflow.com/a/17402676/4698227 | ||
| + | | ||
| + | Example code mentioned in that post is available from here: | ||
| + | https://github.com/cpbotha/stdeb-minimal-example | ||
| ===== Step by Step ===== | ===== Step by Step ===== | ||
| Line 9: | Line 43: | ||
| ==== Packaging ==== | ==== Packaging ==== | ||
| + | * Any new folders or files? Update KEEPME rules | ||
| * run 0 KEEP pre_DEB_packaging.py (in SOFA/storage) - details in "Steps Covered by Script" below. | * run 0 KEEP pre_DEB_packaging.py (in SOFA/storage) - details in "Steps Covered by Script" below. | ||
| * NB copies final deb into grantshare ready for testing immediately. | * NB copies final deb into grantshare ready for testing immediately. | ||