-
Notifications
You must be signed in to change notification settings - Fork 36
/
PostBuild.build
41 lines (41 loc) · 1.32 KB
/
PostBuild.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?xml version="1.0"?>
<!-- Generated by NAntBuilder v2.0 -->
<project default="all" basedir="bin\Release">
<property name="build.version" value="1.1.${environment::get-variable('BUILD_NUMBER')}" dynamic="true" />
<target name="all" depends="CopyTools,CreateZip">
<echo message="Building default target" />
</target>
<target name="CopyTools">
<copy todir="Tools">
<fileset basedir="..\..\Tools">
<include name="PsExec.exe" />
</fileset>
</copy>
<copy todir="Tools">
<fileset basedir="..\..\Launcher\bin\x86\Release">
<include name="Launcher.exe" />
</fileset>
</copy>
</target>
<target name="CreateZip">
<zip zipfile="HBRelog v${build.version}.zip" includeemptydirs="True" ziplevel="9">
<fileset>
<!-- Exclude all this shit. We don't want it in the release! -->
<exclude name="**/*.csproj" />
<exclude name="*.pdb" />
<exclude name="*.xml" />
<exclude name="*.manifest" />
<exclude name="Logs*/*" />
<exclude name="HBRelog.vshost.exe" />
<include name="HBRelog.exe" />
<include name="Launcher.exe" />
<include name="Authenticator.dll" />
<include name="BouncyCastle.Crypto.dll" />
<include name="Fasm.NET.dll" />
<include name="GreyMagic.dll" />
<include name="*.md" />
<include name="Tools/*.exe" />
</fileset>
</zip>
</target>
</project>