3) Download your repository (~10mb). Open the Terminal to do so. git clone firstname.lastname@example.org:~username/f-droid/your-repos-name.git
4) Git should now download a folder which is named like your repository to your working directory. That’s the local copy you can work with. Change into that directory and go on with: git remote add upstream git://gitorious.org/f-droid/fdroiddata.git
this creates a link to the official repository to sync with.
5) Create a file in metadata/ called package.id.txt; there’s a file called template in there for reference. Check that the app builds and that the update check works by running fdroid build -p package.id and fdroid checkupdates -p package.id respectively. You can find more information about this in the manual.
6) When you created and changed all the files you wanted to, open the Terminal again and go to your fdroiddata directory. Then do the following git add . this tells git that all files in the directory should be watched for changes. git commit -a this adds your changes to your local repository git push this sends the changes to your gitorious clone
7) Go back go your repository at gitorious.org and check the changes made. If they are okay, press “request merge” (button at the right) and write a meaningful summary of your changes.
You can check the status of your merge requests here
8) Next time you want to change some files, type git pull upstream master before you start working to download the latest version of the files.
I think I understand everything about the metadata files except the Version Code one:
The above specifies to build version 0.12, which has a version code of 3.”
Can someone explain what version code is and how to get it?
The Version Code can be read from the AndroidManifest.xml file which should be found in the repository of the project. The file specifies details like the permissions a program needs and is needed for releasing the program in the Android Market.
The Version Code is just an integer that makes clear which version is the most recent one.
I don’t think we need any special packaging. F-droid uses .apk files which are the standard way for distributing Android-applications.
If you manage to add all the necessary build-information, the scripts should be able to create .apk packages from the source code.
It’s always a great thing to have another helping hand for filling the repository and keeping it updated. Just ask as soon as new problems appear.
I am trying to sync my clone of the repo with ‘master’, but teh following fails:
liv@liv-laptop:~/Build/f-droid/fdroiddata$ git pull upstream master
fatal: ‘upstream’ does not appear to be a git repository
fatal: The remote end hung up unexpectedly