Skip to content

lich-bot/rom_builder

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ROM BUILDER

This repo is exclusively for drone ci to build ROM without hassle.

Pre-requisites

1. Account on drone ci.

2. Github token with write access to your repos.

3. Telegram chat id.

4. Telegram bot token.

5. A GitHub repo on your main account where your builds will be uploaded.

How to Setup

1. Fork my repo

2. Make required changes. All the variables that needs to be changed is present in config.sh

Required Changes:

GITHUB_USER: You username on github.

GITHUB_EMAIL: Public github email.

device: Device codename.

ROM: ROM name.

manifest_url: Manifest url of that specific ROM.

branch: Branch name of manifest_url

rom_vendor_name: This represent the vendor name used by different ROMs. e.g: aosp for PixelExperience , lineage for LineageOS, etc

release_repo: The repo on your main account where the builds will be automatically uploaded as releases.

Optional Changes:

KBUILD_BUILD_USER: Change the username in kernel string.

KBUILD_BUILD_HOST: Change the hostname in kernel string.

timezone: Changes timezone.

4. Generate your google-git-cookies ( this step is optional, but do it if your sync fails because of bandwidth errors ).

Visit this url and login.

Copy the lines from the box and paste them somewhere.

Make a repo on your account, repo name must be google-git-cookiesand it must be private.

Create a file setup_cookies.sh in that repo.

Paste the string that you copied before in setup_cookies.sh

Commit the changes and push them.

5. If you want to clone some repos, or do something in ROM folder, add those commands in clone.sh, make sure you don't fuck it up.

If your main tree have .dependencies file, then it will sync those dependencies too.

6. Open drone ci.

Tap on repository name which you forked from this repo.

Tap on Activate Repository.

Go to settings showing adjacent to Activity feed.

Scroll down adn you will find secrets section.

You need to make three secrets:

GITHUB_TOKEN TELEGRAM_CHAT TELEGRAM_TOKEN

Done

7. Now just force push the last commit you pushed to the repo. It will trigger a build.

Now you can go to a activity feed and restart if you wanna build again.

Basically, you can either manually trigger the build or a commit will trigger it.

Happy Buildbotting

Sane pull requests / suggestions / issues reports are always welcome

About

[[ Buildbot ]]

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 92.9%
  • Python 7.1%