Added ANDROID_STUDIO as optional variable to specify android studio location.

This commit is contained in:
fabianu 2020-06-20 16:40:36 +02:00
parent d2f1488934
commit 4a454f0817
2 changed files with 7 additions and 2 deletions

View File

@ -19,7 +19,11 @@ An Android Studio template has been added to the project to help creating all fi
To install the template (to be done only once): To install the template (to be done only once):
- Go to folder `./tools/template`. - Go to folder `./tools/template`.
- Run the script `./configure.sh`. - Mac OSX: Run the script `./configure.sh`.
Linux: Run `ANDROID_STUDIO=/path/to/android-studio ./configure`
- e.g. `ANDROID_STUDIO=/usr/local/android-studio ./configure`
- Restart Android Studio. - Restart Android Studio.
To create a new screen: To create a new screen:

View File

@ -17,8 +17,9 @@
# #
echo "Configure RiotX Template..." echo "Configure RiotX Template..."
if [ -z ${ANDROID_STUDIO+x} ]; then ANDROID_STUDIO="/Applications/Android Studio.app/Contents"; fi
{ {
ln -s $(pwd)/RiotXFeature /Applications/Android\ Studio.app/Contents/plugins/android/lib/templates/other ln -s $(pwd)/RiotXFeature "${ANDROID_STUDIO%/}/plugins/android/lib/templates/other"
} && { } && {
echo "Please restart Android Studio." echo "Please restart Android Studio."
} }