-
-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathBuildAllTargets.proj
68 lines (64 loc) · 4.45 KB
/
BuildAllTargets.proj
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
57
58
59
60
61
62
63
64
65
66
67
68
<?xml version="1.0" encoding="utf-8"?>
<Project
DefaultTargets="Restore;Build;Packaging"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="Restore">
<ItemGroup>
<ProjectReference Include="$(MSBuildThisFileDirectory)NanaBox.sln">
<AdditionalProperties>Configuration=Debug;Platform=x64</AdditionalProperties>
</ProjectReference>
<ProjectReference Include="$(MSBuildThisFileDirectory)NanaBox.sln">
<AdditionalProperties>Configuration=Release;Platform=x64</AdditionalProperties>
</ProjectReference>
</ItemGroup>
<MSBuild
Projects="@(ProjectReference)"
Targets="Restore"
StopOnFirstFailure="True"
Properties="PreferredToolArchitecture=x64" />
</Target>
<Target Name="Build">
<MSBuild
Projects="$(MSBuildThisFileDirectory)NanaBoxPackage\NanaBoxPackage.wapproj"
Targets="Build"
BuildInParallel="True"
StopOnFirstFailure="True"
Properties="PreferredToolArchitecture=x64;Configuration=Debug;Platform=x64" />
<MSBuild
Projects="$(MSBuildThisFileDirectory)NanaBoxPackage\NanaBoxPackage.wapproj"
Targets="Build"
BuildInParallel="True"
StopOnFirstFailure="True"
Properties="PreferredToolArchitecture=x64;Configuration=Release;Platform=x64" />
</Target>
<Target Name="Packaging">
<PropertyGroup>
<InputBinariesPath>$(MSBuildThisFileDirectory)Output\Binaries\Release\</InputBinariesPath>
<OutputBinariesPath>$(MSBuildThisFileDirectory)Output\Binaries\Root\Binaries\</OutputBinariesPath>
<OutputSymbolsPath>$(MSBuildThisFileDirectory)Output\Binaries\Root\Symbols\</OutputSymbolsPath>
<OutputFileNamePrefix>NanaBox_1.3.$([System.DateTime]::Today.Subtract($([System.DateTime]::Parse('2022-04-01'))).TotalDays).0</OutputFileNamePrefix>
</PropertyGroup>
<MakeDir Directories="$(OutputBinariesPath)arm64" />
<MakeDir Directories="$(OutputBinariesPath)x64" />
<MakeDir Directories="$(OutputSymbolsPath)arm64" />
<MakeDir Directories="$(OutputSymbolsPath)x64" />
<Copy SourceFiles="$(MSBuildThisFileDirectory)License.md" DestinationFiles="$(OutputBinariesPath)License.txt" />
<Copy SourceFiles="$(MSBuildThisFileDirectory)ReadMe.md" DestinationFiles="$(OutputBinariesPath)ReadMe.txt" />
<Copy SourceFiles="$(MSBuildThisFileDirectory)Documents\ConfigurationReference.md" DestinationFiles="$(OutputBinariesPath)ConfigurationReference.txt" />
<Copy SourceFiles="$(MSBuildThisFileDirectory)Documents\ConfigurationSchema.json" DestinationFiles="$(OutputBinariesPath)ConfigurationSchema.json" />
<Copy SourceFiles="$(MSBuildThisFileDirectory)Documents\People.md" DestinationFiles="$(OutputBinariesPath)People.txt" />
<Copy SourceFiles="$(MSBuildThisFileDirectory)Documents\ReleaseNotes.md" DestinationFiles="$(OutputBinariesPath)ReleaseNotes.txt" />
<Copy SourceFiles="$(MSBuildThisFileDirectory)Documents\GenerateVmmsCertificate.ps1" DestinationFiles="$(OutputBinariesPath)GenerateVmmsCertificate.ps1" />
<Copy SourceFiles="$(InputBinariesPath)arm64\Mile.Xaml.Styles.SunValley.xbf" DestinationFiles="$(OutputBinariesPath)arm64\Mile.Xaml.Styles.SunValley.xbf" />
<Copy SourceFiles="$(InputBinariesPath)arm64\NanaBox.exe" DestinationFiles="$(OutputBinariesPath)arm64\NanaBox.exe" />
<Copy SourceFiles="$(InputBinariesPath)arm64\NanaBox.pri" DestinationFiles="$(OutputBinariesPath)arm64\resources.pri" />
<Copy SourceFiles="$(InputBinariesPath)x64\Mile.Xaml.Styles.SunValley.xbf" DestinationFiles="$(OutputBinariesPath)x64\Mile.Xaml.Styles.SunValley.xbf" />
<Copy SourceFiles="$(InputBinariesPath)x64\NanaBox.exe" DestinationFiles="$(OutputBinariesPath)x64\NanaBox.exe" />
<Copy SourceFiles="$(InputBinariesPath)x64\NanaBox.pri" DestinationFiles="$(OutputBinariesPath)x64\resources.pri" />
<Copy SourceFiles="$(MSBuildThisFileDirectory)License.md" DestinationFiles="$(OutputSymbolsPath)License.txt" />
<Copy SourceFiles="$(InputBinariesPath)arm64\NanaBox.pdb" DestinationFiles="$(OutputSymbolsPath)arm64\NanaBox.pdb" />
<Copy SourceFiles="$(InputBinariesPath)x64\NanaBox.pdb" DestinationFiles="$(OutputSymbolsPath)x64\NanaBox.pdb" />
<Exec Command="7z a -r .\Output\$(OutputFileNamePrefix)_Binaries.zip .\Output\Binaries\Root\Binaries\*.*" WorkingDirectory="$(MSBuildThisFileDirectory)"/>
<Exec Command="7z a -r .\Output\$(OutputFileNamePrefix)_DebugSymbols.zip .\Output\Binaries\Root\Symbols\*.*" WorkingDirectory="$(MSBuildThisFileDirectory)"/>
</Target>
</Project>