More tweaks to build instructions.
This commit is contained in:
parent
8adcc43e90
commit
f41f74da65
@ -17,6 +17,7 @@ Open Source Project. (Which I also wrote. :-) )
|
||||
If you are unable to use the Play Store, you can also
|
||||
[download from GitHub](http://jackpal.github.com/Android-Terminal-Emulator/downloads/Term.apk)
|
||||
|
||||
See [Building](docs/Building.md) for build instructions.
|
||||
|
||||
Got questions? Please check out the
|
||||
[FAQ](http://github.com/jackpal/Android-Terminal-Emulator/wiki/Frequently-Asked-Questions)
|
||||
|
@ -68,10 +68,15 @@ Building TEA from the command line
|
||||
----------------------------------
|
||||
|
||||
1. Open a command line shell window and navigate to the main TEA directory.
|
||||
2. Execute the gradlew build script:
|
||||
2. Create a local.properties file with two lines in it:
|
||||
|
||||
$ ./gradlew assembleDebug
|
||||
sdk.dir=/path/to/android/sdk
|
||||
ndk.dir=/path/to/android/ndk
|
||||
|
||||
3. Build
|
||||
|
||||
$ ./tools/build-debug
|
||||
|
||||
3. To copy the built executable to a device:
|
||||
|
||||
$ .
|
||||
$ ./tools/push-and-run-debug
|
||||
|
15
tools/build-debug
Executable file
15
tools/build-debug
Executable file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
# command line build script for building debug version
|
||||
set -e
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
ATE_ROOT="$( cd $DIR/.. && pwd )"
|
||||
|
||||
cd "$ATE_ROOT"
|
||||
|
||||
if [ ! -f "local.properties" ]; then
|
||||
echo "local.properties does not exist. Please create it."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
./gradlew assembleDebug
|
@ -11,7 +11,7 @@ ATE_ROOT="$( cd $DIR/.. && pwd )"
|
||||
cd "$ATE_ROOT"
|
||||
|
||||
if [ ! -f "local.properties" ]; then
|
||||
echo "local.properties does not exist. Please run tools/update.sh"
|
||||
echo "local.properties does not exist. Please create it."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
18
tools/push-and-run-debug
Executable file
18
tools/push-and-run-debug
Executable file
@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
# command line build script for installing and running terminal emulator.
|
||||
set -e
|
||||
|
||||
if [ -z "${ANDROID_SDK_ROOT+xxx}" ]; then
|
||||
echo "Please define ANDROID_SDK_ROOT to point to the Android SDK"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -d "$ANDROID_SDK_ROOT" ]; then
|
||||
echo "The directory $ANDROID_SDK_ROOT = ${ANDROID_NDK_ROOT} does not exist."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
ADB="$ANDROID_SDK_ROOT/platform-tools/adb"
|
||||
|
||||
$ADB uninstall jackpal.androidterm
|
||||
$ADB install -r term/build/outputs/apk/term-debug.apk && $ADB shell am start -n jackpal.androidterm/jackpal.androidterm.Term
|
Loading…
Reference in New Issue
Block a user