maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   apps.formeego.org testing starting (https://talk.maemo.org/showthread.php?t=79793)

MartinK 2012-06-07 09:25

Re: apps.formeego.org testing starting
 
Quote:

Originally Posted by Schturman (Post 1218784)
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.

Schturman 2012-06-07 09:31

Re: apps.formeego.org testing starting
 
Thank you !
What is this: " osc tool with the ar parameter" ?
Sorry I'm noob :D

ZogG 2012-06-07 23:56

Re: apps.formeego.org testing starting
 
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.

☺☺☺

ZogG 2012-06-07 23:57

Re: apps.formeego.org testing starting
 
Oh, and osc ar as help says is addremove (ar) Adds new files, removes disappeared files

ZogG 2012-06-25 14:40

Re: apps.formeego.org testing starting
 
As i promised.

Qt Creator and OBS:

In order to build project for COBSQt Creator and OBS:(for 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"
http://i.imgur.com/We4L8.png

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.

ZogG 2012-07-08 23:30

Re: apps.formeego.org testing starting
 
please tell it's down now only because of coincidence

kojacker 2012-07-09 00:25

Re: apps.formeego.org testing starting
 
Quote:

Originally Posted by ZogG (Post 1234116)
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.

godofwar424 2012-07-09 00:28

Re: apps.formeego.org testing starting
 
Quote:

Originally Posted by ZogG (Post 1234116)
please tell it's down now only because of coincidence

I hope so :(

nicolai 2012-07-09 15:04

Re: apps.formeego.org testing starting
 
It is working now.

ZogG 2012-07-09 16:48

Re: apps.formeego.org testing starting
 
Quote:

Originally Posted by nicolai (Post 1234514)
It is working now.

yup, X-Fade fixed it =P


All times are GMT. The time now is 10:09.

vBulletin® Version 3.8.8