Revision 3237753a
Added by Andreas Kohlbecker about 13 years ago
src/main/installer/linux/build-deb.xml | ||
---|---|---|
41 | 41 |
</taskdef> |
42 | 42 |
|
43 | 43 |
<target name="deb_package" description="build the deb file"> |
44 |
<mkdir dir="target/installer" />
|
|
45 |
<deb todir="target/installer"
|
|
44 |
<mkdir dir="target" /> |
|
45 |
<deb todir="target" |
|
46 | 46 |
package="${package.name}" |
47 | 47 |
preDepends="jsvc" |
48 | 48 |
section="web" |
src/main/installer/win32/setup.nsi | ||
---|---|---|
2 | 2 |
# 28.10.2010 13:58:54 |
3 | 3 |
|
4 | 4 |
# TODO : preserve $INSTDIR/.cdmLibrary from being deleted if the user desides to keep it, or just warn the user. |
5 |
#
|
|
5 |
# |
|
6 | 6 |
# Wiki: http://nsis.sourceforge.net/Main_Page |
7 | 7 |
# see http://nsis.sourceforge.net/Docs/Chapter5.html for Compile Time Command reference |
8 | 8 |
# |
... | ... | |
24 | 24 |
!include Sections.nsh |
25 | 25 |
|
26 | 26 |
# Files and Folders |
27 |
!define OUT_FOLDER "..\..\..\..\target\installer"
|
|
27 |
!define OUT_FOLDER "..\..\..\..\target" |
|
28 | 28 |
!define JAR_FILE_NAME "cdm-server-${VERSION}.jar" |
29 | 29 |
!define JAR_FILE "..\..\..\..\target\${JAR_FILE_NAME}" |
30 | 30 |
!define CDMLIBRARY_TEMPLATE "..\templates\.cdmLibrary" |
... | ... | |
66 | 66 |
Section -Main SEC0000 |
67 | 67 |
SetOutPath $INSTDIR |
68 | 68 |
SetOverwrite on |
69 |
File /r /x .svn /x *.log /x *.jar program-folder\*
|
|
69 |
File /r /x .svn /x *.log /x *.jar program-folder\* |
|
70 | 70 |
SetOutPath "$INSTDIR\lib" |
71 | 71 |
File ${JAR_FILE} |
72 | 72 |
# last but not least the .cdmLibrary folder unlesses it already exists |
... | ... | |
91 | 91 |
WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" UninstallString $INSTDIR\uninstall.exe |
92 | 92 |
WriteRegDWORD HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" NoModify 1 |
93 | 93 |
WriteRegDWORD HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" NoRepair 1 |
94 |
|
|
95 |
ExecWait '"$INSTDIR\CDMServer.exe" --install "$INSTDIR\etc\CDMServer.conf$\"'
|
|
94 |
|
|
95 |
ExecWait '"$INSTDIR\CDMServer.exe" --install "$INSTDIR\etc\CDMServer.conf$\"' |
|
96 | 96 |
ExecWait '"$INSTDIR\CDMServer.exe" --start "$INSTDIR\etc\CDMServer.conf$\"' |
97 | 97 |
SectionEnd |
98 | 98 |
|
... | ... | |
156 | 156 |
FunctionEnd |
157 | 157 |
|
158 | 158 |
Function .onInstSuccess |
159 |
|
|
159 |
|
|
160 | 160 |
FunctionEnd |
161 | 161 |
|
162 | 162 |
Function .onInit |
Also available in: Unified diff
copy all artefacts to download section