aheinecke@405: # Copyright (C) 2014 by Bundesamt für Sicherheit in der Informationstechnik aheinecke@405: # Software engineering by Intevation GmbH aheinecke@405: # aheinecke@405: # This file is Free Software under the GNU GPL (v>=2) aheinecke@405: # and comes with ABSOLUTELY NO WARRANTY! aheinecke@405: # See LICENSE.txt for details. aheinecke@405: aheinecke@340: #!/bin/bash aheinecke@340: aheinecke@340: #NSSDIR is hackish as this will be replaced by static compiling aheinecke@340: # anyway aheinecke@340: aheinecke@340: NSSDIR="/home/andre/ubuntu/src/mxe/usr/i686-w64-mingw32.static/nss-3.12.7/bin/" aheinecke@340: MYPATH=$(dirname `readlink -f $0`) aheinecke@340: aheinecke@340: TMPDIR=$(mktemp -d) aheinecke@340: aheinecke@490: EXEFILES=$(find . -name cinst.exe -o -name trustbridge.exe -o -name mozilla.exe) aheinecke@340: aheinecke@340: cp $NSSDIR/*.dll $TMPDIR aheinecke@340: cp $EXEFILES $TMPDIR aheinecke@340: aheinecke@340: echo $TMPDIR aheinecke@340: makensis -Dfiles_dir=$TMPDIR \ aheinecke@410: -Dcompany="Bundesamt für Sicherheit in der Informationstechnik" \ aheinecke@340: -Dversion_number=0.0.0.1 \ aheinecke@410: -Dsetupname="TrustBridge.exe" \ aheinecke@410: -Dproductname="TrustBridge" \ aheinecke@410: -Dproductname_short="TrustBridge" $MYPATH/trustbridge.nsi aheinecke@340: rm -r $TMPDIR