View Single Post
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#27
Originally Posted by YoDude View Post
Beyond that... what do you then do when it is time to package for distribution? I am not understanding this "Maemo-ized for you".
I originally used py2deb and it created my rules file for me that I now just manually edit, and I decided I wanted more control. When you are ready to package your program you create a specific filesystem structure.

I recommend grabbing py2deb, building an initial package with it, then copy the directory structure somewhere for you to edit and maintain as you go. It will create all these files below for you in the proper formats, then editing them is easier (vice creating them by hand).

Code:
yourapp-1.0
yourapp-1.0/debian
yourapp-1.0/debian/control
yourapp-1.0/debian/changelog
yourapp-1.0/debian/rules
yourapp-1.0/debian/copyright
yourapp-1.0/src
yourapp-1.0/src/opt
yourapp-1.0/src/opt/yourApp
yourapp-1.0/src/opt/yourApp/yourapp.py
Once this structure is properly in place, you simply run:
Code:
dpkg-buildpackage -rfakeroot
From yourapp-1.0 directory and it will create your deb file for you that you can install on the N900. Once it runs and installs (and removes) successfully on your N900, you can follow the procedures at the Extras Assistant to building your source tarball and upload it to the repositories.

Some places to start:
Here, here, Here, Here

As far as what I mean by "Maemo-ized", when you run a PyQt4 app in a normal Desktop things such as QDialog and Popup boxes are actual message boxes, squares with buttons on the screen. They are rollup windows in Maemo. Also, the background and all the colors go to black, whereas on a desktop they will be white by default. Menu's can look different on a desktop than in Maemo, etc.
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 

The Following 2 Users Say Thank You to fatalsaint For This Useful Post: