Files
wasmer/scripts/update-version.sh
Manos Pitsidianakis 33654c1a1d Release version 2.3.0
2022-06-06 22:27:57 +03:00

34 lines
1015 B
Bash
Executable File

#! /bin/sh
# How to install `fd`: https://github.com/sharkdp/fd#installation
: "${FD:=fd}"
# A script to update the version of all the crates at the same time
PREVIOUS_VERSION='2.2.1'
NEXT_VERSION='2.3.0'
# quick hack
${FD} Cargo.toml --exec sed -i '{}' -e "s/version = \"$PREVIOUS_VERSION\"/version = \"$NEXT_VERSION\"/"
${FD} Cargo.toml --exec sed -i '{}' -e "s/version = \"=$PREVIOUS_VERSION\"/version = \"=$NEXT_VERSION\"/"
echo "manually check changes to Cargo.toml"
${FD} wasmer.iss --exec sed -i '{}' -e "s/AppVersion=$PREVIOUS_VERSION/AppVersion=$NEXT_VERSION/"
echo "manually check changes to wasmer.iss"
${FD} publish.py --exec sed -i '{}' -e "s/target_version = \"$PREVIOUS_VERSION\"/target_version = \"$NEXT_VERSION\"/"
echo "manually check changes to publish.py"
# Re-generate lock files
cargo generate-lockfile
# Order to upload packages in
## wasmer-types
## win-exception-handler
## compiler
## compiler-cranelift
## compiler-llvm
## compiler-singlepass
## emscripten
## wasi
## wasmer (api)