1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-10-05 18:50:09 +02:00
Tools for managing builds, indexes, updates, and deployments for F-Droid repositories.
Go to file
Hans-Christoph Steiner e826938734 static URLs to "Current Version" of each app
I wrote up the feature to automatically generate symlinks with a constant name
that points to the current release version. I have it on by default, with a
*config.py* option to turn it off. There is also an option to set where the
symlink name comes from which defaults to app['Name'] i.e. F-Droid.apk, but
can easily be set to app['id'], i.e. _org.fdroid.fdroid.apk_. I think the best
place for the symlinks is in the root of the repo, so like
https://f-droid.org/F-Droid.apk or https://guardianproject.info/fdroid/ChatSecure.apk

For the case of the current FDroid static link https://f-droid.org/FDroid.apk
it can just be a symlink to the generated one (https://f-droid.org/F-Droid.apk
or https://f-droid.org/org.fdroid.fdroid.apk). Right now, this feature is all
or nothing, meaning it generates symlinks for all apps in the repo, or none. I
can’t think of any problems that this might cause since its only symlinks, so
the amount of disk space is tiny. Also, I think it would be useful for having
an easy “Download this app” button on each app’s page on the “Browse” view. As
long as this button is less prominent than the “Download F-Droid” button, and
it is clear that it is better to use the FDroid app than doing direct
downloads. For the f-droid.org repo, the symlinks should probably be based on
app['id'] to prevent name conflicts.

more info here:
https://f-droid.org/forums/topic/static-urls-to-current-version-of-each-app/
2014-11-11 15:06:52 +01:00
.pylint-plugins jenkins-build: make pylint handle the hashlib hash classes properly 2014-04-03 12:33:22 -04:00
buildserver Add support for gradle plugin version 0.14 in the wrapper 2014-11-05 21:30:00 +01:00
completion Update fdroid init completion 2014-06-12 21:51:33 +02:00
docs Merge branch 'some-bug-fixes' into 'master' 2014-11-07 14:49:07 +00:00
examples static URLs to "Current Version" of each app 2014-11-11 15:06:52 +01:00
fdroidserver static URLs to "Current Version" of each app 2014-11-11 15:06:52 +01:00
hooks Properly catch return codes since -x is no longer used 2014-11-09 14:36:58 +01:00
tests include test cases for python getsig replacement 2014-11-07 09:20:33 +00:00
wp-fdroid Fix urlencoding of category in next page links, etc 2014-09-04 14:31:37 +01:00
.gitignore init: --android-home for forcing the path to the Android SDK 2014-04-23 19:33:10 -04:00
COPYING Initial files 2010-10-21 23:26:38 +01:00
fd-commit fd-commit: don't break when non-metadata files show up in git status 2014-08-16 17:51:32 +02:00
fdroid Don't print tracebacks for option errors 2014-08-25 16:48:31 +01:00
jenkins-build Merge branch 'some-bug-fixes' into 'master' 2014-11-07 14:49:07 +00:00
makebuildserver Merge branch 'update-vagrantfile' into 'master' 2014-11-07 14:44:58 +00:00
MANIFEST.in include test cases for python getsig replacement 2014-11-07 09:20:33 +00:00
README use 'python2' everywhere since fdroidserver has not been tested with 3.x 2014-06-30 23:01:47 -04:00
setup.py Replace getsig.java with a pure python implementation 2014-11-07 09:20:14 +00:00

F-Droid is an installable catalogue of FOSS (Free and Open Source Software)
applications for the Android platform. The client makes it easy to browse,
install, and keep track of updates on your device.

The F-Droid server tools provide various scripts and tools that are used to
maintain the main F-Droid application repository. You can use these same tools
to create your own additional or alternative repository for publishing, or to
assist in creating, testing and submitting metadata to the main repository.

For documentation, please see the docs directory.

Alternatively, visit https://f-droid.org/manual/


Installing
----------

The easiest way to install the fdroidserver tools is to use virtualenv and pip
(if you are Debian/Ubuntu/Mint/etc, you can first try installing using
`apt-get install fdroidserver`).  First, make sure you have virtualenv
installed, it should be included in your OS's Python distribution or via other
mechanisms like dnf/yum/pacman/emerge/Fink/MacPorts/Brew.  Then here's how to
install:

    git clone https://gitlab.com/fdroid/fdroidserver.git
    cd fdroidserver
    virtualenv env/
    . env/bin/activate
    pip install -e .
    python2 setup.py install