maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Please help me upload to extras-devel (https://talk.maemo.org/showthread.php?t=70702)

ejasmudar 2011-03-05 04:18

Please help me upload to extras-devel
 
1 Attachment(s)
I have a couple of scripts and a zenity-based GUI that I wanted to package as a deb. As per various tutorials, i have arranged the files into folders, created control and the .desktop files.

I only have a WIN7 computer so I want to do my packaging in my N900. I tried packaging with
Code:

dpkg-i xxxx
in MyDocs but I got errors as it was FAT32.

Next I moved it to /opt/debuild/ and tried to package from there. It successfully compiled but
a) I could not install via HAM (application not compatible error, i think)
b) I installed successfully via dpkg -i, and it became visible in the menu. But I could not run it.

So please, could somebody tell me what I am doing wrong? Oh, and I want to run my scripts as root, so i did put this as my exec in the .desktop file:
Code:

sudo /usr/bin/run-standalone.sh /pathto/myscript.sh
Is this right?

rambo 2011-03-05 21:19

Re: Please help me package my apps
 
check out mobilehotspot on garage (writing this on the go so can't link now)

ejasmudar 2011-03-07 04:05

Re: Please help me package my apps
 
1 Attachment(s)
Quote:

Originally Posted by rambo (Post 961442)
check out mobilehotspot on garage (writing this on the go so can't link now)

I am sorry, but what is there to check out in http://mobilehotspot.garage.maemo.org/ that is specific to my question? Please explain...

I have finally managed to make a deb using dpkg -b from my N900. It can be installed with dpkg -i but cant be installed by the application manager. Can anybody help me? I am attaching the deb file here.

Thanks,
EJas

rambo 2011-03-07 15:09

Re: Please help me package my apps
 
Quote:

Originally Posted by ejasmudar (Post 962214)
I am sorry, but what is there to check out in http://mobilehotspot.garage.maemo.org/ that is specific to my question? Please explain...

https://garage.maemo.org/plugins/scm...=mobilehotspot is the debian dir, check the scripts there.

what is the problem with application manager? an error message ?

ejasmudar 2011-03-08 09:58

Re: Please help me package my apps
 
Quote:

Originally Posted by rambo (Post 962530)
https://garage.maemo.org/plugins/scm...=mobilehotspot is the debian dir, check the scripts there.


Thanks, I am checking out the scripts in the directory now. One question, which of the following are mandatory?
Changelog
compat
control
copyright
.postinst
rules

In my debian folder i now have only a control file. Are the rest required.
Quote:

Originally Posted by rambo (Post 962530)
what is the problem with application manager? an error message ?

Yes, it shows 'incompatible application package' error. But installs perfectly under dpkg -i.
Any ideas?

gionni88 2011-03-08 10:45

Re: Please help me package my apps
 
You need to put in the control file the section, the architecture and installed size to be read from hildon app manager when building with dpkg -b.

Section: user/desktop
Priority: extra
Maintainer: yourname <youremailaddress>
Package: packagename
XSBC-Maemo-Display-Name: Name to show in App Manager
Architecture: armel
Installed-Size: 101
Version: 0.0.1
Description: Short description.

In your postinst file you have to type the chmods you need in order to run the script aswell.

ejasmudar 2011-03-09 05:27

Re: Please help me upload to extras-devel
 
Quote:

Originally Posted by gionni88 (Post 963062)
You need to put in the control file the section, the architecture and installed size to be read from hildon app manager when building with dpkg -b.

Section: user/desktop
Priority: extra
Maintainer: yourname <youremailaddress>
Package: packagename
XSBC-Maemo-Display-Name: Name to show in App Manager
Architecture: armel
Installed-Size: 101
Version: 0.0.1
Description: Short description.

In your postinst file you have to type the chmods you need in order to run the script aswell.

Thanks guys, it seems to be working now. I think it probably was because i was missing XSBC-Maemo-Display-Name: and Section:

Now, moving onto Uploading to extras-devel. I made account in garage and all associated actions. I tried using the web assistant but I am stuck on uploading the .changes file.

I am developing my app (which is basically a bunch of shell scripts) on my N900 itself. How can I generate a .changes file?


All times are GMT. The time now is 07:44.

vBulletin® Version 3.8.8