termux / termux-create-package

Python script to create Termux packages easily.
https://termux.com
Apache License 2.0
417 stars 95 forks source link

How To Add Custom Command On Deb Packages #16

Closed ng1nX4O4 closed 5 years ago

ng1nX4O4 commented 5 years ago

How To Add Custom Commands On deb packages. If I Need To Install Some Pip requirement or ruby-gem. You Know Some Times Python Based Tools Need PIP requirements. I Hope You Can Understand

Grimler91 commented 5 years ago

You can put the commands in a postinst script, it is then run after the installation. See for example nzbget for an example where it is used.

termux-create-package doesn't support postinst and similar scripts though, so you need to either add it manually or improve termux-create-package so it can handle such scripts

ng1nX4O4 commented 5 years ago

How Do I Add Postinst script to my .Deb packages. I am new at this can you help