Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion src/Sentry/Sentry.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,28 @@
<SentryCLIDownload Condition="'$(CI_PUBLISHING_BUILD)' == 'true' Or ($([MSBuild]::IsOSPlatform('Windows')) And $(_OSArchitecture) != 'X86')" Include="sentry-cli-Windows-x86_64.exe" FileHash="572b4a6c04504302a46e2e1c196ec31cda266b574b1444605426aa8e41d46b8c" />
</ItemGroup>

<!-- Download the files -->
<!-- Download the platform-specific CLI binaries. -->
<DownloadFile SourceUrl="https://downloads.sentry-cdn.com/sentry-cli/$(SentryCLIVersion)/%(SentryCLIDownload.Identity)" DestinationFolder="$(SentryCLIDirectory)" Condition="!Exists('$(SentryCLIDirectory)%(Identity)')" Retries="3">
<Output TaskParameter="DownloadedFile" ItemName="SentryCLIDownloadedFile" />
</DownloadFile>

<!-- Build will fail if any downloaded files don't match the expected hash. -->
<VerifyFileHash File="$(SentryCLIDirectory)%(SentryCLIDownload.Identity)" Hash="%(FileHash)" />

<!--
Download the platform-independent ACKNOWLEDGEMENTS.md that lists third-party OSS
attributions compiled into the sentry-cli binary. Required for license compliance
when redistributing the CLI executables in the Sentry NuGet package.
ContinueOnError is temporary while getsentry/sentry-cli#2823 is in progress —
remove it once sentry-cli starts publishing this file in releases.
-->
<DownloadFile

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: multi-targeting

Is this task executed multiple times, do to multiple TargetFrameworks?
If so - can we easily ensure to only run once?

SourceUrl="https://downloads.sentry-cdn.com/sentry-cli/$(SentryCLIVersion)/ACKNOWLEDGEMENTS.md"
Comment thread
Flash0ver marked this conversation as resolved.
DestinationFolder="$(SentryCLIDirectory)"
Condition="!Exists('$(SentryCLIDirectory)ACKNOWLEDGEMENTS.md')"
ContinueOnError="WarnAndContinue"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: should we do this now?

Since getsentry/sentry-cli#2823 is not complete yet, this will always fail.
Should we wait until getsentry/sentry-cli#2823 is completed?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I've marked the issue this closes as blocked by 2823.

Retries="3" />

<!-- Set executable permissions for local usage. -->
<Exec Command="chmod +x $(SentryCLIDirectory)*" Condition="!$([MSBuild]::IsOSPlatform('Windows'))" />
</Target>
Comment on lines +139 to 143

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: make .md file executable

Already existing code ... but would we make the .md file with the existing/following Exec task "execute" too? Could this be an issue?

Expand Down
Loading