Vai al file
FestplattenSchnitzel 2d9e6a17eb
Remove references to Travis CI
We do no longer use it.
2023-01-28 17:09:33 +01:00
.idea Organize Python imports 2017-04-13 13:02:33 -03:00
debian set supported versions for django tinymce, use embedded tinymce 2020-10-08 11:46:26 +02:00
doc Point to GitHub's deploy keys docs and add info on server SSH keys 2017-09-18 10:04:33 -03:00
docker use apksigner without binfmt in Docker 2021-05-25 09:29:26 +02:00
repomaker Compatibility for Django 2.0/2.1/2.2 and Debian/bullseye 2022-12-13 19:59:43 +00:00
tests Compatibility for Django 2.0/2.1/2.2 and Debian/bullseye 2022-12-13 19:59:43 +00:00
.dockerignore Add README for Docker deployment 2018-02-21 17:45:21 -03:00
.gitignore add vagrant setup based on the .gitlab-ci.yml setup 2020-10-08 13:49:42 +02:00
.gitlab-ci.yml Compatibility for Django 2.0/2.1/2.2 and Debian/bullseye 2022-12-13 19:59:43 +00:00
.pylintrc Compatibility for Django 2.0/2.1/2.2 and Debian/bullseye 2022-12-13 19:59:43 +00:00
.weblate add .weblate to setup wlc 2020-10-07 10:34:50 +02:00
CHANGELOG.md release v1.0.0b2 (#223) 2020-10-07 20:59:38 +02:00
Dockerfile Compatibility for Django 2.0/2.1/2.2 and Debian/bullseye 2022-12-13 19:59:43 +00:00
LICENSE First working prototype 2017-03-21 12:44:44 -03:00
MANIFEST.in Include tests in source distribution and use new website 2018-01-18 12:26:46 -02:00
README.md README: update install instructions 2020-11-19 09:43:25 +01:00
Vagrantfile Compatibility for Django 2.0/2.1/2.2 and Debian/bullseye 2022-12-13 19:59:43 +00:00
manage.py Make repomaker installable 2017-07-24 15:41:22 -03:00
package.json set supported versions for django tinymce, use embedded tinymce 2020-10-08 11:46:26 +02:00
pre-release.sh Don't delete fonts on release 2018-11-28 21:02:13 +01:00
purge.sh Add pre-release script and move stuff to data directory 2017-07-27 18:29:13 -03:00
requirements-dev.txt Compatibility for Django 2.0/2.1/2.2 and Debian/bullseye 2022-12-13 19:59:43 +00:00
requirements-gui.txt confirm_quit renamed to confirm_close in webview.create_window 2020-10-07 11:04:56 +02:00
requirements.txt Compatibility for Django 2.0/2.1/2.2 and Debian/bullseye 2022-12-13 19:59:43 +00:00
run-tests.sh Parallelize tests 2017-08-01 09:43:47 +02:00
run.sh Download remote app icons in dedicated tasks 2017-08-07 10:06:41 -03:00
setup.cfg setup.py: properly mark long_description as Markdown 2020-10-08 17:05:17 +02:00
setup.py Compatibility for Django 2.0/2.1/2.2 and Debian/bullseye 2022-12-13 19:59:43 +00:00
setup.sh Compatibility for Django 2.0/2.1/2.2 and Debian/bullseye 2022-12-13 19:59:43 +00:00
update-translations.sh Updated translations from Weblate 2018-01-25 17:47:55 -02:00

README.md

build status coverage report translation status

Repomaker needs a maintainer, please adopt me! Repomaker currently runs on Django 1.11, which went out of security support in July 2020. Please see #234 for more information.

Installation

There are several different ways to install Repomaker.

Flatpak

Repomaker is available as Flatpak and distributed on Flathub. Once you got Flatpak installed on your system, either go to your system's app store or execute the following commands (without sudo!):

$ flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
$ flatpak install flathub org.fdroid.Repomaker
$ flatpak run --runtime=org.gnome.Sdk org.fdroid.Repomaker

On a server / Docker

There is a test image available in Docker for quickly trying out Repomaker. Note that you can run Repomaker on a server and make use of its multi user functionality. See Docker docs and the general docs for more information on that topic.

PyPi

If you don't want or can't install Repomaker with one of the mentioned methods, you can install it with pip from PyPi.

Requirements

Please make sure you have the following requirements installed before proceeding with the installation.

Install

  • pip for installation of Python 3 dependencies
  • virtualenv to create an isolated Python environment
  • Python development and build files for installing/building some dependencies

On Debian, you can simply run this:

apt install python3-pip python3-wheel python3-dev virtualenv build-essential

Runtime

  • keytool from Java Runtime Environment (JRE)
  • jarsigner from Java JDK for signing the repo indexes
  • libmagic for mime-type detection
  • rsync to publish repositories
  • git to publish repositories to git mirrors

On Debian, you can simply run this:

sudo apt install fdroidserver libmagic1 rsync git \
    python3-pyqt5.qtwebengine python3-pyqt5.qtwebkit

Install into virtual environment

To not mess with other Python libraries you have installed, we will install repomaker into its own isolated Python environment.

virtualenv -p /usr/bin/python3 repomaker
source repomaker/bin/activate
pip install repomaker[gui]

You should now be able to start by typing:

repomaker

Troubleshooting

First check that you really have all dependencies from above installed.

If the installation fails with something about openssl, try to install libssl-dev with apt install libssl-dev.

If the graphical user interface fails to start, you can try running repomaker-server and repomaker-tasks. If that works, you should be able to open 127.0.0.1:8000 in your browser.

Development

To work on repomaker, you need npm to fetch CSS and JavaScript dependencies: apt install npm.

Then run npm install to install these dependencies.

If you want to run repomaker in your browser rather then using the GUI, you can start it like this:

virtualenv -p /usr/bin/python3 repomaker
source repomaker/bin/activate
./setup.sh
./run.sh

Vagrant VM

There also a Vagrant setup based on the GitLab CI setup, it is a quick way to get a development setup. First, set up Vagrant on your machine, then run:

$ cd repomaker
$ vagrant up
$ vagrant ssh
vagrant@basebox-buster64:~$ ip a | sed -En 's,.*inet +(192\.168\.[0-9]+\.[0-9]+).*,open http://\1:8000,p'
open http://192.168.121.37:8000
vagrant@basebox-buster64:~$ cd $CI_PROJECT_DIR
vagrant@basebox-buster64:/builds/fdroid/repomaker$ ./tests/test-units.sh

Translation

  • GNU gettext apt install gettext

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

Translating

Everything can be translated. See Translation and Localization for more info.

  • To update translations, run ./update-translations.sh.
  • To add a new translation, run python3 manage.py makemessages -l <lg> where <lg> is the language code, e.g. de.

translation status