view packaging/tmp-createpackage.sh.in @ 633:6c090638b2b4

Use static buffer for module file name. According to the msdn examle the return value of getmodulefilename should be used to indicate success and not the size. And according to comments on that function on Windows 8.1 it does not return the needed size. So better be more robust and just use max_path as a limit.
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 23 Jun 2014 15:29:48 +0200
parents a4e75d90d3f6
children fdc15f0cfdd8
line wrap: on
line source
# Copyright (C) 2014 by Bundesamt für Sicherheit in der Informationstechnik
# Software engineering by Intevation GmbH
#
# This file is Free Software under the GNU GPL (v>=2)
# 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

NSSDIR="@NSS_BASE_DIR@/bin/"

TMPDIR=$(mktemp -d)

EXEFILES=$(find . -name cinst.exe -o -name trustbridge.exe -o -name mozilla.exe)

cp $NSSDIR/*.dll $TMPDIR
cp $EXEFILES $TMPDIR

echo $TMPDIR
makensis -Dfiles_dir=$TMPDIR \
    -Dcompany="Bundesamt für Sicherheit in der Informationstechnik" \
    -Dversion_number=@PROJECT_VERSION@ \
    -Dsetupname="@CMAKE_BINARY_DIR@/TrustBridge-@PROJECT_VERSION@.exe" \
    -Dproductname="TrustBridge" \
    -Dpath_sep="/" \
    -Dproductname_short="TrustBridge" @CMAKE_SOURCE_DIR@/packaging/trustbridge.nsi
rm -r $TMPDIR

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