Skip to content

Commit

Permalink
no zipping
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanRynne committed May 8, 2024
1 parent d68d3ce commit 5db7226
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ jobs:
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
path: dist/zip/*
path: dist/
22 changes: 12 additions & 10 deletions DUI3-DX/Connectors/Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -1,29 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.targets', '$(MSBuildThisFileDirectory)../'))"/>

<Import
Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.targets', '$(MSBuildThisFileDirectory)../'))"/>

<Target Name="CopyToDistAndZip" AfterTargets="Build" Condition="'$(IsDesktopBuild)' == false">

<Error Text="ConnectorSlug property is not set" Condition=" '$(ConnectorSlug)' == '' " />
<Error Text="ConnectorVersion property is not set" Condition=" '$(ConnectorVersion)' == '' " />

<Error Text="ConnectorSlug property is not set" Condition=" '$(ConnectorSlug)' == '' "/>
<Error
Text="ConnectorVersion property is not set" Condition=" '$(ConnectorVersion)' == '' "/>

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

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

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

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

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

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

0 comments on commit 5db7226

Please sign in to comment.