From 9234f44b9f008c5fdba386985253b17a1e166eca Mon Sep 17 00:00:00 2001 From: Sergii Pylypenko Date: Tue, 4 Oct 2016 18:14:24 +0300 Subject: [PATCH] SDL: OUYA icon and manifest, for that one user who still got an OUYA in his living room and won't throw it away just because someone else decides that it's dead --- .gitignore | 1 + changeAppSettings.sh | 9 +++++++++ project/AndroidManifestTemplate.xml | 1 + 3 files changed, 11 insertions(+) diff --git a/.gitignore b/.gitignore index 5bc39b821..26493028f 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,4 @@ /project/themes/converter /project/jni/android-support /project/res/drawable/banner.png +/project/res/drawable-xhdpi/ouya_icon.png diff --git a/changeAppSettings.sh b/changeAppSettings.sh index fc33407b6..5ca64ac2c 100755 --- a/changeAppSettings.sh +++ b/changeAppSettings.sh @@ -1063,6 +1063,15 @@ done rm -rf project/bin/classes rm -rf project/bin/res +# Generate OUYA icon, for that one user who still got an OUYA in his living room and won't throw it away just because someone else decides that it's dead +rm -rf project/res/drawable-xhdpi/ouya_icon.png +if which convert > /dev/null; then + mkdir -p project/res/drawable-xhdpi + convert project/res/drawable/icon.png -resize '732x412!' project/res/drawable-xhdpi/ouya_icon.png +else + echo "Install ImageMagick to auto-resize Ouya icon from icon.png" +fi + ./copyAssets.sh || exit 1 rm -rf project/jni/android-support diff --git a/project/AndroidManifestTemplate.xml b/project/AndroidManifestTemplate.xml index f6f4d12c0..2013af968 100644 --- a/project/AndroidManifestTemplate.xml +++ b/project/AndroidManifestTemplate.xml @@ -25,6 +25,7 @@ +