forked from erpnet/ErpNet.FP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
output.xml
35 lines (28 loc) · 1.55 KB
/
output.xml
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
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<OutputPath>Output</OutputPath>
<OutputType>Published</OutputType>
</PropertyGroup>
<ItemGroup>
<TargetPlatform Include="win-x86" />
<TargetPlatform Include="win-x64" />
<TargetPlatform Include="osx-x64" />
<TargetPlatform Include="linux-x64" />
<TargetPlatform Include="linux-arm" />
</ItemGroup>
<Target Name="PublishToOutputPath">
<Message Text="Performing cleanup..." Importance="high" />
<RemoveDir
Directories="$(OutputPath);$(OutputType)" />
<MakeDir Directories="$(OutputPath);$(OutputType);"/>
<Exec Command="dotnet restore --verbosity q" />
<Message Text="Publishing binaries for %(TargetPlatform.Identity) into $(OutputType) folder..." Importance="high" />
<Exec Command="dotnet publish -r %(TargetPlatform.Identity) -c Release -o Published\%(TargetPlatform.Identity) --verbosity q" />
<Message Text="Zipping binaries for all supported target platforms into $(OutputPath) folder..." Importance="high" />
<ZipDirectory
SourceDirectory="$(OutputType)/%(TargetPlatform.Identity)"
DestinationFile="$(OutputPath)/%(TargetPlatform.Identity).zip" />
<Message Text="Everything is ready. Now you could run rebuild of ErpNet.FP.Setup to create the installer into $(OutputPath) folder" Importance="high" />
</Target>
</Project>