Skip to content

Commit

Permalink
fix: more standalone build fixes (#14)
Browse files Browse the repository at this point in the history
A bit more build cleanup to work with publish
  • Loading branch information
mcmcgrath13 authored Nov 20, 2024
1 parent 66f0bbd commit 37b6d27
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,25 +81,26 @@
</None>
</ItemGroup>

<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
<Exec Command="$(MakeDirectory) $(BinFolder) &amp; tar -zcvf $(BinFolder)Hl7v2DefaultTemplates.tar.gz -C $(DataFolder)Templates/Hl7v2 ." />
<Target Name="CompressTemplates" BeforeTargets="PrepareForBuild">
<Exec Command="$(MakeDirectory) $(BinFolder)" />
<Exec Command="tar -zcvf $(BinFolder)Hl7v2DefaultTemplates.tar.gz -C $(DataFolder)Templates/Hl7v2 ." />
<Exec Command="tar -zcvf $(BinFolder)CcdaDefaultTemplates.tar.gz -C $(DataFolder)Templates/Ccda ." />
<Exec Command="tar -zcvf $(BinFolder)JsonDefaultTemplates.tar.gz -C $(DataFolder)Templates/Json ." />
<Exec Command="tar -zcvf $(BinFolder)Stu3ToR4DefaultTemplates.tar.gz -C $(DataFolder)Templates/Stu3ToR4 ." />
<Exec Command="tar -zcvf $(BinFolder)FhirToHl7v2DefaultTemplates.tar.gz -C $(DataFolder)Templates/FhirToHl7v2 ." />
</Target>

<Target Name="DownloadWinOrasFile" BeforeTargets="Build">
<Target Name="DownloadWinOrasFile" BeforeTargets="PrepareForBuild">
<DownloadFile SourceUrl="$(OrasWinUrl)" DestinationFolder="$(BinFolder)" DestinationFileName="$(OrasWinTarGzFile)">
<Output TaskParameter="DownloadedFile" ItemName="Content" />
</DownloadFile>
<Exec Command="tar -xvf $(BinFolder)$(OrasWinTarGzFile) -C $(BinFolder) &amp;&amp; $(CopyExecutable) $(BinFolder)oras.exe ." />
</Target>

<Target Name="DownloadOSXOrasFile" BeforeTargets="Build">
<Target Name="DownloadOSXOrasFile" BeforeTargets="PrepareForBuild">
<DownloadFile SourceUrl="$(OrasOSXUrl)" DestinationFolder="$(BinFolder)" DestinationFileName="$(OrasOSXTarGzFile)">
<Output TaskParameter="DownloadedFile" ItemName="Content" />
</DownloadFile>
<Exec Command="tar -xvf $(BinFolder)$(OrasOSXTarGzFile) -C $(BinFolder) &amp;&amp; $(CopyExecutable) $(BinFolder)oras oras-osx" />
</Target>
</Project>
</Project>

0 comments on commit 37b6d27

Please sign in to comment.