Project

General

Profile

« Previous | Next » 

Revision c14c8110

Added by Andreas Kohlbecker about 11 years ago

building windows installer integrated in mvn

View differences:

src/main/installer/win32/setup.nsi
13 13
# General Symbol Definitions
14 14
!define /date BUILD_TIMESTAMP "%Y%m%d-%H%M%S"
15 15
!define REGKEY "SOFTWARE\$(^Name)"
16
!define VERSION 3.0
17
!define PATCH_VERSION 2-${BUILD_TIMESTAMP}
16
!define VERSION ${project.version}
18 17
!define COMPANY "EDIT - European Distributed Institute of Taxonomy"
19 18
!define EDIT_PLATFORM "EDIT Platform for Cybertaxonomy"
20 19
!define URL http://wp5.e-taxonomy.eu/
......
24 23
!include Sections.nsh
25 24

  
26 25
# Files and Folders
27
!define OUT_FOLDER "..\..\..\..\target"
26
!define OUT_FOLDER "${project.build.directory}"
28 27
!define JAR_FILE_NAME "cdm-server-${VERSION}.jar"
29
!define JAR_FILE "..\..\..\..\target\${JAR_FILE_NAME}"
30
!define CDMLIBRARY_TEMPLATE "..\templates\.cdmLibrary"
28
!define JAR_FILE "${project.build.directory}\${JAR_FILE_NAME}"
29
!define CDMLIBRARY_TEMPLATE "${project.build.directory}\installer\templates\.cdmLibrary"
31 30

  
32 31
# Reserved Files
33 32
ReserveFile "${NSISDIR}\Plugins\StartMenu.dll"
......
42 41
Page instfiles
43 42

  
44 43
# Installer attributes
45
OutFile "${OUT_FOLDER}\EDIT CDM-Server-${VERSION}.${PATCH_VERSION}.exe"
44
OutFile "${OUT_FOLDER}\EDIT CDM-Server-${VERSION}-${BUILD_TIMESTAMP}.exe"
46 45
InstallDir "$PROGRAMFILES\EDIT CDM-Server"
47 46
CRCCheck on
48 47
XPStyle on
49 48
Icon "${NSISDIR}\Contrib\Graphics\Icons\modern-install.ico"
50 49
ShowInstDetails show
51 50
AutoCloseWindow false
52
LicenseData ..\..\..\..\LICENSE.TXT
51
LicenseData ${project.basedir}\LICENSE.TXT
53 52
VIProductVersion 3.0.0.0
54 53
VIAddVersionKey ProductName "$(^Name)"
55 54
VIAddVersionKey ProductVersion "${VERSION}"

Also available in: Unified diff