Blockstream / Blockstream/green_android

Add alternative to shasum that doesn't require perl dep such as using sha256sum

Open
#110 1 comment 0 reactions 1 assignee Claimed by @ardier16 View on GitHub
documentation enhancement
Dominant language
Kotlin
Stars
268
Forks
106
PR merge metrics
No merged PRs in 30d

Description

### Description

shasum is used in:
https://github.com/Blockstream/green_android/blob/c644e2b751b5a543b69bca4d3fcb27b6922054d8/README.md#L67
https://github.com/Blockstream/green_android/blob/cfa2ecff9ea53dc58ccfb83614961f84f4b4add2/app/fetch_gdk_binaries.sh#L21
https://github.com/Blockstream/green_android/blob/cfa2ecff9ea53dc58ccfb83614961f84f4b4add2/app/fetch_gdk_binaries.sh#L38

in alpine the shasum come from `perl-utils` package, in debian from `perl` package.
both distros have sha256sum as part of `coreutils` package that is installed by default (in debian:sid-slim / alpine:edge) thus better to use it instead if available and not require the `shasum` command that depend on perl installation.

### Expected behaviour

it's possible to run the `app/fetch_gdk_binaries.sh` script without installing perl, sha256sum usage is used instead if installed, and it's also described in README file.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.