Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'share/icons/minify.sh')
-rw-r--r--share/icons/minify.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/share/icons/minify.sh b/share/icons/minify.sh
new file mode 100644
index 000000000..6286031a8
--- /dev/null
+++ b/share/icons/minify.sh
@@ -0,0 +1,21 @@
+#!/usr/bin/env bash
+
+NC='\033[0m'
+YELLOW='\033[0;33m'
+
+# Build desktop icon
+echo "Creating desktop icon PNG..."
+if command -v "inkscape" &> /dev/null; then
+ inkscape -z -w 256 -h 256 icons/application/scalable/apps/keepassxc.svg -e icons/application/256x256/apps/keepassxc.png
+else
+ echo -e "${YELLOW}Could not find inkscape; keepassxc.png not built!${NC}"
+fi
+
+# Minify SVG's
+echo "Minifying SVG's..."
+minify -o icons/badges --match=.svg icons/badges
+minify -o icons/database --match=.svg icons/database
+
+# Crush PNG's
+echo "Crushing PNG's..."
+find "." -iname '*png' -exec pngcrush -ow -brute {} \;