Giter VIP home page Giter VIP logo

rom_builder's Introduction

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

rom_builder's People

Contributors

akianonymus avatar baalajimaestro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.