File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 3030
3131v=$( cargo metadata --format-version=1 --no-deps | jq -r ' .packages[] | select(.name=="icp-cli-network-launcher") | .version' )
3232source=$( cargo metadata --format-version=1 --no-deps | jq -r ' .packages[] | select(.name=="icp-cli-network-launcher") | .dependencies[] | select(.name=="pocket-ic") | .source' )
33- reg=' ([0-9.]+)(-((r[0-9]+$)|([0-9-]+(\.(r[0-9]+))?)))?'
33+ reg=' ([0-9.]+)(-((r[0-9]+$)|(( [0-9-]+) (\.(r[0-9]+))?)))?'
3434if [[ " $v " =~ $reg ]]; then
3535 pkgver=${BASH_REMATCH[1]}
36- icdate=${BASH_REMATCH[5 ]:- }
37- patchrel=${BASH_REMATCH[4]:- ${BASH_REMATCH[7 ]:- } }
36+ icdate=${BASH_REMATCH[6 ]:- }
37+ patchrel=${BASH_REMATCH[4]:- ${BASH_REMATCH[8 ]:- } }
3838else
3939 die " could not parse package version $v - should be 1.2.3[-r1] or 1.2.3-2026-01-29-16-08[.r1]"
4040fi
@@ -49,9 +49,11 @@ cargo build --release
4949mkdir -p " ${outdir} "
5050cp " target/release/icp-cli-network-launcher" " ${outdir} /"
5151if [[ -z " $icdate " ]]; then
52+ echo " Fetching pocket-ic from: https://github.com/dfinity/pocketic/releases/download/${pkgver} /pocket-ic-${arch} -${os} .gz"
5253 curl --proto ' =https' -sSfL --tlsv1.2 " https://github.com/dfinity/pocketic/releases/download/${pkgver} /pocket-ic-${arch} -${os} .gz" -o " ${outdir} /pocket-ic.gz" ${GITHUB_TOKEN: + -H " Authorization: Bearer ${GITHUB_TOKEN} " }
5354else
5455 icver=$( sed ' s/-/_/3' <<< " ${icdate}" )
56+ echo " Fetching pocket-ic from: https://github.com/dfinity/ic/releases/download/release-${icver} -base/pocket-ic-${arch} -${os} .gz"
5557 curl --proto ' =https' -sSfL --tlsv1.2 " https://github.com/dfinity/ic/releases/download/release-${icver} -base/pocket-ic-${arch} -${os} .gz" -o " ${outdir} /pocket-ic.gz" ${GITHUB_TOKEN: + -H " Authorization: Bearer ${GITHUB_TOKEN} " }
5658fi
5759gunzip -f " ${outdir} /pocket-ic.gz"
You can’t perform that action at this time.
0 commit comments