Reply
Thread Tools
Posts: 1,548 | Thanked: 7,510 times | Joined on Apr 2010 @ Czech Republic
#71
Originally Posted by Schturman View Post
Thank you very much ! Now it's worked !
But why it's not mentioned here in wiki: http://wiki.meego.com/MeeGo_Apps/Submit

And i have another question...
What I need to do for updating my package to new version ?
1. Delete .dsc, .tar.gz and .changes files from my project and reupload new ?
2. Same with screenshots, if I want to update them ?
3. Do I need submit package again or it will do this automaticaly ?
4. Do I need delete previous .deb file or new version automatically will override the previous one?

I want to create a little manual for dumb's like me
Thanks
1: Yep, just like that. You can do tha easily using the osc tool with the ar parameter.

2: From my eperience you have to replace the screenshot file/-s & bump the package version.

3: Your repository is independent from the AFM one so you have to submit it manually once you decide to push an update. Also note that package updates reset QA votes.

4: The .deb in the repository is automatically replaced once a new version is built.
__________________
modRana: a flexible GPS navigation system
Mieru: a flexible manga and comic book reader
Universal Components - a solution for native looking yet component set independent QML appliactions (QtQuick Controls 2 & Silica supported as backends)
 

The Following 2 Users Say Thank You to MartinK For This Useful Post:
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#72
Thank you !
What is this: " osc tool with the ar parameter" ?
Sorry I'm noob
 
ZogG's Avatar
Posts: 1,389 | Thanked: 1,857 times | Joined on Feb 2010 @ Israel
#73
osc is tool for obs, let's say it's like (not really but «like») git tool just for obs

http://en.opensuse.org/openSUSE:OSC here is how to use it (the installations is for opensuse, but i even has it in portage on gentoo).

All you need to install it (i bet it's something like apt-get install osc for ubuntu) and than add repo (from submit wiki on meego) — osc -A https://api.pub.meego.com co home:[username]
than you just go to this home:Schturman/your_mega_app (i assume you already have app there and it would sync it to local folder)
and than copy needed files there , for example new_app-2.0.deb
than just delete old one — osc rm new_app-1.0.deb ,add new — osc add new_app-2.0.deb and commit — osc commit (it would popup terminal editor of your choise, save, press «c» to continue and it would upload new file)
you can add several files before commit as well.

☺☺☺
 

The Following 2 Users Say Thank You to ZogG For This Useful Post:
ZogG's Avatar
Posts: 1,389 | Thanked: 1,857 times | Joined on Feb 2010 @ Israel
#74
Oh, and osc ar as help says is addremove (ar) Adds new files, removes disappeared files
 

The Following 2 Users Say Thank You to ZogG For This Useful Post:
ZogG's Avatar
Posts: 1,389 | Thanked: 1,857 times | Joined on Feb 2010 @ Israel
#75
As i promised.

Qt Creator and OBS:

In order to build project for COBSQt Creator and OBSfor example to push it to apps4meego) and still to be able to continue to work with QtCreator you need to make few simple steps i would show in this post. I don't update wiki, as i think i might have problems with grammar and self explanation, so i hope it would be used to update current wiki. As well current wiki is still useful and I just add few aspects and update some info from there, so i suggest to use it along with this howto.

The files to change below are from "/qtc_packaging/debian_harmattan" inside project dir

1) Go to your rule file and change those lines:
#qmake -> ##OBS qmake \\ In my example i use ##OBS qmake -recursive, i think it's related to that i use subdirs as project.
#$(MAKE) -> ##OBS $(MAKE)
#dh_shlibdeps -> ##OBS dh_shlibdeps

as well if there is any comment followed in any of those lines, delete it. and it's important to keep all line starts with "tab" and not with "8 spaces"(in our example those we changed start with ##OBS), otherwise you'll get error.

for aegis matter you need to add those lines after dh_builddeb (change <package> to your app name)
##OBS aegis-deb-add -control debian/<package>/DEBIAN/control .. debian/manifest.aegis=_aegis (as well with "tab" at the beginning)

Here is an example of mine rule file — https://github.com/funkycode/imgrup/...armattan/rules


2)Now go to your main .pro file and add .desktop file to be installed: in my example it looks like:

desktop.files = imgrup_harmattan.desktop
desktop.path = /usr/share/applications
INSTALLS += desktop


(the path is shown for harmattan, for maemo the path would be different)

3)The last thing before packaging and submitting is to fix the deps, for that we go to the control file and add deps we need, i'm not good at this, but i think rzr and few members can help you on that, those are packages installed on OBS when building the app, and AFAIK you still need deps in .pro file. i'll provide example as part of mine:

.....
Build-Depends: debhelper (>= 8.0.0), libqt4-dev, pkg-config,
libshare-ui-dev,libqt4-declarative-dev,
libqtm-multimedia-dev, libqt4-multimedia, libaccounts-qt-dev, libsignon-qt-dev,
libsignon-glib-dev, signon-plugins-dev, signond-dev, libaccountplugin-dev, libaccountsetup-dev,
libnaccounts-ui-dev, libmeegotouch-dev, applauncherd-dev, maemo-meegotouch-interfaces-dev,
libmdatauri-dev, aegis-builder
Standards-Version: 3.9.2

....


(you need to keep format of file right, i'm talking about new lines, spaces and blank lines. So read the output if you have an error)

3.1)Before building you as well can use postinst file to make post install script file =)

4)After that is ready, we would use phako''s (thanks man) script to package:
https://github.com/funkycode/imgrup/...ate-obs-source

which actually use our(QtCreator's) qtc_packaging/debian_harmattan directory with files we just modified and copy it to debian dir, it uncoomments in rule all lines with "##OBS ", build and than delete the dir. The files would be in the parent dir out of project (.tar.gz and .dsc), while script should be run in project dir. Btw you may need to change "SDK_DIR=" as mine set to where it's on my comp, it the directory to QtSDK.

5)
After that we go to obs and we create new repo:
a)Repositories
b)Add repo
c)use the link " pick one via advanced interface." in the top
d)In the "Project" field paste "MeeGo:1.2:Harmattan"


Than build your project there (webupload is not nice as it's trying to build even if one file changed(and your upload change the file), and you can upload only one by one, though with ocs you can update and upload few, the basics covered on wiki and it's similar to git in some way). Add both files made by script icon.png and few screen-shots as well.


After you successfully built the project, you should go to your repo an check the file from there and only if it works (i suggest deleting app from phone and re-installing from there, as i submitted first time broken app, coz of not checking it).

After it's all working — you have green light to submit to testing as described at wiki and than it would take some time, as it takes time till bot decides to build and he rebuilds few times, till it get to apps4meego and database of client is re download. So if you built in your repo and submited after, don't worry it should be okay, just give so time(btw you may get email from bot, that it's built and everything ok)


Any feedback and edits are welcome.

Last edited by ZogG; 2012-06-25 at 14:54.
 

The Following 6 Users Say Thank You to ZogG For This Useful Post:
ZogG's Avatar
Posts: 1,389 | Thanked: 1,857 times | Joined on Feb 2010 @ Israel
#76
please tell it's down now only because of coincidence
__________________
IRC nick on freenode — ZogG
imgrup
 
Posts: 1,086 | Thanked: 2,964 times | Joined on Jan 2010
#77
Originally Posted by ZogG View Post
please tell it's down now only because of coincidence
It appears to have been down for most of today with that "502 - Bad Gateway" error, I tweeted about it 6 hours ago. I'm not sure whoever is admin'ing the site has noticed it, hopefully whatever is wrong will be fixed soon.
__________________
Follow me on my neglected twitter @kojacker

Cybot950 - Control a robot with your N9/N950
SMSPetFeeder - Build a Bluetooth/SMS dog feeder with Qt, N950, and arduino
Nerf950 - Use your N9/N950 to fire a Nerf gun
 

The Following User Says Thank You to kojacker For This Useful Post:
Posts: 1,320 | Thanked: 915 times | Joined on Feb 2010
#78
Originally Posted by ZogG View Post
please tell it's down now only because of coincidence
I hope so
__________________
Well Nokia do at least know how to build a decent phone, just apparently don't know how to support it..

N900 Died Replaced with N8, Requested E7, "Accidentally Broke E7", Now rolling with an N9 and im loving it!


My Contributions

N900 Conversations Wiki Page
 
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#79
 

The Following 3 Users Say Thank You to nicolai For This Useful Post:
ZogG's Avatar
Posts: 1,389 | Thanked: 1,857 times | Joined on Feb 2010 @ Israel
#80
Originally Posted by nicolai View Post
It is working now.
yup, X-Fade fixed it =P
__________________
IRC nick on freenode — ZogG
imgrup
 

The Following User Says Thank You to ZogG For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 08:43.