forked from phillco/LANdrop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBuild.xml
More file actions
56 lines (41 loc) · 2.17 KB
/
Build.xml
File metadata and controls
56 lines (41 loc) · 2.17 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?xml version="1.0" encoding="utf-8" ?>
<!--________________________________________________________________________________________
LANdrop Deployment Script
=========================
Call with /p:Channel=<channel> /p:BuildNumber=<build #>
External Dependencies (must be in your PATH):
- .NETZ (assembly packer): http://madebits.com/netz/
- WinSCP (sftp client): http://winscp.net/
You must have a saved profile called "LANdrop" in your WinSCP configuration,
with stored authentication (private key or password).
________________________________________________________________________________________-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Run">
<Target Name="Run">
<CallTarget Targets="Clean" />
<CallTarget Targets="Compile" />
<CallTarget Targets="Publish" />
</Target>
<Target Name="Clean">
<RemoveDir Directories="LANdrop/bin" ContinueOnError="true" />
<RemoveDir Directories="BuildPrepare/bin" ContinueOnError="true" />
</Target>
<Target Name="MakeBuildPrepare">
<MSBuild Projects="BuildPrepare/BuildPrepare.csproj" Properties="Configuration=Release" />
</Target>
<!-- Sets version info in BuildInfo.cs, and creates <channel>.json -->
<Target Name="Prepare" DependsOnTargets="Clean;MakeBuildPrepare">
<Exec Command="BuildPrepare\bin\Release\BuildPrepare $(BuildNumber) $(Channel)"/>
</Target>
<Target Name="Compile" DependsOnTargets="Clean;Prepare">
<MSBuild Projects="LANdrop/LANdrop.csproj" Properties="Configuration=Release" />
</Target>
<!-- Compacts all the assemblies down to one EXE. -->
<Target Name="MergeAssemblies" DependsOnTargets="Compile">
<MakeDir Directories="LANdrop/bin/Publish"/>
<Exec Command="netz -w -z -s -o ../Publish LANdrop.exe BugzScout.dll Nini.dll HybridDSP.Net.dll Newtonsoft.Json.Net20.dll log4net.dll" WorkingDirectory="LANdrop/bin/Release"/>
</Target>
<!-- Uplods the build and <channel>json to LANdrop.net. -->
<Target Name="Publish" DependsOnTargets="Prepare; MergeAssemblies">
<Exec Command="winscp.com /script=Scripts\deployScript.bat" WorkingDirectory="$(MSBuildProjectDirectory)"/>
</Target>
</Project>