Appstage Gem for live build uploads

The Appstage CLI gem provides an easy integration method for pushing builds from CI up to your project live builds page.

 

Installation & usage

To install the gem:-

gem install appstage

 

Usage

To see the command line options:-

$ appstage
Usage: appstage <command> [options]
 Commands:-
    -u, --upload [PATTERN]           Upload a file to the live build release
    -d, --delete [PATTERN]           Delete a file to the live build release
    -l, --list [PATTERN]             Lists files the live build release
    -v, --version                    Display the gem version
        --help                       Show this help message
 Options:-
    -j, --jwttoken JWT               Your appstage.io account JWT token
    -p, --project_id ID              Your appstage.io project id
    -h, --host HOSTURL               The appstage host, optional, leave blank to use live server

The gem allows upload, deletion and listing of live build files. Any file type can be uploaded.

In order to use the gem you need to pass to it via the -j option your project access token. Access tokens are generated on the Project -> Settings -> Live builds tab.

Example shell script used within a CI build script to delete the existing live build apk and the upload a new file:-
# Delete current live apks
appstage -d .apk -j $APPSTAGE_JWT

# Upload new build files
FILES="*.apk"
for f in $FILES
do
	appstage -u "$f" -j $APPSTAGE_JWT
done