andre@51: #!/bin/bash andre@51: # Copyright (C) 2016 by ETH Zürich andre@51: # Software engineering by Intevation GmbH andre@51: # andre@51: # This file is Free Software under the GNU GPL (v>=2) andre@51: # and comes with ABSOLUTELY NO WARRANTY! andre@51: # See LICENSE.txt for details. andre@51: andre@51: echo "; This file is autogenerated." > @CMAKE_CURRENT_BINARY_DIR@/filelist_in.nsh andre@51: echo "; This file is autogenerated." > @CMAKE_CURRENT_BINARY_DIR@/filelist_un.nsh andre@51: andre@51: echo File \"@CMAKE_BINARY_DIR@/src/@PROJECT_NAME@.exe\" >> @CMAKE_CURRENT_BINARY_DIR@/filelist_in.nsh andre@51: echo Delete \"$INSTDIR\\@PROJECT_NAME@.exe\" >> @CMAKE_CURRENT_BINARY_DIR@/filelist_un.nsh andre@76: echo File \"@CMAKE_SOURCE_DIR@/src/replacements.ini\" >> @CMAKE_CURRENT_BINARY_DIR@/filelist_in.nsh andre@76: echo Delete \"$INSTDIR\\replacements.ini\" >> @CMAKE_CURRENT_BINARY_DIR@/filelist_un.nsh andre@51: echo File \"@CMAKE_SOURCE_DIR@/LICENSE.txt\" >> @CMAKE_CURRENT_BINARY_DIR@/filelist_in.nsh andre@51: echo Delete \"$INSTDIR\\LICENSE.txt\" >> @CMAKE_CURRENT_BINARY_DIR@/filelist_un.nsh andre@51: andre@51: EST_SIZE=$(du -s @CMAKE_BINARY_DIR@/src/@PROJECT_NAME@.exe| cut -f 1) andre@51: andre@51: makensis \ andre@51: -Dplugin_dir="@CMAKE_BINARY_DIR@" \ andre@51: -Dversion_number=@PROJECT_VERSION@ \ andre@51: -Dnumeric_version=@HG_REVISION_TAG@.0.0 \ andre@51: -Dsetupname="@CMAKE_BINARY_DIR@/@PRETTY_NAME@-@PROJECT_VERSION@.exe" \ andre@51: -Dproductname="@PRETTY_NAME@" \ andre@51: -Dpath_sep="/" \ andre@51: -Dinfo_url="https://wald.intevation.org/projects/clickerconvert/" \ andre@51: -Dsize=$EST_SIZE \ andre@51: -Dproductname_short="@PROJECT_NAME@" @CMAKE_SOURCE_DIR@/packaging/@PROJECT_NAME@.nsi