Browse Source

add marked icon for GitHub minetest

master
poikilos 5 years ago
committed by Jacob Gustafson
parent
commit
f034e6ff16
  1. 12
      utilities/extra/install-minetest.net-all-backends-systemwide.sh

12
utilities/extra/install-minetest.net-all-backends-systemwide.sh

@ -156,6 +156,18 @@ cmake .$ext_lua -DENABLE_GETTEXT=on -DENABLE_CURSES=on -DENABLE_FREETYPE=on -DEN
# -DCMAKE_BUILD_TYPE=Release as per https://aur.archlinux.org/minetest-git.git
make -j$(nproc)
sudo make install
target_shortcut=/usr/local/share/applications/net.minetest.minetest.desktop
tmp_shortcut=$target_shortcut.tmp
if [ -f "$target_shortcut" ]; then
sudo mv $target_shortcut $tmp_shortcut
# sudo bash -c "cat $tmp_shortcut | grep -v \"^Name=\" > $target_shortcut"
# sudo bash -c "echo 'Name=Minetest (GitHub)' >> $target_shortcut"
# see https://stackoverflow.com/questions/82256/how-do-i-use-sudo-to-redirect-output-to-a-location-i-dont-have-permission-to-wr
cat $tmp_shortcut | grep -v \"^Name=\" | sudo tee $target_shortcut > /dev/null
echo 'Name=Minetest (git)' | grep -v \"^Name=\" | sudo tee $target_shortcut >> /dev/null
fi
if [ -f "`command -v update-desktop-database`" ]; then
echo "updating desktop database as per https://aur.archlinux.org/minetest-git.git"
update-desktop-database &>/dev/null && update-desktop-database -q

Loading…
Cancel
Save