diff --git a/app/hooks/icons.sh b/app/hooks/icons.sh new file mode 100644 index 0000000..d63e9a1 --- /dev/null +++ b/app/hooks/icons.sh @@ -0,0 +1,26 @@ +#!/bin/sh +base=$1 +#convert "$base" -resize '29x29' -unsharp 1x4 "res/icon/ios/Icon-Small.png" +#convert "$base" -resize '40x40' -unsharp 1x4 "res/icon/ios/Icon-Small-40.png" +#convert "$base" -resize '50x50' -unsharp 1x4 "res/icon/ios/Icon-Small-50.png" +#convert "$base" -resize '57x57' -unsharp 1x4 "res/icon/ios/Icon.png" +#convert "$base" -resize '58x58' -unsharp 1x4 "res/icon/ios/Icon-Small@2x.png" +convert "$base" -resize '60x60' -unsharp 1x4 "res/icon/ios/Icon-60.png" +#convert "$base" -resize '72x72' -unsharp 1x4 "res/icon/ios/Icon-72.png" +#convert "$base" -resize '76x76' -unsharp 1x4 "res/icon/ios/Icon-76.png" +#convert "$base" -resize '80x80' -unsharp 1x4 "res/icon/ios/Icon-Small-40@2x.png" +#convert "$base" -resize '100x100' -unsharp 1x4 "res/icon/ios/Icon-Small-50@2x.png" +#convert "$base" -resize '114x114' -unsharp 1x4 "res/icon/ios/Icon@2x.png" +convert "$base" -resize '120x120' -unsharp 1x4 "res/icon/ios/Icon-60@2x.png" +#convert "$base" -resize '144x144' -unsharp 1x4 "res/icon/ios/Icon-72@2x.png" +#convert "$base" -resize '152x152' -unsharp 1x4 "res/icon/ios/Icon-76@2x.png" +convert "$base" -resize '180x180' -unsharp 1x4 "res/icon/ios/Icon-60@3x.png" +#convert "$base" -resize '512x512' -unsharp 1x4 "res/icon/ios/iTunesArtwork" +#convert "$base" -resize '1024x1024' -unsharp 1x4 "res/icon/ios/iTunesArtwork@2x" + +#convert "$base" -resize '36x36' -unsharp 1x4 "res/icon/android/Icon-ldpi.png" +convert "$base" -resize '48x48' -unsharp 1x4 "res/icon/android/Icon-mdpi.png" +convert "$base" -resize '72x72' -unsharp 1x4 "res/icon/android/Icon-hdpi.png" +convert "$base" -resize '96x96' -unsharp 1x4 "res/icon/android/Icon-xhdpi.png" +convert "$base" -resize '144x144' -unsharp 1x4 "res/icon/android/Icon-xxhdpi.png" +convert "$base" -resize '192x192' -unsharp 1x4 "res/icon/android/Icon-xxxhdpi.png" \ No newline at end of file diff --git a/app/hooks/screen.sh b/app/hooks/screen.sh new file mode 100644 index 0000000..ed733b5 --- /dev/null +++ b/app/hooks/screen.sh @@ -0,0 +1,14 @@ +#!/bin/sh +base=$1 + +c="convert $1 -gravity center" + +# iPhone +$c -resize 320x480 "res/screen/ios/Default~iphone.png" +$c -resize 640x960 "res/screen/ios/Default@2x~iphone.png" +$c -resize 640x1136 "res/screen/ios/Default-568h@2x~iphone.png" + +$c -resize 320x426 "res/screen/android/splash-portrait-ldpi.png" +$c -resize 320x470 "res/screen/android/splash-portrait-mdpi.png" +$c -resize 480x640 "res/screen/android/splash-portrait-hdpi.png" +$c -resize 720x960 "res/screen/android/splash-portrait-xhdpi.png" \ No newline at end of file