![]() |
2010-01-19
, 09:02
|
Posts: 432 |
Thanked: 645 times |
Joined on Mar 2009
|
#22
|
Can someone show me how the debian/postinst file is supposed to look like to update the icon without the need for a restart ?
![]() |
2010-01-19
, 16:26
|
|
Posts: 85 |
Thanked: 65 times |
Joined on Jan 2010
@ Ireland
|
#23
|
sudo gainroot dpkg -r <packagename>
![]() |
2010-01-19
, 17:32
|
|
Posts: 85 |
Thanked: 65 times |
Joined on Jan 2010
@ Ireland
|
#24
|
3.1 ensure there is no "debian" folder at the same level as "src"4. Copy the "src" folder from the tested Qt project into the "<projectname-0.x" folder
3.2 ensure there is no folder structure called "<projectname>-0.x-orig" left over from a failed compile
3.3 remove old compiles from the Madde\home\user (e.g. C:\Madde\0.5\home\Shep) folder.
[Desktop Entry] Encoding=UTF-8 Version=0.x Type=Application Name=<Long Descriptive Project Name> Exec=/usr/bin/<projectname> Icon=<projectname> X-HildonDesk-ShowInToolbar=true X-Osso-Type=application/x-executable
[D-BUS Service] Name=org.maemo.<projectname> Exec=/usr/bin/<projectname>
TARGET = wwcalc TEMPLATE = app SOURCES += qtmain.cpp \ mainwindow.cpp HEADERS += mainwindow.h FORMS += mainwindow.ui PREFIX = ../debian/wwcalc/usr unix { BINDIR = $$PREFIX/bin DATADIR =$$PREFIX/share DEFINES += DATADIR=\"$$DATADIR\" PKGDATADIR=\"$$PKGDATADIR\" #MAKE INSTALL INSTALLS += target desktop icon64 service target.path =$$BINDIR desktop.path = $$DATADIR/applications/hildon desktop.files += wwcalc.desktop icon64.path = $$DATADIR/icons/hicolor/64x64/apps icon64.files += wwcalc.png service.path = $$DATADIR/usr/share/dbus-1/services service.files += wwcalc.service }
TEMPLATE = subdirs SUBDIRS = src
mad dh_make --createorig --single -e foo.bar@gmail.com -c gpl
#!/bin/sh # postinst script for <projectname> # # see: dh_installdeb(1) gtk-update-icon-cache -f /usr/share/icons/hicolor #maemo-select-menu-location <projectname>.desktop exit 0
mad qmake mad dpkg-buildpackage mad remote -r org.maemo.<projectname> send ../<packagename>_0.x-1_armel.deb mad remote -r org.maemo.<projectname> install <projectname>_0.2-1_armel.deb
sudo gainroot dpkg -r <projectname>
The Following 2 Users Say Thank You to shep For This Useful Post: | ||
![]() |
2010-01-19
, 17:59
|
|
Posts: 1,070 |
Thanked: 1,604 times |
Joined on Sep 2008
@ Helsinki
|
#25
|
11. Step 10 creates a debian folder at the root level, Go there and edit the "postinst.ex" file
Code:#!/bin/sh # postinst script for <projectname> # # see: dh_installdeb(1) gtk-update-icon-cache -f /usr/share/icons/hicolor #maemo-select-menu-location <projectname>.desktop exit 0
![]() |
2010-01-19
, 18:16
|
Posts: 60 |
Thanked: 23 times |
Joined on Jan 2010
|
#26
|
The Following User Says Thank You to tmsha For This Useful Post: | ||
![]() |
2010-01-19
, 18:48
|
|
Posts: 1,070 |
Thanked: 1,604 times |
Joined on Sep 2008
@ Helsinki
|
#27
|
If we are going to put this on a wiki I dont think the guide shep made is any good, its too complicated. You realy dont need to do all those steps, just look at my post at the top of this page..
![]() |
2010-01-19
, 18:58
|
|
Posts: 85 |
Thanked: 65 times |
Joined on Jan 2010
@ Ireland
|
#28
|
Please note that icon cache was dropped since PR1.1, so software targeting PR1.1 and future releases don't need this file.
Please wikify this tutorial[1], these kind of tutorials get lost over time here at TMO.
Thanks for your contributions.
[1] - http://wiki.maemo.org/MADDE
The Following User Says Thank You to shep For This Useful Post: | ||
![]() |
2010-01-19
, 19:00
|
|
Posts: 85 |
Thanked: 65 times |
Joined on Jan 2010
@ Ireland
|
#29
|
If we are going to put this on a wiki I dont think the guide shep made is any good, its too complicated. You realy dont need to do all those steps, just look at my post at the top of this page..
![]() |
2010-01-19
, 19:10
|
|
Posts: 1,070 |
Thanked: 1,604 times |
Joined on Sep 2008
@ Helsinki
|
#30
|
Thanks for the hints VDVsx, Now Wikified: http://wiki.maemo.org/MADDE/Packaging .... feedback appreciated.
What is that service file for then? I pieced this all together from different bits and pieces around the forums.
The Following User Says Thank You to VDVsx For This Useful Post: | ||
1. Open MADDE terminal
2. Execute: mad pscreate -t qt_simple qtx
3. Place a 64x64 image named qtx.png in the qtx folder. (NOT the src folder)
4. Create a file named qtx.desktop in qtx folder with this content:
Can someone show me how the debian/postinst file is supposed to look like to update the icon without the need for a restart ?
Last edited by tmsha; 2010-01-18 at 22:01.