diff packaging/linux-createpackage.sh.in @ 872:02e357826417

(issue81) Add desktop file
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 06 Aug 2014 18:56:23 +0200
parents 3a9b0c75f5a6
children 4087e489f569
line wrap: on
line diff
--- a/packaging/linux-createpackage.sh.in	Wed Aug 06 18:03:23 2014 +0200
+++ b/packaging/linux-createpackage.sh.in	Wed Aug 06 18:56:23 2014 +0200
@@ -15,6 +15,7 @@
           "@CMAKE_BINARY_DIR@/cinst/mozilla"
           "@CMAKE_BINARY_DIR@/ui/trustbridge"
           "@CMAKE_BINARY_DIR@/ui/trustbridge-tray-starter.sh")
+ICON="@CMAKE_SOURCE_DIR@/ui/img/logo.png"
 
 L10N_DE_FILE="@CMAKE_BINARY_DIR@/packaging/linux-installer.l10n-de"
 
@@ -22,11 +23,13 @@
 # shar-archive.
 echo "Using $TMPDIR for temporary installation to build installer..."
 install -d "$TMPDIR/bin"
+install -d "$TMPDIR/share/pixmaps/trustbridge"
 install "${EXEFILES[@]}" "$TMPDIR/bin"
+install "$ICON" "$TMPDIR/share/pixmaps/trustbridge/trustbridge.png"
 
 echo "Creating shar archive ..."
 cd "$TMPDIR"
-shar -z -B bin/* | sed 's/^exit 0//' >>"$TMPSHAR"
+shar -z -B bin/* share/pixmaps/trustbridge/trustbridge.png | sed 's/^exit 0//' >>"$TMPSHAR"
 
 echo "Building $INSTALLER..."
 cp "@CMAKE_BINARY_DIR@/packaging/linux-installer.inc" "$INSTALLER"
@@ -35,6 +38,7 @@
   binnames="`basename $file` $binnames"
 done
 sed -i "s/###BINNAMES###/${binnames}/" "$INSTALLER"
+sed -i "s/###ICONNAME###/trustbridge.png/" "$INSTALLER"
 sed -i "/###SHAR###/r $TMPSHAR" "$INSTALLER"
 sed -i "/###L10N_DE###/r $L10N_DE_FILE" "$INSTALLER"
 chmod +x "$INSTALLER"

http://wald.intevation.org/projects/trustbridge/