Giter Site home page Giter Site logo

crdroid_build's Introduction

crDroid build script

Description

This bash script is used to build crDroid and upload via SFTP.
With proper settings, it's also possible to push to crDroid SourceForge page automatically.

How to Install

In order to install this, all it's needed to be done is copy build script locally, set it as executable and configure it with built-in wizard.
To do so run following commands in terminal:

# Download the script with curl
$ curl -LJO https://raw.githubusercontent.com/crdroidandroid/crdroid_build/9.0/build
# Make script executable
$ chmod +x build
# run the script
$ ./build

Tool uses LFTP (https://lftp.yar.ru) to transfer files to remote server.

Configuration

You now need to configure build script and add device codenames that you want to build for.
For that just issue ./build in terminal and follow the on-screen instructions.

$ ./build
$ Please enter the path where crDroid folder is located (full path ex:/home/<user>/crDroid)
$ /home/user/crDroid
$ How much RAM can JACK use for compiling? (numeric value ex: 16)
$ 16
$ How much space (in GB) can be used to ccache? (numeric value ex: 30)
$ 30
$ Upload compilation to remote server at end of build?
$ 1 or 2 (Yes/No)
$ Enter remote hostname (ex: web.sourceforge.net):
$ web.sourceforge.net
$ Enter remote username::
$ user
$ Enter remote password:
$ myultrasecurepassword

Now as you just set your configuration, next step would be to add a devices to initiate build for.
Running ./build add will prompt you to enter your device information.

$ ./build add
$ Add a new device:
$ Format: <device codename>,<remote upload path>
$ dumpling,/home/pfs/project/crdroid/dumpling

Additional stuff (optional and not mandatory)

If you want to run some additional commands before build starts, for example, repopick some unmerged commits, just create a commands.txt file, and add your stuff there. This way the build script picks up the files and executes the commands line by line (see commands.txt example).

Start building

In order to start building, issue the following command in terminal

$ ./build

Help

Issue ./build help in terminal for a list of helpfull commands

This build script is used to be able to build crDroid and upload the builds to remote server
Usage: ./build [OPTION]

Commands supported:
add       - adds a device to be built
remove    - removes a device from build list
list      - lists all devices that are configured to be built
clean     - cleans up the configuration
clear     - clears up all the devices on build list

crdroid_build's People

Contributors

gwolf2u avatar

Watchers

 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.