View Single Post
rcull's Avatar
Posts: 299 | Thanked: 168 times | Joined on Jun 2006 @ Wales UK
#31
Sorry about the late replies I have been on holiday for a week.

Bizshop.
I'm glad you like it. Sorting has been added I'll do an interim release 0.1.2 this weekend

roblynn.
I am using pypackager ( I should have mentioned this before. In future I will include a mention of this in the docs.)
You will need a base folder ie

Code:
/home/user/myproj
Then under that your folder structure. At its very simplest you will need

Code:
/home/user/myproj/usr/bin/<executable>
                  usr/share/applications/hildon/<progname>.desktop
                  usr/share/dbus-1/services/<progname>.service
                  usr/share/pixmaps/<iconname>.png
my .service file looks like

Code:
[D-BUS Service]
Name=net.rcull.DaTable
Exec=/usr/bin/datable
and the .desktop

Code:
[Desktop Entry]
Encoding=UTF-8
Version=0.1
Type=Application
Name=DaTable
Exec=/usr/bin/datable
Icon=datable
X-Window-Icon=datable
X-Window-Icon-Dimmed=datable
X-Osso-Service=net.rcull.DaTable
X-Osso-Type=application/x-executable
you must also have a line in your program equivelent to

Code:
osso_context = osso.Context("net.rcull.DaTable","0.1",False)
note: the service file,desktop file and osso_context all identical service name.
Then just run pypackager with all the fields filled in and it magics a .deb for you.

Rick