Skip to content

Commit 4421f52

Browse files
Docs: use Mithril client one line installer in tutorial (#1775)
<!-- Describe your change here --> This PR includes the usage of the **one-line Mithril client installer** in the tutorial page of the documentation website: this will allow to download the latest version of the Mithril client and removes the burden of keeping track of the correct Mithril distribution to use. --- <!-- Consider each and tick it off one way or the other --> * [x] Documentation updated
2 parents e0dc991 + 2d2a0e7 commit 4421f52

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

docs/docs/tutorial/index.md

+2-6
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,13 @@ that you have a good version of jq with this command:
4646
```shell
4747
mkdir -p bin
4848
hydra_version=0.19.0
49-
mithril_version=2437.1
5049
cardano_node_version=10.1.2
5150
curl -L -O https://github.com/cardano-scaling/hydra/releases/download/${hydra_version}/hydra-x86_64-linux-${hydra_version}.zip
5251
unzip -d bin hydra-x86_64-linux-${hydra_version}.zip
5352
curl -L -O https://github.com/IntersectMBO/cardano-node/releases/download/${cardano_node_version}/cardano-node-${cardano_node_version}-linux.tar.gz
5453
tar xf cardano-node-${cardano_node_version}-linux.tar.gz ./bin/cardano-node ./bin/cardano-cli
5554
tar xf cardano-node-${cardano_node_version}-linux.tar.gz ./share/preprod --strip-components=3
56-
curl -L -o - https://github.com/input-output-hk/mithril/releases/download/${mithril_version}/mithril-${mithril_version}-linux-x64.tar.gz \
57-
| tar xz -C bin mithril-client
55+
curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/input-output-hk/mithril/refs/heads/main/mithril-install.sh | sh -s -- -c mithril-client -d latest -p bin
5856
chmod +x bin/*
5957
```
6058

@@ -64,15 +62,13 @@ chmod +x bin/*
6462
```shell
6563
mkdir -p bin
6664
hydra_version=0.19.0
67-
mithril_version=2437.1
6865
cardano_node_version=10.1.2
6966
curl -L -O https://github.com/cardano-scaling/hydra/releases/download/${hydra_version}/hydra-aarch64-darwin-${hydra_version}.zip
7067
unzip -d bin hydra-aarch64-darwin-${hydra_version}.zip
7168
curl -L -O https://github.com/IntersectMBO/cardano-node/releases/download/${cardano_node_version}/cardano-node-${cardano_node_version}-macos.tar.gz
7269
tar xf cardano-node-${cardano_node_version}-macos.tar.gz --wildcards ./bin/cardano-node ./bin/cardano-cli './bin/*.dylib'
7370
tar xf cardano-node-${cardano_node_version}-macos.tar.gz ./share/preprod --strip-components=3
74-
curl -L -o - https://github.com/input-output-hk/mithril/releases/download/${mithril_version}/mithril-${mithril_version}-macos-x64.tar.gz \
75-
| tar xz -C bin
71+
curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/input-output-hk/mithril/refs/heads/main/mithril-install.sh | sh -s -- -c mithril-client -d latest -p bin
7672
chmod +x bin/*
7773
```
7874

0 commit comments

Comments
 (0)