mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-05 12:18:30 +00:00
34 lines
1.0 KiB
Bash
Executable File
34 lines
1.0 KiB
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='3.0.0-beta.2'
|
|
NEXT_VERSION='3.0.0-rc.1'
|
|
|
|
# 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)
|