Automatically upload LineageOS/EvolutionX builds to S3 after compilation.
I maintain several devices. When releasing a new build, uploading files manually for each device is tedious. This script hooks into the build system and uploads everything automatically once the build succeeds.
| Feature | Done ? |
|---|---|
| Device config file | ✅ |
| LineageOS & EvolutionX support | ✅ |
| S3 upload via rclone | ✅ |
| Custom mirrors support | ❌ |
Clone the repo at the root of your Android build tree, then install dependencies and run the setup :
croot
git clone https://github.com/Oneloutre/auto_upload.git
cd auto_upload
pip3 install -r requirements.txt
./setup.py
source ~/.bashrcsetup.py adds a miam() function to your ~/.bashrc. This function wraps brunch, detects if the build succeeded, and calls upload.py automatically.
Edit devices.conf to declare your devices :
[ibiza]
rom=lineageos
install_images=dtbo, boot, vendor_boot
[hotdogb]
rom=evolutionx
install_images=vbmeta, dtbo, recoveryInstead of brunch <device>, use :
miam <device>If the build succeeds, the relevant images are uploaded to your S3 bucket via rclone. No further action needed.
Discord : onelots
Mail : onelots@onelots.fr