Add icons

This commit is contained in:
2023-08-04 13:07:24 +02:00
parent a07118a01a
commit 5f4ec1bee3
16 changed files with 10 additions and 2 deletions
+10 -2
View File
@@ -34,12 +34,19 @@ prepare_winebox() {
echo "DONE"
echo -n "Create winbox.sh..."
echo "#!/bin/bash" > $WINBOX_SH
echo "wine "$WINBOX_EXE >> $WINBOX_SH
echo "#!/bin/bash" >$WINBOX_SH
echo "wine "$WINBOX_EXE >>$WINBOX_SH
chmod a+x $WINBOX_SH
echo "DONE"
}
addIcons() {
for size in $(ls -1 icons/winbox-*.png | cut -d\- -f2 | cut -d\. -f1 | paste -sd ' '); do
mkdir -p /usr/share/icons/hicolor/${size}/apps/
cp -f icons/winbox-${size}.png /usr/share/icons/hicolor/${size}/apps/winbox.png
done
}
createMenu() {
echo -n "Creating application launcher..."
echo "[Desktop Entry]" >$WINBOX_DESKTOP
@@ -61,4 +68,5 @@ createMenu() {
check_root
check_progs
prepare_winebox
addIcons
createMenu