mirror of
https://github.com/playit-cloud/playit-agent.git
synced 2026-07-02 06:52:28 +00:00
20 lines
491 B
Bash
20 lines
491 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
VERSION="${1:?missing version}"
|
|
|
|
PACKAGES=(
|
|
playit-agent-core
|
|
playit-ipc
|
|
playitd
|
|
)
|
|
|
|
# root workspace package version
|
|
sed -Ei '/^\[workspace\.package\]/,/^\[/{s/^version = "[^"]+"/version = "'"$VERSION"'"/}' Cargo.toml
|
|
|
|
# dependency versions for allowlisted internal packages
|
|
for pkg in "${PACKAGES[@]}"; do
|
|
find packages -name Cargo.toml -type f -print0 | xargs -0 sed -Ei \
|
|
's/('"$pkg"' = \{[^}]*version = )"[^"]+"/\1"'"$VERSION"'"/'
|
|
done
|