Skip to content

Commit

Permalink
ant target for windows installer. See debian packge "nsis" and http:/…
Browse files Browse the repository at this point in the history
  • Loading branch information
allo committed Oct 15, 2006
1 parent a29b4d4 commit 3a98104
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
11 changes: 11 additions & 0 deletions build.xml
Expand Up @@ -182,6 +182,7 @@
<delete file="${build}/yacy.java" failonerror="false"/>
<copy file="${src}/yacy.java" tofile="${build}/yacy.java" overwrite="true" filtering="true" />
<copy file="yacy-svn-3.spec" tofile="${release}/SPECS/yacy-svn.spec" overwrite="true" filtering="true" />
<copy file="yacy.nsi" tofile="${release}/WINDOWS/yacy.nsi" overwrite="true" filtering="true" />
<!--<copy file="${doc}/Download.html" tofile="${doc}/Download.html.up" filtering="true" />-->
</target>

Expand Down Expand Up @@ -736,11 +737,21 @@
<mkdir dir="${release}/BUILD" />
<rpm specFile="yacy-svn.spec" topDir="${release}" />
<delete dir="${release}/SPECS" failonerror="false" />
<delete dir="${release}/WINDOWS" failonerror="false" />
<move file="${release}/RPMS/noarch/yacy-${releaseVersion}_${releaseNr}-3.noarch.rpm"
tofile="${release}/yacy-${releaseVersion}_${releaseNr}-3.noarch.rpm" />
<move file="${release}/RPMS/noarch/yacy-libx-${releaseVersion}_${releaseNr}-3.noarch.rpm"
tofile="${release}/yacy-libx-${releaseVersion}_${releaseNr}-3.noarch.rpm" />
<delete dir="${release}/RPMS" failonerror="false" />
</target>

<!-- http://nsisant.sourceforge.net/ -->
<taskdef name="nsis" classname="net.sf.nsisant.Task">
<classpath location="nsisant-1.2.jar"/>
</taskdef>
<target name="exe" depends="all" description="Creates the windows installer.exe">
<mkdir dir="${release}/WINDOWS" />
<nsis script="${release}/WINDOWS/yacy.nsi" nocd="yes" />
</target>

</project>
8 changes: 4 additions & 4 deletions yacy.nsi
Expand Up @@ -4,7 +4,7 @@

Name "YaCy"

OutFile "yacy_v0.48_20061010_2743.exe"
OutFile "RELEASE/WINDOWS/yacy_v@REPL_VERSION@_@REPL_DATE@_@REPL_REVISION_NR@.exe"
InstallDir $PROGRAMFILES\YaCy

SetCompress auto
Expand All @@ -17,7 +17,7 @@ InstType "Normal"
InstType "Full"

; The text to prompt the user to enter a directory
ComponentText "This will install YaCy v0.48 (Build 20061010) on your computer. Select which optional things you want to be installed."
ComponentText "This will install YaCy v@REPL_VERSION@ (Build @REPL_DATE@) on your computer. Select which optional things you want to be installed."
; The text to prompt the user to enter a directory
#DirText "If an old version was installed into another location (eg. AnomicHTTPProxy), you have to move the DATA Directory to the new location."
DirText "Choose a directory to install into:"
Expand Down Expand Up @@ -164,9 +164,9 @@ Section "Development"
File "build.properties"

SetOutPath "$INSTDIR\htroot"
File "HTROOT\*.java"
File "htroot\*.java"
SetOutPath "$INSTDIR\htroot\yacy"
File "HTROOT\yacy\*.java"
File "htroot\yacy\*.java"
SetOutPath "$INSTDIR\htroot\htdocsdefault"
File "htroot\htdocsdefault\*.java"
SetOutPath "$INSTDIR\htroot\www"
Expand Down

0 comments on commit 3a98104

Please sign in to comment.