OUYA icons, #3

This commit is contained in:
Antonin Décimo
2014-09-20 22:32:33 +02:00
parent 02f1738297
commit 835257d805
3 changed files with 10 additions and 3 deletions

View File

@@ -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 It will then search the icon directory for subdirectories like
`drawable-mdpi`, `drawable-hdpi`, `drawable-xhdpi` and `drawable-xxhdpi` `drawable-mdpi`, `drawable-hdpi`, `drawable-xhdpi` and `drawable-xxhdpi`
to find an `ic_launcher.png` image. 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. `--activity` The name of the class that extends GameActivity.
By default it is the name of the project with Activity appended, By default it is the name of the project with Activity appended,
eventual spaces and dashes replaced by underscores. eventual spaces and dashes replaced by underscores.

View File

@@ -128,6 +128,7 @@ The script will first look up for filename that contains
It will then search the icon directory for subdirectories like It will then search the icon directory for subdirectories like
\fIdrawable-mdpi\fR, \fIdrawable-hdpi\fR, \fIdrawable-xhdpi\fR and \fIdrawable-xxhdpi\fR \fIdrawable-mdpi\fR, \fIdrawable-hdpi\fR, \fIdrawable-xhdpi\fR and \fIdrawable-xxhdpi\fR
to find an \fIic_launcher.png\fR image. to find an \fIic_launcher.png\fR image.
OUYA icon (size \fI732x412\fR, or \fIdrawable-xhdpi/ouya_icon.png\fR) is supported.
.TP .TP
.B \-\-activity \fIactivity\fR .B \-\-activity \fIactivity\fR
The name of the class that extends GameActivity. The name of the class that extends GameActivity.

View File

@@ -137,6 +137,9 @@ if [ -n "$ICON_DIR" ]; then
elif [ "$RES" = "144x144" ]; then elif [ "$RES" = "144x144" ]; then
cp "$PROJECT_DIR"/"$ICON_DIR"/"$ICON" \ cp "$PROJECT_DIR"/"$ICON_DIR"/"$ICON" \
"$LOVE_ANDROID_DIR"/res/drawable-xxhdpi/ic_launcher.png "$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 fi
done done
if [ -f "$PROJECT_DIR/$ICON_DIR/drawable-mdpi/ic_launcher.png" ]; then 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 if [ -f "$PROJECT_DIR/$ICON_DIR/drawable-xxhdpi/ic_launcher.png" ]; then
cp "$PROJECT_DIR"/"$ICON_DIR"/drawable-xxhdpi/ic_launcher.png \ cp "$PROJECT_DIR"/"$ICON_DIR"/drawable-xxhdpi/ic_launcher.png \
"$LOVE_ANDROID_DIR"/res/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 fi
ant debug ant debug
cp bin/love_android_sdl2-debug.apk "$RELEASE_DIR" cp bin/love_android_sdl2-debug.apk "$RELEASE_DIR"
git checkout -- . git checkout -- .