Skip to content

Commit 0382099

Browse files
committed
more convenient for download release
1 parent e53d431 commit 0382099

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

zkvm-prover/download-release.sh

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
11
#!/bin/bash
22

3+
# Define version mapping
4+
declare -A VERSION_MAP
5+
VERSION_MAP["euclid"]="0.4.3"
6+
VERSION_MAP["feynman"]="0.5.0rc0"
7+
38
# release version
49
if [ -z "${SCROLL_ZKVM_VERSION}" ]; then
5-
# before we use version tag for zkvm, we can not acquire the correct version of zkvm from script
6-
# SCROLL_ZKVM_VERSION=$($SHELL ./print_high_zkvm_version.sh | cut -d' ' -f1|cut -c2-)
7-
SCROLL_ZKVM_VERSION=0.5.0rc0
10+
11+
# Check if first argument is provided and matches a known version name
12+
if [ -n "$1" ] && [ -n "${VERSION_MAP[$1]}" ]; then
13+
SCROLL_ZKVM_VERSION=${VERSION_MAP[$1]}
14+
echo "Setting SCROLL_ZKVM_VERSION to ${SCROLL_ZKVM_VERSION} based on '$1' argument"
15+
else
16+
# Default version if no argument or not recognized
17+
SCROLL_ZKVM_VERSION=0.5.0rc0
18+
fi
819
fi
920

1021
echo $SCROLL_ZKVM_VERSION

0 commit comments

Comments
 (0)