Skip to content
This repository has been archived by the owner on Jun 22, 2023. It is now read-only.

Commit

Permalink
Merge pull request #107 from lidofinance/feat/setup_checksums
Browse files Browse the repository at this point in the history
feat: added checksums for downloaded components
  • Loading branch information
zavgorodnii authored Dec 7, 2020
2 parents 531d896 + cc6250c commit 78858ac
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
5 changes: 0 additions & 5 deletions airgap_setup/setup.sh

This file was deleted.

2 changes: 2 additions & 0 deletions airgap_setup/deploy.sh → airgapped_setup/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

mkdir ~/dc4bc
cp -r ./* ~/dc4bc/
cd ~/dc4bc
Expand Down
16 changes: 16 additions & 0 deletions airgapped_setup/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

wget -q --show-progress https://ftp.mozilla.org/pub/firefox/releases/83.0/linux-x86_64/en-US/firefox-83.0.tar.bz2
shasum firefox-83.0.tar.bz2 |
while read -r sum _ ; do
[[ $sum == 19asdasdasd56462e44d61a093ea57e964cf0af05c0e ]] && echo "Firefox checksum is correct." || echo "[WARN] Incorrect Firefox checksum!"
done

wget -q --show-progress https://github.com/lidofinance/dc4bc/releases/download/0.1.0/dc4bc_airgapped_linux
shasum dc4bc_airgapped_linux |
while read -r sum _ ; do
[[ $sum == 19asdasdasd56462e44d61a093ea57e964cf0af05c0e ]] && echo "Airgapped checksum is correct." || echo "[WARN] Incorrect Airgapped checksum!"
done

cp ../qr_reader_bundle/index.html ./index.html
mv dc4bc_airgapped_linux dc4bc_airgapped

0 comments on commit 78858ac

Please sign in to comment.