Skip to content

Commit 50ca57d

Browse files
authored
Merge pull request #55 from umbraco/feature/activecampaign-assets
Feature/activecampaign assets
2 parents 6278ef9 + 9676806 commit 50ca57d

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

src/Umbraco.Cms.Integrations.Crm.ActiveCampaign/Umbraco.Cms.Integrations.Crm.ActiveCampaign.csproj

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,29 @@
2525
<PackageReference Include="Umbraco.Cms.Web.Common" version="10.1.0" />
2626
</ItemGroup>
2727

28+
<ItemGroup>
29+
<Content Include="App_Plugins\UmbracoCms.Integrations\Crm\ActiveCampaign\**\*.*">
30+
<Pack>true</Pack>
31+
<PackagePath>App_Plugins\UmbracoCms.Integrations\Crm\ActiveCampaign\</PackagePath>
32+
</Content>
33+
<None Include="build\**\*.*">
34+
<Pack>True</Pack>
35+
<PackagePath>buildTransitive</PackagePath>
36+
</None>
37+
</ItemGroup>
38+
39+
<ItemGroup>
40+
<Content Include="App_Plugins\**\*.*">
41+
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
42+
<CopyToPublishDirectory>Always</CopyToPublishDirectory>
43+
</Content>
44+
</ItemGroup>
45+
46+
<ItemGroup>
47+
<Content Include="App_Plugins\UmbracoCms.Integrations\backoffice\icons\icon-activecampaign.svg">
48+
<Pack>true</Pack>
49+
<PackagePath>App_Plugins\UmbracoCms.Integrations\backoffice\icons</PackagePath>
50+
</Content>
51+
</ItemGroup>
52+
2853
</Project>

src/Umbraco.Cms.Integrations.Crm.ActiveCampaign/build/Umbraco.Cms.Integrations.Crm.ActiveCampaign.targets

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
<ActiveCampaignPropertyEditorFilesPath>
44
$(MSBuildThisFileDirectory)..\App_Plugins\UmbracoCms.Integrations\Crm\ActiveCampaign\**\*.*
55
</ActiveCampaignPropertyEditorFilesPath>
6+
<ActiveCampaignPropertyEditorIconPath>
7+
$(MSBuildThisFileDirectory)..\App_Plugins\UmbracoCms.Integrations\backoffice\icons\*.*
8+
</ActiveCampaignPropertyEditorIconPath>
69
</PropertyGroup>
10+
711
<Target Name="CopyActiveCampaignPropertyEditorAssets" BeforeTargets="Build">
812
<ItemGroup>
913
<ActiveCampaignPropertyEditorFiles Include="$(ActiveCampaignPropertyEditorFilesPath)" />
@@ -16,13 +20,28 @@
1620
SkipUnchangedFiles="true" />
1721
</Target>
1822

23+
<Target Name="CopyActiveCampaignPropertyEditorIcon" BeforeTargets="Build">
24+
<ItemGroup>
25+
<ActiveCampaignPropertyEditorIcon Include="$(ActiveCampaignPropertyEditorIconPath)" />
26+
</ItemGroup>
27+
<Message
28+
Text="Copying ActiveCampaign icon"
29+
Importance="high" />
30+
<Copy SourceFiles="@(ActiveCampaignPropertyEditorIcon)"
31+
DestinationFolder="$(MSBuildProjectDirectory)\App_Plugins\UmbracoCms.Integrations\backoffice\icons"
32+
SkipUnchangedFiles="true" />
33+
</Target>
34+
1935
<Target Name="ClearActiveCampaignPropertyEditorAssets" BeforeTargets="Clean">
2036
<ItemGroup>
2137
<ActiveCampaignPropertyEditorDir
2238
Include="$(MSBuildProjectDirectory)\App_Plugins\UmbracoCms\Crm\ActiveCampaign\" />
39+
<ActiveCampaignPropertyEditorIconPath
40+
Include="$(MSBuildProjectDirectory)\App_Plugins\UmbracoCms\backoffice\icons\icon-activecampaign.svg" />
2341
</ItemGroup>
2442
<Message Text="Clear old ActiveCampaign Property Editor data" Importance="high" />
2543
<RemoveDir Directories="@(ActiveCampaignPropertyEditorDir)" />
44+
<Delete Files="@(ActiveCampaignPropertyEditorIconPath)" />
2645
</Target>
2746

2847
</Project>

0 commit comments

Comments
 (0)