/go/apk: apk from the Command Line

/go/apk turns a website into an Android app that shows the site in a WebView. For each domain, it: The result is a signed APK file for direct download. It is not ready to upload to Google Play. See Signing and publishing. Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.

Quick start

# Build the app for one domain
/go/apk example.com

Arguments

Argument Effect
<domain> Builds the app for that domain only.
all Builds an app for every hosted domain, one after the other.
(none) The same as all.

A domain is processed only when /home/<domain>/www exists. Building takes a while, so a run for all domains can take a long time.

Examples

# Build the app for one domain
/go/apk example.com

# Use your own icon: put a square PNG in place first, then build
cp mylogo.png /home/example.com/www/app/logo.png
/go/apk example.com

# Build apps for every hosted domain
/go/apk all

# Review the log of past runs
tail -n 20 /var/log/go/apk.log

Output

The command prints what the build tools print, plus a few messages of its own.

Message Meaning
Building APK... The icons are ready and apktool is building the app.
File /home/<domain>/www/app/logo.png not Exists. There was no logo and the screenshot failed. The app was not built.

When it succeeds, the files are in /home/<domain>/www/app/, and the download link is emailed to the account.

See the full reference at /go/apk and the GoAdmio command index.

GoAdmio is free and open source, with no license fees and no account limits. Read the GoAdmio docs, or see why it is a free cPanel alternative at goadmio.com.

By:

Posted in:


Leave a Reply

Your email address will not be published. Required fields are marked *