summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2018-07-12 10:33:41 -0700
committerelijah <elijah@riseup.net>2018-07-12 10:33:41 -0700
commitc7aa930ba0ae2235ccd00fb826564e924bb44b1f (patch)
tree5b17e794262df6ad8758cb3f505123d2b12f7be9
parent92d71112428f50ffec609923c52d68cca4d5d7c0 (diff)
render more riseupvpn sizesHEADmaster
-rw-r--r--Rakefile17
-rw-r--r--riseup/android/res/drawable-hdpi/riseupvpn-launcher.pngbin0 -> 1843 bytes
-rw-r--r--riseup/android/res/drawable-ldpi/riseupvpn-launcher.pngbin0 -> 1173 bytes
-rw-r--r--riseup/android/res/drawable-mdpi/riseupvpn-launcher.pngbin0 -> 1530 bytes
-rw-r--r--riseup/android/res/drawable-xhdpi/riseupvpn-launcher.pngbin0 -> 2412 bytes
-rw-r--r--riseup/mac/riseupvpn.icnsbin85628 -> 85625 bytes
6 files changed, 15 insertions, 2 deletions
diff --git a/Rakefile b/Rakefile
index 68e53c8..6a61950 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,4 +1,11 @@
##
+## 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
--- /dev/null
+++ b/riseup/android/res/drawable-hdpi/riseupvpn-launcher.png
Binary files 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
--- /dev/null
+++ b/riseup/android/res/drawable-ldpi/riseupvpn-launcher.png
Binary files 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
--- /dev/null
+++ b/riseup/android/res/drawable-mdpi/riseupvpn-launcher.png
Binary files 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
--- /dev/null
+++ b/riseup/android/res/drawable-xhdpi/riseupvpn-launcher.png
Binary files differ
diff --git a/riseup/mac/riseupvpn.icns b/riseup/mac/riseupvpn.icns
index 94fae18..91d6ea7 100644
--- a/riseup/mac/riseupvpn.icns
+++ b/riseup/mac/riseupvpn.icns
Binary files differ