[PATCH 2 of 2] Merged
Wald Commits
scm-commit at wald.intevation.org
Mon Sep 22 15:48:57 CEST 2014
# HG changeset patch
# User Emanuel Schuetze <emanuel at intevation.de>
# Date 1411393730 -7200
# Node ID 5bca48a2fb022d685590fd14f183dd78ca6e8bb2
# Parent 969970a83b6dba068decfe97312024e7c7d6a65b
# Parent eb77ddd7e1abd6f3a8cd1aa2cc3f5d09ce852f8a
Merged.
diff -r 969970a83b6d -r 5bca48a2fb02 packaging/create-dist-package.sh.in
--- a/packaging/create-dist-package.sh.in Mon Sep 22 15:34:09 2014 +0200
+++ b/packaging/create-dist-package.sh.in Mon Sep 22 15:48:50 2014 +0200
@@ -53,6 +53,39 @@
cp @CMAKE_SOURCE_DIR@/build-windows/packaging/DesktopShellRun.dll $TMPDIR/resources
cp -r @CMAKE_BINARY_DIR@/doc/help/client/html $TMPDIR/windows/doc
+echo "; This file is autogenerated." > $TMPDIR/resources/filelist_in.nsh
+echo "; This file is autogenerated." > $TMPDIR/resources/filelist_un.nsh
+OLDDIR=$(pwd)
+cd $TMPDIR/windows
+for file in `find * -name \*.exe`; do
+ echo File \"\${files_dir}\${path_sep}$file\" >> $TMPDIR/resources/filelist_in.nsh
+ echo Delete \"\$INSTDIR\\$file\" >> $TMPDIR/resources/filelist_un.nsh
+done
+cd $TMPDIR/windows/doc
+
+for curdir in `find * -maxdepth 0 -type d -not -path .`; do
+ cd $curdir
+ curpath=\"\$INSTDIR\\doc\\$curdir\"
+ echo SetOutPath $curpath >> $TMPDIR/resources/filelist_in.nsh
+ for file in `find * -maxdepth 0 -type f`; do
+ echo File \"\${files_dir}\${path_sep}doc\${path_sep}$curdir\${path_sep}$file\" >> $TMPDIR/resources/filelist_in.nsh
+ echo Delete \"\$INSTDIR\\doc\\$curdir\\$file\" >> $TMPDIR/resources/filelist_un.nsh
+ done
+ echo RMDir $curpath >> $TMPDIR/resources/filelist_un.nsh
+ cd -
+done
+
+echo SetOutPath \"\$INSTDIR\\doc\" >> $TMPDIR/resources/filelist_in.nsh
+for file in `find * -maxdepth 0 -type f -not -path .buildinfo`; do
+ echo File \"\${files_dir}\${path_sep}doc\${path_sep}$file\" >> $TMPDIR/resources/filelist_in.nsh
+ echo Delete \"\$INSTDIR\\doc\\$file\" >> $TMPDIR/resources/filelist_un.nsh
+done
+echo RMDir \"\$INSTDIR\\doc\" >> $TMPDIR/resources/filelist_un.nsh
+
+cd $OLDDIR
+
+
+
cp @CMAKE_SOURCE_DIR@/packaging/filelist.nsh $TMPDIR
cp @CMAKE_SOURCE_DIR@/packaging/trustbridge.nsi $TMPDIR
LC_ALL="de_DE.latin-1" echo "company=Bundesamt für Sicherheit in der Informationstechnik" > $TMPDIR/meta.ini
@@ -75,6 +108,7 @@
-Dpath_sep="/" \
-Dinfo_url="http://wald.intevation.org/projects/trustbridge/" \
-Dsize=$EST_SIZE \
+ -Ddescription="TrustBridge" \
-DWRITE_UNINSTALLER \
-Dproductname_short="TrustBridge" @CMAKE_SOURCE_DIR@/packaging/trustbridge.nsi
wine $TMPDIR/TrustBridge- at PROJECT_VERSION@-uni.exe /S || true
diff -r 969970a83b6d -r 5bca48a2fb02 packaging/trustbridge.nsi
--- a/packaging/trustbridge.nsi Mon Sep 22 15:34:09 2014 +0200
+++ b/packaging/trustbridge.nsi Mon Sep 22 15:48:50 2014 +0200
@@ -28,6 +28,7 @@
!define MULTIUSER_INSTALLMODE_INSTDIR "${productname_short}"
!addplugindir "${plugin_dir}"
+!addincludedir "${plugin_dir}"
!include "MultiUser.nsh"
!include "MUI2.nsh"
@@ -207,7 +208,8 @@
continue:
; The actual installation
SetOutPath "$INSTDIR"
- !include "filelist.nsh"
+ !include "filelist_in.nsh"
+ SetOutPath "$INSTDIR"
;Create uninstaller
!ifndef WRITE_UNINSTALLER
@@ -273,10 +275,9 @@
ExpandEnvStrings $0 %LOCALAPPDATA%
nsExec::ExecToLog '"$INSTDIR\trustbridge-certificate-installer.exe" "list=$0\BSI\TrustBridge\list-installed.txt" "choices=uninstall"'
skip_certs:
- RMDir /r "$INSTDIR" ; TODO (issue137) include uninstall files
-; !include "filelist-un.nsh"
-; Delete "$INSTDIR\Uninstall.exe"
-; RMDir "$INSTDIR"
+ !include "filelist_un.nsh"
+ Delete "$INSTDIR\Uninstall.exe"
+ RMDir "$INSTDIR"
!insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenuFolder
diff -r 969970a83b6d -r 5bca48a2fb02 packaging/win-createpackage.sh.in
--- a/packaging/win-createpackage.sh.in Mon Sep 22 15:34:09 2014 +0200
+++ b/packaging/win-createpackage.sh.in Mon Sep 22 15:48:50 2014 +0200
@@ -1,3 +1,4 @@
+#!/bin/bash
# Copyright (C) 2014 by Bundesamt für Sicherheit in der Informationstechnik
# Software engineering by Intevation GmbH
#
@@ -5,11 +6,8 @@
# and comes with ABSOLUTELY NO WARRANTY!
# See LICENSE.txt for details.
-#!/bin/bash
-
#NSSDIR is hackish as this will be replaced by static compiling
# anyway
-
TMPDIR=$(mktemp -d)
TMPINST=$(mktemp)
@@ -19,6 +17,36 @@
cp $EXEFILES $TMPDIR
cp -r $HELPDIR $TMPDIR/doc
+echo "; This file is autogenerated." > @CMAKE_CURRENT_BINARY_DIR@/filelist_in.nsh
+echo "; This file is autogenerated." > @CMAKE_CURRENT_BINARY_DIR@/filelist_un.nsh
+OLDDIR=$(pwd)
+cd $TMPDIR
+for file in `find * -name \*.exe`; do
+ echo File \"\${files_dir}\${path_sep}$file\" >> @CMAKE_CURRENT_BINARY_DIR@/filelist_in.nsh
+ echo Delete \"\$INSTDIR\\$file\" >> @CMAKE_CURRENT_BINARY_DIR@/filelist_un.nsh
+done
+cd $TMPDIR/doc
+
+for curdir in `find * -maxdepth 0 -type d -not -path .`; do
+ cd $curdir
+ curpath=\"\$INSTDIR\\doc\\$curdir\"
+ echo SetOutPath $curpath >> @CMAKE_CURRENT_BINARY_DIR@/filelist_in.nsh
+ for file in `find * -maxdepth 0 -type f`; do
+ echo File \"\${files_dir}\${path_sep}doc\${path_sep}$curdir\${path_sep}$file\" >> @CMAKE_CURRENT_BINARY_DIR@/filelist_in.nsh
+ echo Delete \"\$INSTDIR\\doc\\$curdir\\$file\" >> @CMAKE_CURRENT_BINARY_DIR@/filelist_un.nsh
+ done
+ echo RMDir $curpath >> @CMAKE_CURRENT_BINARY_DIR@/filelist_un.nsh
+ cd -
+done
+
+echo SetOutPath \"\$INSTDIR\\doc\" >> @CMAKE_CURRENT_BINARY_DIR@/filelist_in.nsh
+for file in `find * -maxdepth 0 -type f -not -path .buildinfo`; do
+ echo File \"\${files_dir}\${path_sep}doc\${path_sep}$file\" >> @CMAKE_CURRENT_BINARY_DIR@/filelist_in.nsh
+ echo Delete \"\$INSTDIR\\doc\\$file\" >> @CMAKE_CURRENT_BINARY_DIR@/filelist_un.nsh
+done
+echo RMDir \"\$INSTDIR\\doc\" >> @CMAKE_CURRENT_BINARY_DIR@/filelist_un.nsh
+
+cd $OLDDIR
EST_SIZE=$(du -s $TMPDIR | cut -f 1)
echo $TMPDIR
More information about the Trustbridge-commits
mailing list