maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   How to make a .deb package .. (https://talk.maemo.org/showthread.php?t=43575)

Cpasjuste 2010-02-06 13:58

How to make a .deb package ..
 
Hi, i'm sorry, there is probably a a lot of informations about how to make a debian .deb package to release, but i can't find it. I did port wesnoth 1.6.5 to the n900, and i'd like to package it, so if someone can point me to the right direction !

Thanks in advance,
David.

harriva 2010-02-06 14:12

Re: How to make a .deb package ..
 
Packaging, Deploying and Distributing

And when time comes to push app to repository.
Maemo Extras Assistant

Cpasjuste 2010-02-06 14:39

Re: How to make a .deb package ..
 
Thanks harriva.

jebba 2010-02-06 20:44

Re: How to make a .deb package ..
 
http://wiki.maemo.org/User:Jebba/Package_Building_HOWTO

fatalsaint 2010-02-07 07:59

Re: How to make a .deb package ..
 
Some more info:

Manual Method

Super Easy Method

hopbeat 2010-02-07 08:22

Re: How to make a .deb package ..
 
@Cpasjuste, it may be helpful to get a source of already existing project (e.g. from garage.maemo.org) to see the structure of the catalogs and scripts used.

Cpasjuste 2010-02-07 09:54

Re: How to make a .deb package ..
 
Thanks for the help :)

I'm currently trying this page : http://wiki.maemo.org/Py2deb

I didnt built the package yet with py2deb, but i'm trying to get the proper layout and files on the device. But i have a question : is the dbus "*.service " file really needed even if my application as nothing to do with services ? I'm asking because without it i can see my application under the applications menu, but when i try to launch it, it return to the desktop .. hum hum !

fatalsaint 2010-02-07 17:27

Re: How to make a .deb package ..
 
Quote:

Originally Posted by Cpasjuste (Post 514133)
Thanks for the help :)

I'm currently trying this page : http://wiki.maemo.org/Py2deb

I didnt built the package yet with py2deb, but i'm trying to get the proper layout and files on the device. But i have a question : is the dbus "*.service " file really needed even if my application as nothing to do with services ? I'm asking because without it i can see my application under the applications menu, but when i try to launch it, it return to the desktop .. hum hum !

No.. if your app is not registering as a dbus service you don't need it. Your problem sounds related to your .desktop file.. i'd pay close attention to that. Also running from the command line is always a good idea when testing.

Cpasjuste 2010-02-07 18:12

Re: How to make a .deb package ..
 
Thanks fatalsaint.
I think i will need some help, i did try every think i tought. Here is a summary :

So the sdl application (script to launch the binary) is not launching from application menu. I added (i think) correct .desktop, the exec path is right, and the application launch correctly from terminal under the "user" account. i did replace my wesnoth launching script with a script that echo to a file, and nothing is echo"ed" so i guess the script isn't executed at all when launching my application from the application menu.

Here is a copy of my desktop file :

Code:

Nokia-N900-51-1:/home/opt# cat  /usr/share/applications/hildon/wesnoth.desktop
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=Battle For Wesnoth
Comment=A fantasy turn-based strategy game
Exec=/opt/wesnoth/bin/wesnoth_n900
Icon=wesnoth
X-Icon-path=/usr/share/icons
X-Window-Icon=wesnoth
Type=Application
X-Osso-Service=com.nokia.wesnoth
X-Osso-Type=application/x-executable
Categories=Games
MimeType=application/game
Terminal=false

Code:

Nokia-N900-51-1:/home/opt# ls -laih /opt/wesnoth/bin/
  98317 drwxrwxrwx    2 root    root        4.0k Feb  7 19:11 .
  98316 drwxr-xr-x    4 root    root        4.0k Feb  7 12:00 ..
  98318 -rwxrwxrwx    1 root    root        16.8M Feb  7 12:00 wesnoth
  98327 -rwxrwxrwx    1 root    root          213 Feb  7 12:07 wesnoth_n900
  98325 -rwxrwxrwx    1 root    root        2.2M Feb  7 12:00 wesnothd
  98330 -rwxrwxrwx    1 root    root          214 Feb  7 12:20 wesnothd_n900

Code:

Nokia-N900-51-1:/home/opt# cat /opt/wesnoth/bin/wesnoth_n900
LD_PRELOAD="/opt/wesnoth/lib/libSDL_mixer-1.2.so.0.10.1" LD_LIBRARY_PATH="/opt/wesnoth/lib/" /opt/wesnoth/bin/wesnoth --smallgui -f --bpp 16 -r 800x480 /home/user/MyDocs/games/wesnoth_data/ &>/opt/wesnoth/bin/log

I really don't understand :'(

qwerty12 2010-02-07 18:16

Re: How to make a .deb package ..
 
Quote:

Originally Posted by Cpasjuste (Post 514618)
Here is a copy of my desktop file :

If you don't have a service file, then having a X-Osso-Service entry in your desktop file really doesn't make any sense.


All times are GMT. The time now is 21:24.

vBulletin® Version 3.8.8