Mercurial > clickerconvert
annotate packaging/win-createpackage.sh.in @ 87:cc0ce6d26c9f
Added tag 1.3 for changeset 08cca723e37d
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Wed, 05 Oct 2016 15:01:26 +0200 |
parents | 1e6e7699f0b8 |
children |
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 |
76
1e6e7699f0b8
Add replacements.ini to configure text replacements
Andre Heinecke <andre.heinecke@intevation.de>
parents:
51
diff
changeset
|
14 echo File \"@CMAKE_SOURCE_DIR@/src/replacements.ini\" >> @CMAKE_CURRENT_BINARY_DIR@/filelist_in.nsh |
1e6e7699f0b8
Add replacements.ini to configure text replacements
Andre Heinecke <andre.heinecke@intevation.de>
parents:
51
diff
changeset
|
15 echo Delete \"$INSTDIR\\replacements.ini\" >> @CMAKE_CURRENT_BINARY_DIR@/filelist_un.nsh |
51
e9cc707838d1
Add Windows packaging
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
16 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
|
17 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
|
18 |
e9cc707838d1
Add Windows packaging
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
19 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
|
20 |
e9cc707838d1
Add Windows packaging
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
21 makensis \ |
e9cc707838d1
Add Windows packaging
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
22 -Dplugin_dir="@CMAKE_BINARY_DIR@" \ |
e9cc707838d1
Add Windows packaging
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
23 -Dversion_number=@PROJECT_VERSION@ \ |
e9cc707838d1
Add Windows packaging
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
24 -Dnumeric_version=@HG_REVISION_TAG@.0.0 \ |
e9cc707838d1
Add Windows packaging
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
25 -Dsetupname="@CMAKE_BINARY_DIR@/@PRETTY_NAME@-@PROJECT_VERSION@.exe" \ |
e9cc707838d1
Add Windows packaging
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
26 -Dproductname="@PRETTY_NAME@" \ |
e9cc707838d1
Add Windows packaging
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
27 -Dpath_sep="/" \ |
e9cc707838d1
Add Windows packaging
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
28 -Dinfo_url="https://wald.intevation.org/projects/clickerconvert/" \ |
e9cc707838d1
Add Windows packaging
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
29 -Dsize=$EST_SIZE \ |
e9cc707838d1
Add Windows packaging
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
30 -Dproductname_short="@PROJECT_NAME@" @CMAKE_SOURCE_DIR@/packaging/@PROJECT_NAME@.nsi |