Mercurial > clickerconvert
annotate packaging/win-createpackage.sh.in @ 53:a43d8cf2fa95
Various fixes and improvements. Fix windows packaging.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Tue, 19 Jul 2016 17:45:57 +0200 |
parents | e9cc707838d1 |
children | 1e6e7699f0b8 |
rev | line source |
---|---|
51
e9cc707838d1
Add Windows packaging
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
1 #!/bin/bash |
e9cc707838d1
Add Windows packaging
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
2 # Copyright (C) 2016 by ETH Zürich |
e9cc707838d1
Add Windows packaging
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
3 # Software engineering by Intevation GmbH |
e9cc707838d1
Add Windows packaging
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
4 # |
e9cc707838d1
Add Windows packaging
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
5 # This file is Free Software under the GNU GPL (v>=2) |
e9cc707838d1
Add Windows packaging
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
6 # and comes with ABSOLUTELY NO WARRANTY! |
e9cc707838d1
Add Windows packaging
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
7 # See LICENSE.txt for details. |
e9cc707838d1
Add Windows packaging
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
8 |
e9cc707838d1
Add Windows packaging
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
9 echo "; This file is autogenerated." > @CMAKE_CURRENT_BINARY_DIR@/filelist_in.nsh |
e9cc707838d1
Add Windows packaging
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
10 echo "; This file is autogenerated." > @CMAKE_CURRENT_BINARY_DIR@/filelist_un.nsh |
e9cc707838d1
Add Windows packaging
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
11 |
e9cc707838d1
Add Windows packaging
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
12 echo File \"@CMAKE_BINARY_DIR@/src/@PROJECT_NAME@.exe\" >> @CMAKE_CURRENT_BINARY_DIR@/filelist_in.nsh |
e9cc707838d1
Add Windows packaging
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
13 echo Delete \"$INSTDIR\\@PROJECT_NAME@.exe\" >> @CMAKE_CURRENT_BINARY_DIR@/filelist_un.nsh |
e9cc707838d1
Add Windows packaging
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
14 echo File \"@CMAKE_SOURCE_DIR@/LICENSE.txt\" >> @CMAKE_CURRENT_BINARY_DIR@/filelist_in.nsh |
e9cc707838d1
Add Windows packaging
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
15 echo Delete \"$INSTDIR\\LICENSE.txt\" >> @CMAKE_CURRENT_BINARY_DIR@/filelist_un.nsh |
e9cc707838d1
Add Windows packaging
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
16 |
e9cc707838d1
Add Windows packaging
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
17 EST_SIZE=$(du -s @CMAKE_BINARY_DIR@/src/@PROJECT_NAME@.exe| cut -f 1) |
e9cc707838d1
Add Windows packaging
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
18 |
e9cc707838d1
Add Windows packaging
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
19 makensis \ |
e9cc707838d1
Add Windows packaging
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
20 -Dplugin_dir="@CMAKE_BINARY_DIR@" \ |
e9cc707838d1
Add Windows packaging
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
21 -Dversion_number=@PROJECT_VERSION@ \ |
e9cc707838d1
Add Windows packaging
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
22 -Dnumeric_version=@HG_REVISION_TAG@.0.0 \ |
e9cc707838d1
Add Windows packaging
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
23 -Dsetupname="@CMAKE_BINARY_DIR@/@PRETTY_NAME@-@PROJECT_VERSION@.exe" \ |
e9cc707838d1
Add Windows packaging
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
24 -Dproductname="@PRETTY_NAME@" \ |
e9cc707838d1
Add Windows packaging
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
25 -Dpath_sep="/" \ |
e9cc707838d1
Add Windows packaging
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
26 -Dinfo_url="https://wald.intevation.org/projects/clickerconvert/" \ |
e9cc707838d1
Add Windows packaging
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
27 -Dsize=$EST_SIZE \ |
e9cc707838d1
Add Windows packaging
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
28 -Dproductname_short="@PROJECT_NAME@" @CMAKE_SOURCE_DIR@/packaging/@PROJECT_NAME@.nsi |