-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathPackage.proj
61 lines (53 loc) · 2.09 KB
/
Package.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
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Prepare;Zip" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- Settings -->
<PropertyGroup>
<PackageTargetPath>Misuzilla.Applications.AppleWirelessKeyboardHelper\bin\x86\Release</PackageTargetPath>
<PackageOutputPath>Package</PackageOutputPath>
</PropertyGroup>
<!-- Tasks -->
<PropertyGroup>
<MSBuildCommunityTasksPath>$(MSBuildExtensionsPath)\MSBuildCommunityTasks</MSBuildCommunityTasksPath>
<MisuzillaHashTasksPath>$(MSBuildProjectDirectory)\MSBuildTasks</MisuzillaHashTasksPath>
</PropertyGroup>
<Import Project="$(MSBuildCommunityTasksPath)\MSBuild.Community.Tasks.Targets"/>
<!--Import Project="$(MisuzillaHashTasksPath)\Misuzilla.Build.Tasks.Hash.Targets"/-->
<ItemGroup>
<DefaultExclude Include="**\.svn\**" />
<DefaultExclude Include="**\obj\**" />
<DefaultExclude Include="**\Test\**" />
<DefaultExclude Include="**\doc\**" />
<DefaultExclude Include="**\Backup\**" />
<DefaultExclude Include="*.user" />
<DefaultExclude Include="*.zip" />
<DefaultExclude Include="**\*.vshost.exe" />
<DefaultExclude Include="**\*.pdb" />
</ItemGroup>
<Target Name="Prepare">
<Time Format="yyyyMMdd">
<Output TaskParameter="FormattedTime" PropertyName="BuildDate" />
</Time>
<CreateProperty Value="$(PackageOutputPath)\AppleWirelessKeyboardHelper-$(BuildDate).zip">
<Output TaskParameter="Value" PropertyName="PackageZipPath" />
</CreateProperty>
<!--
<CallTarget Targets="Zip" />
<CallTarget Targets="MakeHash" />
-->
</Target>
<ItemGroup>
<ZipFiles Include="$(PackageTargetPath)\**\*.*" Exclude="@(DefaultExclude)" />
</ItemGroup>
<Target Name="Zip">
<MakeDir Directories="$(PackageOutputPath)" />
<Zip
Files="@(ZipFiles)"
ZipFileName="$(PackageZipPath)"
WorkingDirectory="$(PackageTargetPath)"
/>
</Target>
<!--Target Name="MakeHash">
<MD5 Files="$(PackageZipPath)" />
<SHA1 Files="$(PackageZipPath)" />
</Target-->
</Project>