Skip to content

Commit

Permalink
Add aarch64 sentry-cli (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
adinauer authored Dec 14, 2023
1 parent 5500266 commit 3715831
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
- Report dependencies ([#22](https://github.com/getsentry/sentry-maven-plugin/pull/22))
- Send telemetry data for plugin usage ([#28](https://github.com/getsentry/sentry-maven-plugin/pull/28))
- This will collect errors and timings of the plugin and its tasks (anonymized, except the sentry org id), so we can better understand how the plugin is performing. If you wish to opt-out of this behavior, set `<skipTelemetry>true</skipTelemetry>` in the sentry plugin configuration block.
- Add `aarch64` sentry-cli ([#39](https://github.com/getsentry/sentry-maven-plugin/pull/39))
- This is used when the build is executed inside a docker container on an Apple silicon chip (e.g. M1)

### Dependencies

Expand Down
2 changes: 1 addition & 1 deletion download-sentry-cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function prop {
base_url="$(prop 'repo' $props_file)/releases/download/$(prop 'version' $props_file)"
target_dir="src/main/resources/bin/"
actual_props_file="$target_dir${props_file}"
PLATFORMS="Darwin-universal Linux-i686 Linux-x86_64 Windows-i686"
PLATFORMS="Darwin-universal Linux-i686 Linux-x86_64 Linux-aarch64 Windows-i686"

function shouldDownload {
if ! cmp -s "$props_file" "$actual_props_file"; then
Expand Down
1 change: 1 addition & 0 deletions src/main/java/io/sentry/SentryCliProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public class SentryCliProvider {
final @Nullable String cliSuffix = getCliSuffix();

if (cliSuffix != null && !cliSuffix.isBlank()) {
logger.info("Looking for CLI with suffix " + cliSuffix);
final @NotNull String resourcePath = "/bin/sentry-cli-" + cliSuffix;
final @Nullable String cliAbsolutePath = searchCliInResources(resourcePath);

Expand Down

0 comments on commit 3715831

Please sign in to comment.