forked from lars-erik/umbraco-relation-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakeUmbracoPackage.proj
48 lines (40 loc) · 1.51 KB
/
MakeUmbracoPackage.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
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="CopyEverything">
<Import Project="$(MSBuildExtensionsPath)\ExtensionPack\4.0\MSBuild.ExtensionPack.tasks"/>
<PropertyGroup>
<PackageDir>UmbracoPackage\</PackageDir>
<SourceDir>Umbraco.RelationEditor.Web\</SourceDir>
</PropertyGroup>
<ItemGroup>
<Binary Include="$(SourceDir)bin\Umbraco.RelationEditor.dll"/>
</ItemGroup>
<ItemGroup>
<Content Include="$(SourceDir)App_Plugins\RelationEditor\*.*"/>
</ItemGroup>
<ItemGroup>
<Config Include="$(SourceDir)Config\RelationEditor.config"/>
</ItemGroup>
<ItemGroup>
<PackageXml Include="package.xml"/>
</ItemGroup>
<Target Name="CopyEverything">
<RemoveDir Directories="$(PackageDir)"/>
<MakeDir Directories="$(PackageDir)"/>
<Copy SourceFiles="@(Binary)" DestinationFolder="$(PackageDir)"/>
<Copy SourceFiles="@(Content)" DestinationFolder="$(PackageDir)"/>
<Copy SourceFiles="@(Config)" DestinationFolder="$(PackageDir)"/>
<Copy SourceFiles="@(PackageXml)" DestinationFolder="$(PackageDir)"/>
</Target>
<Target Name="ZipIt" AfterTargets="CopyEverything">
<ItemGroup>
<PackageFiles Include="$(PackageDir)**\*.*"/>
</ItemGroup>
<Zip TaskAction="Create"
RemoveRoot="$(PackageDir)"
CompressFiles="@(PackageFiles)"
ZipFileName="Umbraco.RelationEditor.zip"
/>
</Target>
<Target Name="RemoveBuild" AfterTargets="ZipIt">
<RemoveDir Directories="$(PackageDir)"/>
</Target>
</Project>