Skip to content

Commit

Permalink
teaks to target
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanRynne committed May 8, 2024
1 parent 14b1888 commit d68d3ce
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions DUI3-DX/Connectors/Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,22 @@
<Error Text="ConnectorVersion property is not set" Condition=" '$(ConnectorVersion)' == '' " />

<PropertyGroup>
<OutputDirectory>$(RepositoryRoot)/dist/$(ConnectorSlug)/$(ConnectorVersion)</OutputDirectory>
<OutputZipDirectory>$(RepositoryRoot)/dist/zip</OutputZipDirectory>
<OutputDirectory>$(RepositoryRoot)dist/$(ConnectorSlug)/$(ConnectorVersion)/</OutputDirectory>
<OutputZipDirectory>$(RepositoryRoot)dist/zip/</OutputZipDirectory>
<OutputZipFile>$(ConnectorSlug)-$(ConnectorVersion)-$(Version).zip</OutputZipFile>
</PropertyGroup>

<RemoveDir Directories="$(OutputDirectory)" ContinueOnError="true" />
<RemoveDir Directories="$(OutputZipDirectory)" ContinueOnError="true"/>
<RemoveDir Directories="$(OutputDirectory)"/>
<MakeDir Directories="$(OutputDirectory)"/>
<MakeDir Directories="$(OutputZipDirectory)"/>
<MakeDir Directories="$(OutputZipDirectory)" ContinueOnError="true"/>

<ItemGroup>
<DllFiles Include="$(OutDir)**/*.*"/>
</ItemGroup>

<Copy SourceFiles="@(DllFiles)" DestinationFolder="$(OutputDirectory)/%(RecursiveDir)"/>
<Copy SourceFiles="@(DllFiles)" DestinationFolder="$(OutputDirectory)%(RecursiveDir)" />

<ZipDirectory SourceDirectory="$(OutputDirectory)" DestinationFile="$(OutputZipDirectory)/$(OutputZipFile)" Overwrite="true"/>
<ZipDirectory SourceDirectory="$(OutputDirectory)" DestinationFile="$(OutputZipDirectory)$(OutputZipFile)" Overwrite="true"/>

</Target>
</Project>

0 comments on commit d68d3ce

Please sign in to comment.