Skip to content

onelots/auto_upload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auto Uploader

Automatically upload LineageOS/EvolutionX builds to S3 after compilation.

Python Badge Android Badge Linux Badge License Badge

What is it ?

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.

Roadmap

Feature Done ?
Device config file
LineageOS & EvolutionX support
S3 upload via rclone
Custom mirrors support

Installation

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 ~/.bashrc

setup.py adds a miam() function to your ~/.bashrc. This function wraps brunch, detects if the build succeeded, and calls upload.py automatically.

Configuration

Edit devices.conf to declare your devices :

[ibiza]
rom=lineageos
install_images=dtbo, boot, vendor_boot

[hotdogb]
rom=evolutionx
install_images=vbmeta, dtbo, recovery

Usage

Instead 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.

Contact

Discord : onelots

Mail : onelots@onelots.fr

GitHub : https://github.com/Oneloutre/auto_upload

About

A simple script for uploading releases automatically on my cloudflare R2 bucket.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages