This script can download GitHub Releases and use repo-add (belong to Pacman) to create or update your Arch Linux local repository.
Python >= 3.6
requests >= 2.23.0
Clone or download this repository:
git clone git@github.com:vifly/helper.git
There are two ways to install requirements, choose the one you like:
sudo pacman -S python-requests
or
# If you know Python venv python3 -m venv helper cd ./helper source ./bin/activate pip3 install -r requirements.txt
Rename conf.py.example to conf.py, then edit conf.py according to comments.
Run:
python3 helper.py
Tips: You can use Cron to run helper.py automatically.
usage: helper.py [-h] [--force_download] [--no_update_repo] optional arguments: -h, --help show this help message and exit --force_download Use it to force download releases when file is exist --no_update_repo Just download releases, don't use repo-add to update Arch local repository