Skip to content

Commit

Permalink
add instructions how to verify download integrity
Browse files Browse the repository at this point in the history
  • Loading branch information
tommartensen committed Nov 20, 2023
1 parent 95853a9 commit cad7cbe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/checksums
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ main() {
local filename="infractl-CHECKSUMS"
pushd bin/ >/dev/null || exit 1
rm -f "${filename}"
shasum -a 512 -- infractl-* > "${filename}"
shasum --algorithm 512 -- infractl-* > "${filename}"
popd >/dev/null || exit 1

}
Expand Down
8 changes: 6 additions & 2 deletions ui/src/containers/DownloadsPage/UserServiceAccountToken.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,15 @@ export default function UserServiceAccountToken(): ReactElement {
example, you may put it in your Go executable directory.
</p>
<p className="my-2">
Here are the commands to move the file, allow it to execute on an Intel-based Mac, confirm
Additionally, you may verify the integrity of the binary by downloading the <code>CHECKSUMS (SHA-512)</code> file.
</p>
<p className="my-2">
Here are the commands to check the integrity, move the file, allow it to execute on an Intel-based Mac, confirm
its location, and help you learn about its features.
</p>
<pre className="border border-base-400 p-4 text-lg whitespace-pre-wrap">
$ install ~/Downloads/infractl-darwin-amd64 $GOPATH/bin/infractl
$ shasum --check --ignore-missing infractl-CHECKSUMS
<br />$ install infractl-darwin-amd64 $GOPATH/bin/infractl
<br />$ xattr -c $GOPATH/bin/infractl
<br />$ which infractl
<br />$ infractl help
Expand Down

0 comments on commit cad7cbe

Please sign in to comment.