Files
wasmer/scripts/update-version.sh
2021-06-01 11:26:06 +02:00

27 lines
696 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='1.0.1'
NEXT_VERSION='1.0.2'
# quick hack
${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"
# Order to upload packages in
## wasmer-types
## win-exception-handler
## compiler
## compiler-cranelift
## compiler-llvm
## compiler-singlepass
## emscripten
## wasi
## wasmer (api)