comparison packaging/win-createpackage.sh.in @ 51:e9cc707838d1

Add Windows packaging
author Andre Heinecke <andre.heinecke@intevation.de>
date Tue, 19 Jul 2016 17:44:17 +0200
parents
children 1e6e7699f0b8
comparison
equal deleted inserted replaced
50:36ee5dd46fd3 51:e9cc707838d1
1 #!/bin/bash
2 # Copyright (C) 2016 by ETH Zürich
3 # Software engineering by Intevation GmbH
4 #
5 # This file is Free Software under the GNU GPL (v>=2)
6 # and comes with ABSOLUTELY NO WARRANTY!
7 # See LICENSE.txt for details.
8
9 echo "; This file is autogenerated." > @CMAKE_CURRENT_BINARY_DIR@/filelist_in.nsh
10 echo "; This file is autogenerated." > @CMAKE_CURRENT_BINARY_DIR@/filelist_un.nsh
11
12 echo File \"@CMAKE_BINARY_DIR@/src/@PROJECT_NAME@.exe\" >> @CMAKE_CURRENT_BINARY_DIR@/filelist_in.nsh
13 echo Delete \"$INSTDIR\\@PROJECT_NAME@.exe\" >> @CMAKE_CURRENT_BINARY_DIR@/filelist_un.nsh
14 echo File \"@CMAKE_SOURCE_DIR@/LICENSE.txt\" >> @CMAKE_CURRENT_BINARY_DIR@/filelist_in.nsh
15 echo Delete \"$INSTDIR\\LICENSE.txt\" >> @CMAKE_CURRENT_BINARY_DIR@/filelist_un.nsh
16
17 EST_SIZE=$(du -s @CMAKE_BINARY_DIR@/src/@PROJECT_NAME@.exe| cut -f 1)
18
19 makensis \
20 -Dplugin_dir="@CMAKE_BINARY_DIR@" \
21 -Dversion_number=@PROJECT_VERSION@ \
22 -Dnumeric_version=@HG_REVISION_TAG@.0.0 \
23 -Dsetupname="@CMAKE_BINARY_DIR@/@PRETTY_NAME@-@PROJECT_VERSION@.exe" \
24 -Dproductname="@PRETTY_NAME@" \
25 -Dpath_sep="/" \
26 -Dinfo_url="https://wald.intevation.org/projects/clickerconvert/" \
27 -Dsize=$EST_SIZE \
28 -Dproductname_short="@PROJECT_NAME@" @CMAKE_SOURCE_DIR@/packaging/@PROJECT_NAME@.nsi
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)