From 835257d805ab7373e46c5ac15820773be4357ba1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonin=20D=C3=A9cimo?= Date: Sat, 20 Sep 2014 22:32:33 +0200 Subject: [PATCH] OUYA icons, #3 --- README.md | 1 + love-release.1 | 1 + scripts/android.sh | 11 ++++++++--- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7dea019..bdc7853 100644 --- a/README.md +++ b/README.md @@ -102,6 +102,7 @@ with eventual underscores (i.e. [a-zA-Z0-9\_]), otherwise you'll get errors. It will then search the icon directory for subdirectories like `drawable-mdpi`, `drawable-hdpi`, `drawable-xhdpi` and `drawable-xxhdpi` to find an `ic_launcher.png` image. + OUYA icon (size `732x412`, or `drawable-xhdpi/ouya_icon.png`) is supported. `--activity` The name of the class that extends GameActivity. By default it is the name of the project with ‘Activity’ appended, eventual spaces and dashes replaced by underscores. diff --git a/love-release.1 b/love-release.1 index 2fcbcb1..5ebcd37 100644 --- a/love-release.1 +++ b/love-release.1 @@ -128,6 +128,7 @@ The script will first look up for filename that contains It will then search the icon directory for subdirectories like \fIdrawable-mdpi\fR, \fIdrawable-hdpi\fR, \fIdrawable-xhdpi\fR and \fIdrawable-xxhdpi\fR to find an \fIic_launcher.png\fR image. +OUYA icon (size \fI732x412\fR, or \fIdrawable-xhdpi/ouya_icon.png\fR) is supported. .TP .B \-\-activity \fIactivity\fR The name of the class that extends GameActivity. diff --git a/scripts/android.sh b/scripts/android.sh index 7460cf6..c69a0c6 100644 --- a/scripts/android.sh +++ b/scripts/android.sh @@ -137,6 +137,9 @@ if [ -n "$ICON_DIR" ]; then elif [ "$RES" = "144x144" ]; then cp "$PROJECT_DIR"/"$ICON_DIR"/"$ICON" \ "$LOVE_ANDROID_DIR"/res/drawable-xxhdpi/ic_launcher.png + elif [ "$RES" = "732x412" ]; then + cp "$PROJECT_DIR"/"$ICON_DIR"/"$ICON" \ + "$LOVE_ANDROID_DIR"/res/drawable-xhdpi/ouya_icon.png fi done if [ -f "$PROJECT_DIR/$ICON_DIR/drawable-mdpi/ic_launcher.png" ]; then @@ -155,12 +158,14 @@ if [ -n "$ICON_DIR" ]; then if [ -f "$PROJECT_DIR/$ICON_DIR/drawable-xxhdpi/ic_launcher.png" ]; then cp "$PROJECT_DIR"/"$ICON_DIR"/drawable-xxhdpi/ic_launcher.png \ "$LOVE_ANDROID_DIR"/res/drawable-xxhdpi/ic_launcher.png - fi + fi + if [ -f "$PROJECT_DIR/$ICON_DIR/drawable-xhdpi/ouya_icon.png" ]; then + cp "$PROJECT_DIR"/"$ICON_DIR"/drawable-xhdpi/ouya_icon.png \ + "$LOVE_ANDROID_DIR"/res/drawable-xhdpi/ouya_icon.png + fi fi - - ant debug cp bin/love_android_sdl2-debug.apk "$RELEASE_DIR" git checkout -- .