apk-updater-fdroid-apkcombo/README.md

34 lines
1.5 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-09 10:13:40 +01:00
Download latest firefox binary (do not use apt install!) from: https://www.mozilla.org/de/firefox/linux/ and extract into /opt
`tar xjf firefox-*.tar.bz2 && mv firefox /opt`
`ln -s /opt/firefox/firefox /usr/bin/firefox`
2024-01-07 19:20:47 +01:00
Download latest geckodriver from https://github.com/mozilla/geckodriver/releases and extract into /opt
2024-01-09 10:13:40 +01:00
`tar -zxvf geckodriver-*.tar.gz && mv geckodriver /opt/`
`ln -s /opt/geckodriver /usr/bin/`
2024-01-07 19:20:47 +01:00
## 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`
2024-01-08 09:59:22 +01:00
`30 * * * * /usr/bin/python3 /mnt/data/updater/updater.py > /dev/null 2>&1`
2024-01-09 10:09:06 +01:00
In case you want to have a logfile, use this line:
`30 * * * * /usr/bin/python3 /mnt/data/updater/updater.py > /mnt/data/updater/updater.log`
2024-01-07 19:20:47 +01:00
## Remarks
I am not affiliated with any APK developer, nor f-droid or apkcombo. All rights belong to their owner.