File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- SP1_ELF_URL=" https://raw.githubusercontent.com/yetanotherco/aligned_layer/main/scripts/test_files/sp1/sp1_fibonacci.elf"
4- SP1_PROOF_URL=" https://raw.githubusercontent.com/yetanotherco/aligned_layer/main/scripts/test_files/sp1/sp1_fibonacci.proof"
3+ CURRENT_TAG=$( curl -s -L \
4+ -H " Accept: application/vnd.github+json" \
5+ -H " X-GitHub-Api-Version: 2022-11-28" \
6+ https://api.github.com/repos/yetanotherco/aligned_layer/releases/latest \
7+ | grep ' "tag_name":' | awk -F' "' ' {print $4}' )
8+
9+ SP1_ELF_URL=" https://raw.githubusercontent.com/yetanotherco/aligned_layer/$CURRENT_TAG /scripts/test_files/sp1/sp1_fibonacci.elf"
10+ SP1_PROOF_URL=" https://raw.githubusercontent.com/yetanotherco/aligned_layer/$CURRENT_TAG /scripts/test_files/sp1/sp1_fibonacci.proof"
511
612SP1_ELF_NAME=" sp1_fibonacci.elf"
713SP1_PROOF_NAME=" sp1_fibonacci.proof"
@@ -12,7 +18,7 @@ ALIGNED_TEST_FILES_DIR="$ALIGNED_DIR/test_files"
1218
1319mkdir -p " $ALIGNED_TEST_FILES_DIR "
1420
15- echo " Downloading SP1 ELF file... "
21+ echo " Downloading SP1 ELF file from $CURRENT_TAG release "
1622
1723if curl -sSf -L " $SP1_ELF_URL " -o " $ALIGNED_TEST_FILES_DIR /$SP1_ELF_NAME " ; then
1824 echo " SP1 ELF download successful"
Original file line number Diff line number Diff line change 2828
2929mkdir -p " $ALIGNED_BIN_DIR "
3030if curl -sSf -L " $RELEASE_URL$FILE " -o " $ALIGNED_BIN_PATH " ; then
31- echo " Aligned download successful, installing..."
31+ echo " Aligned download successful, installing $CURRENT_TAG release ..."
3232else
3333 echo " Error: Failed to download $RELEASE_URL$FILE "
3434 exit 1
@@ -69,6 +69,6 @@ if [[ ":$PATH:" != *":${ALIGNED_BIN_DIR}:"* ]]; then
6969 fi
7070fi
7171
72- echo " Aligned installed successfully in $ALIGNED_BIN_PATH ."
72+ echo " Aligned $CURRENT_TAG installed successfully in $ALIGNED_BIN_PATH ."
7373echo " Detected your preferred shell is $PREF_SHELL and added aligned to PATH."
7474echo " Run 'source $PROFILE ' or start a new terminal session to use aligned."
You can’t perform that action at this time.
0 commit comments