mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-17 19:54:33 -05:00
e3c7b570ae
* Remove mention of no longer used IRC network Channels exist on matrix, and on libera.chat now. * Correctly match only files with .png extension The current search would match files such as 'createpng'. * Fix comparison in script The result was always false, due to comparing a literal string instead of a variable. * Use correct license files from upstream Correct license files obtained from: https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt https://www.gnu.org/licenses/gpl-3.0.txt https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt https://www.gnu.org/licenses/lgpl-3.0.txt * Refresh several shell scripts This fixes several shellcheck warnings, as well as makes the code more robust and have consistent codestyle between all the files. * Trim excess whitespace
22 lines
600 B
Bash
22 lines
600 B
Bash
#!/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 {} \;
|