apk-updater-fdroid-apkcombo/README.md

29 lines
1.2 KiB
Markdown
Raw Normal View History

2024-01-07 19:20:47 +01:00
# APK Updater
This python script downloads all new APKs for your local f-droid repo from apkcombo.
## Prerequisites
Use Ubuntu 22.04 server (headless) with at least 1 GB RAM
Install python 3.10 and PIP
`apt install python3 python-pip3`
Install selenium
`pip install selenium`
Install MySQL Connector
`pip install mysql-connector-python`
2024-01-08 09:58:39 +01:00
Download latest firefox binary (do not use apt install!) and extract into /opt
2024-01-07 19:20:47 +01:00
Download latest geckodriver from https://github.com/mozilla/geckodriver/releases and extract into /opt
ln -s the firefox and geckodriver binaries to /usr/bin/
## Installation
Download python-script and edit values for paths (regaring your f-droid config) and mysql connection details.
Execute db.sql file in your database to set up the working database.
Execute the python-file for the first test run and watch console outputs.
`python3 updater.py`
If everything went well, configure crontab to run the script hourly (this is the refresh interval of the apkcombo RSS feed).
`crontab -e`
`30 * * * * /usr/bin/python3 /mnt/data/updater/update.py > /dev/null 2>&1`
## Remarks
I am not affiliated with any APK developer, nor f-droid or apkcombo. All rights belong to their owner.