mirror of
https://github.com/TangentFoxy/love-release.git
synced 2025-07-28 11:02:20 +00:00
OUYA icons, #3
This commit is contained in:
@@ -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.
|
||||||
|
@@ -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.
|
||||||
|
@@ -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
|
||||||
@@ -156,9 +159,11 @@ if [ -n "$ICON_DIR" ]; 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
|
||||||
|
Reference in New Issue
Block a user