Menu entry and icons for Linux.

This commit is contained in:
Steve 2016-03-10 16:07:02 +00:00
parent 26b6b3eb7e
commit 4bb3ae1efb
7 changed files with 21 additions and 0 deletions

BIN
icons/tbftss-128x128.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
icons/tbftss-16x16.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 778 B

BIN
icons/tbftss-256x256.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

BIN
icons/tbftss-32x32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
icons/tbftss-64x64.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

9
icons/tbftss.desktop Normal file
View File

@ -0,0 +1,9 @@
[Desktop Entry]
Encoding=UTF-8
Categories=Game;ActionGame;
Name=TBFTSS : The Pandoran War
Comment=Mission and Objective based 2D Space Shooter
Icon=tbftss
Exec=tbftss
Terminal=false
Type=Application

View File

@ -3,6 +3,8 @@ CC = gcc
BIN_DIR = /usr/bin BIN_DIR = /usr/bin
DATA_DIR = /opt/tbftss DATA_DIR = /opt/tbftss
LOCALE_DIR = /usr/share/locale LOCALE_DIR = /usr/share/locale
ICON_DIR = /usr/share/icons/hicolor
DESKTOP_DIR = /usr/share/applications
SEARCHPATH += src/plat/unix SEARCHPATH += src/plat/unix
OBJS += unixInit.o OBJS += unixInit.o
@ -29,6 +31,11 @@ install:
cp -r manual $(DATA_DIR) cp -r manual $(DATA_DIR)
cp -r music $(DATA_DIR) cp -r music $(DATA_DIR)
cp -r sound $(DATA_DIR) cp -r sound $(DATA_DIR)
cp -p icons/$(PROG)-16x16.png $(ICON_DIR)/16x16/apps/$(PROG).png
cp -p icons/$(PROG)-32x32.png $(ICON_DIR)/32x32/apps/$(PROG).png
cp -p icons/$(PROG)-64x64.png $(ICON_DIR)/64x64/apps/$(PROG).png
cp -p icons/$(PROG)-128x128.png $(ICON_DIR)/128x128/apps/$(PROG).png
cp -p icons/$(PROG).desktop $(DESKTOP_DIR)
@for f in $(LOCALE_MO); do \ @for f in $(LOCALE_MO); do \
lang=`echo $$f | sed -e 's/^locale\///;s/\.mo$$//'`; \ lang=`echo $$f | sed -e 's/^locale\///;s/\.mo$$//'`; \
@ -39,6 +46,11 @@ install:
uninstall: uninstall:
$(RM) $(BIN_DIR)/$(PROG) $(RM) $(BIN_DIR)/$(PROG)
$(RM) -rf $(DATA_DIR) $(RM) -rf $(DATA_DIR)
$(RM) $(ICON_DIR)/16x16/apps/$(PROG).png
$(RM) $(ICON_DIR)/32x32/apps/$(PROG).png
$(RM) $(ICON_DIR)/64x64/apps/$(PROG).png
$(RM) $(ICON_DIR)/128x128/apps/$(PROG).png
$(RM) $(DESKTOP_DIR)/$(PROG).desktop
@for f in $(LOCALE_MO); do \ @for f in $(LOCALE_MO); do \
lang=`echo $$f | sed -e 's/^locale\///;s/\.mo$$//'`; \ lang=`echo $$f | sed -e 's/^locale\///;s/\.mo$$//'`; \