From c7aa930ba0ae2235ccd00fb826564e924bb44b1f Mon Sep 17 00:00:00 2001 From: elijah Date: Thu, 12 Jul 2018 10:33:41 -0700 Subject: render more riseupvpn sizes --- Rakefile | 17 +++++++++++++++-- .../res/drawable-hdpi/riseupvpn-launcher.png | Bin 0 -> 1843 bytes .../res/drawable-ldpi/riseupvpn-launcher.png | Bin 0 -> 1173 bytes .../res/drawable-mdpi/riseupvpn-launcher.png | Bin 0 -> 1530 bytes .../res/drawable-xhdpi/riseupvpn-launcher.png | Bin 0 -> 2412 bytes riseup/mac/riseupvpn.icns | Bin 85628 -> 85625 bytes 6 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 riseup/android/res/drawable-hdpi/riseupvpn-launcher.png create mode 100644 riseup/android/res/drawable-ldpi/riseupvpn-launcher.png create mode 100644 riseup/android/res/drawable-mdpi/riseupvpn-launcher.png create mode 100644 riseup/android/res/drawable-xhdpi/riseupvpn-launcher.png diff --git a/Rakefile b/Rakefile index 68e53c8..6a61950 100644 --- a/Rakefile +++ b/Rakefile @@ -1,3 +1,10 @@ +## +## REQUIREMENTS: +## +## ruby +## sudo apt install optipng icnsutils inkscape +## + ## ## CONFIGURATION ## @@ -47,7 +54,12 @@ output_directories = [ 'riseup', 'riseup/linux', 'riseup/mac', - 'riseup/android' + 'riseup/android', + 'riseup/android/res', + 'riseup/android/res/drawable-ldpi', + 'riseup/android/res/drawable-mdpi', + 'riseup/android/res/drawable-hdpi', + 'riseup/android/res/drawable-xhdpi' ] android_launcher_target = [ @@ -152,7 +164,9 @@ copy = [ # # RiseupVPN # +riseup_android_launcher = android_launcher_target.map {|i| i = i.clone; i[:dest] = "riseup/" + i[:dest]; i} svg_to_raster += [ + ['source/riseup/riseupvpn-launcher.svg', riseup_android_launcher], ['source/riseup/riseupvpn-launcher.svg', {:size => 512, :dest => 'riseup/android/hi-res-icon.png'}], ['source/riseup/riseupvpn-feature-graphic.svg', {:width => 1024, :height => 512, :dest => 'riseup/android/feature-graphic.png'}], ['source/riseup/riseupvpn-launcher.svg', {:size => 256, :dest => 'riseup/linux/riseupvpn.png'}], @@ -161,7 +175,6 @@ svg_to_raster += [ png_to_icns << ['riseup/mac/riseupvpn.png', {:dest => 'riseup/mac/riseupvpn.icns'}] copy << ['source/riseup/riseupvpn-launcher.svg', {:dest => 'riseup/linux/riseupvpn.svg'}] - ## ## HELPERS ## diff --git a/riseup/android/res/drawable-hdpi/riseupvpn-launcher.png b/riseup/android/res/drawable-hdpi/riseupvpn-launcher.png new file mode 100644 index 0000000..faaaa0f Binary files /dev/null and b/riseup/android/res/drawable-hdpi/riseupvpn-launcher.png differ diff --git a/riseup/android/res/drawable-ldpi/riseupvpn-launcher.png b/riseup/android/res/drawable-ldpi/riseupvpn-launcher.png new file mode 100644 index 0000000..9a106e2 Binary files /dev/null and b/riseup/android/res/drawable-ldpi/riseupvpn-launcher.png differ diff --git a/riseup/android/res/drawable-mdpi/riseupvpn-launcher.png b/riseup/android/res/drawable-mdpi/riseupvpn-launcher.png new file mode 100644 index 0000000..cf774af Binary files /dev/null and b/riseup/android/res/drawable-mdpi/riseupvpn-launcher.png differ diff --git a/riseup/android/res/drawable-xhdpi/riseupvpn-launcher.png b/riseup/android/res/drawable-xhdpi/riseupvpn-launcher.png new file mode 100644 index 0000000..eb46e2f Binary files /dev/null and b/riseup/android/res/drawable-xhdpi/riseupvpn-launcher.png differ diff --git a/riseup/mac/riseupvpn.icns b/riseup/mac/riseupvpn.icns index 94fae18..91d6ea7 100644 Binary files a/riseup/mac/riseupvpn.icns and b/riseup/mac/riseupvpn.icns differ -- cgit v1.2.3