View Single Post
Posts: 631 | Thanked: 837 times | Joined on May 2007 @ Milton, Ontario, Canada
#11
Originally Posted by qole View Post
Hey, Khertan quietly added a section to the py2deb wiki article about how to add your pre / post install scripts to the build_myapp.py program. I'm not entirely clear on how this works (enclose the entire script in triple quotes? That's all?) but that is good news. I can probably use that script to package my Easy Debian stuff now... And with Fremantle coming, that's something I want to do.
Postinst/preinst/etc are very easy, all you need to do is make sure that your scripts are set to executable and stored somewhere, then add them directly as arguments to the p object. For example, in flipClock I've got:
Code:
p.postinst = "control/postinst"
the extra code in the wiki just seems to be to make sure that the script gets the execute permission set on it; if you've already done that first then you don't need the extra stuff...
 

The Following User Says Thank You to jolouis For This Useful Post: