Host f-droid repository on Gitlab WITHOUT repomaker?

gitlab
repo

#1

Hello people! How are you?

So I was gonna try to upload my local fdroid repository to gitlab and then access it from the FDroid client. But the furthest I got was an error message of the kind of
“Could not open zip file index-v1.jar”
which I could only see through ADB because FDroid itself very uninformatively says “Error getting index file”.

I tried the tool repomaker and if I configure that same gitlab repository to be my storage there, then it works perfectly. Until repomaker itself crashes or whatever, because apparently this is still an unstable version.

Is it possible to use raw gitlab to store my FDroid repo or not?


#2

You don’t need Repomaker at all, its built into fdroidserver. Read examples/config.py included with fdroidserver.


#3

Here’s an example that was generated using the fdroid nightly command: https://gitlab.com/fdroid/fdroidclient-nightly


#4

Thanks for the reply! But I can’t add your example repository. It’s asking for a username+password.


#5

If I use repomaker, it gives me a URL to type in the FDroid client, and it works immediately. For example
https ://repomaker.grobox.de/repos/user_“number1”/repo_“number2”/repo
But if I use this fdroid nightly command or fdroid deploy even if I configure servergitmirrors and identity_file, I can’t access this repo from the client, no matter which URL I try.
I tried
https ://github.com/“username”/“reponame”
https ://github.com/“username”/“reponame”/fdroid/repo
https ://raw.githubusercontent.com/“username”/“reponame”/master/fdroid/repo/

I set
servergitmirrors = ‘https://github.com/“username”/“reponame”

I’d be thankful for any suggestions!


What is the Gitlab Repo URL to type in the FDroid client?
#6

You can see example Github/Gitlab URLs listed under here https://guardianproject.info/fdroid/repo/index.xml

<mirror>http://bdf2wcxujkg6qqff.onion/fdroid/repo</mirror>
<mirror>https://guardianproject.info/fdroid/repo</mirror>
<mirror>https://s3.amazonaws.com/guardianproject/fdroid/repo</mirror>
<mirror>https://raw.githubusercontent.com/guardianproject/fdroid-repo/master/fdroid/repo</mirror>
<mirror>https://guardianproject.gitlab.io/fdroid-repo/fdroid/repo</mirror>
<mirror>https://gitlab.com/guardianproject/fdroid-repo/raw/master/fdroid/repo</mirror>

Or by getting the URL from the QR Code on any fdroid nightly repo:


#7

Ok thanks @hans ; I figured out what my problem was:
The Gitlab repo I set up for use with fdroid was private! That’s why the file index-v1.jar that was downloaded wasn’t actually a jar file but a html file saying that I have to sign in :smile:
And the right github/gitlab url to use are
https://raw. githubusercontent.com/path/to/repo/master/fdroid/repo
https://gitlab. com/path/to/repo/raw/master/fdroid/repo


#8

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.