From e776798d15355f40b8dea527d3f85ff3b87ca4a7 Mon Sep 17 00:00:00 2001 From: Raymond Oung Date: Tue, 26 May 2020 17:31:01 +0900 Subject: [PATCH] Updates prerequisite instructions --- README.md | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 731191a..94fa204 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,18 @@ These scripts have currently been tested on: * Ubuntu 18.04 +## Prerequisites +Scripts in this repository require the Android SDK, see [Android SDK installation instructions](https://www.androidcentral.com/installing-android-sdk-windows-mac-and-linux-tutorial) for installation details. Once installed, export the SDK's path to the `ANDROID_HOME` environment variable, for example: +``` +export ANDROID_HOME=/path/to/Android/Sdk/ +``` + +To run `package_name.sh`, you will need `aapt` installed in `/usr/bin/`: +``` +sudo apt install aapt +``` + + ## TL;DR Clone the repository and update submodules: ``` @@ -33,13 +45,6 @@ $ ./shortcut.sh com.android.chrome "Chrome" The file `chrome_shortcut.apk` should then appear in the same directory. -## Dependencies -Scripts in this repository require the Android SDK, see [Android SDK installation instructions](https://www.androidcentral.com/installing-android-sdk-windows-mac-and-linux-tutorial) for installation details. Once installed, export the SDK's path to the `ANDROID_HOME` environment variable, for example: -``` -export ANDROID_HOME=/path/to/Android/Sdk/ -``` - - ## Usage ### package_name.sh Returns an APK's the package-name.