Permalink
Browse files

Install icons for linux version (and appimage)

  • Loading branch information...
cknave committed Oct 11, 2017
1 parent c366bcc commit 6e62f64303eb6c6deb7ae9c61511088297fd1bcf
View
@@ -6,3 +6,24 @@ SUBDIRS = docs dosbox glob src
EXTRA_DIST = copying.txt soundfx.zzm bootstrap.sh
pkgdata_DATA = soundfx.zzm
#if FREEDESKTOP
desktopdir = $(datadir)/applications
desktop_DATA = inst/platform/linux/kevedit.desktop
ICON_SIZES = 16 32 128 256 512
install-icons:
for size in $(ICON_SIZES); do \
mkdir -p $(datadir)/icons/hicolor/$${size}x$${size}/apps; \
$(INSTALL_DATA) $(srcdir)/inst/icon$${size}.png $(datadir)/icons/hicolor/$${size}x$${size}/apps/kevedit.png; \
done
uninstall-icons:
for size in $(ICON_SIZES); do \
rm -f $(datadir)/icons/hicolor/$${size}x$${size}/apps/kevedit.png; \
done
install-data-local: install-icons
uninstall-local: uninstall-icons
#endif
View
@@ -74,15 +74,37 @@ case "$host" in
esac
AC_MSG_CHECKING(for macOS)
case "$host" in
*darwin*)
AC_DEFINE(MACOS, [1], [Define to 1 if host is macOS])
AC_MSG_RESULT(yes)
;;
*)
AC_MSG_RESULT(no)
;;
esac
AC_ARG_WITH(dosbox, AC_HELP_STRING([--without-dosbox],[include DOSBox emulation support]),dosbox=$withval,dosbox=maybe)
if test "$dosbox" == "maybe"; then
if test -n "$WINDOWS32" || test -n "$DOS"; then
AC_MSG_NOTICE(DOS/Windows: Not enabling DOSBox support)
if test -n "$DOS"; then
AC_MSG_NOTICE(DOS: Not enabling DOSBox support)
else
AC_MSG_NOTICE(Non-DOS/Windows: Enabling DOSBox support)
AC_MSG_NOTICE(Non-DOS: Enabling DOSBox support)
dosbox=yes
fi
fi
AM_CONDITIONAL([FREEDESKTOP], [test "$freedesktop" = "yes"])
AC_ARG_WITH(freedesktop, AC_HELP_STRING([--with-freedesktop],[install desktop file and icons for GNOME/KDE]),freedesktop=$withval,freedesktop=maybe)
if test "$freedesktop" == "maybe"; then
if test -n "$WINDOWS32" || test -n "$DOS" || test -n "$MACOS"; then
AC_MSG_NOTICE(DOS/Windows/Mac: Not installing desktop file and icons)
else
AC_MSG_NOTICE(Non-DOS/Windows/Mac: Installing desktop file and icons)
freedesktop=yes
fi
fi
if test "$dosbox" == "yes"; then
AC_CHECK_PROG(MKISOFS, mkisofs, mkisofs)

This file was deleted.

Oops, something went wrong.
Binary file not shown.
@@ -8,9 +8,7 @@ if [ -z "$SOURCE" ]; then
fi
rm -rf /work/appdir
mkdir /work/appdir
cp -a /platform/linux/KevEdit.AppDir /work/appdir
cp /vendor/AppRun-x86_64 /work/appdir/KevEdit.AppDir/AppRun
mkdir -p /work/appdir/KevEdit.AppDir
rm -rf /work/kevedit
mkdir /work/kevedit
@@ -27,5 +25,9 @@ automake --add-missing
make
make install
cp -a /platform/linux/kevedit.desktop /work/appdir/KevEdit.AppDir/
cp -a /work/kevedit/inst/icon512.png /work/appdir/KevEdit.AppDir/kevedit.png
cp /vendor/AppRun-x86_64 /work/appdir/KevEdit.AppDir/AppRun
mkdir -p /work/appdir/KevEdit.AppDir/usr/lib
cp -a /usr/local/lib/libSDL2*.so* /work/appdir/KevEdit.AppDir/usr/lib/
@@ -0,0 +1,10 @@
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=KevEdit
Comment=ZZT Editor
Exec=kevedit
Icon=kevedit
Terminal=false
Type=Application
StartupNotify=false

0 comments on commit 6e62f64

Please sign in to comment.