[[package]]
name = "lemmy_api"
-version = "0.18.1-rc.1"
+version = "0.18.1-rc.2"
dependencies = [
"actix-web",
"anyhow",
[[package]]
name = "lemmy_api_common"
-version = "0.18.1-rc.1"
+version = "0.18.1-rc.2"
dependencies = [
"actix-web",
"anyhow",
[[package]]
name = "lemmy_api_crud"
-version = "0.18.1-rc.1"
+version = "0.18.1-rc.2"
dependencies = [
"activitypub_federation",
"actix-web",
[[package]]
name = "lemmy_apub"
-version = "0.18.1-rc.1"
+version = "0.18.1-rc.2"
dependencies = [
"activitypub_federation",
"actix-web",
[[package]]
name = "lemmy_db_schema"
-version = "0.18.1-rc.1"
+version = "0.18.1-rc.2"
dependencies = [
"activitypub_federation",
"async-trait",
[[package]]
name = "lemmy_db_views"
-version = "0.18.1-rc.1"
+version = "0.18.1-rc.2"
dependencies = [
"diesel",
"diesel-async",
[[package]]
name = "lemmy_db_views_actor"
-version = "0.18.1-rc.1"
+version = "0.18.1-rc.2"
dependencies = [
"diesel",
"diesel-async",
[[package]]
name = "lemmy_db_views_moderator"
-version = "0.18.1-rc.1"
+version = "0.18.1-rc.2"
dependencies = [
"diesel",
"diesel-async",
[[package]]
name = "lemmy_routes"
-version = "0.18.1-rc.1"
+version = "0.18.1-rc.2"
dependencies = [
"activitypub_federation",
"actix-web",
[[package]]
name = "lemmy_server"
-version = "0.18.1-rc.1"
+version = "0.18.1-rc.2"
dependencies = [
"activitypub_federation",
"actix-cors",
[[package]]
name = "lemmy_utils"
-version = "0.18.1-rc.1"
+version = "0.18.1-rc.2"
dependencies = [
"actix-web",
"anyhow",
[workspace.package]
-version = "0.18.1-rc.1"
+version = "0.18.1-rc.2"
edition = "2021"
description = "A link aggregator for the fediverse"
license = "AGPL-3.0"
]
[workspace.dependencies]
-lemmy_api = { version = "=0.18.1-rc.1", path = "./crates/api" }
-lemmy_api_crud = { version = "=0.18.1-rc.1", path = "./crates/api_crud" }
-lemmy_apub = { version = "=0.18.1-rc.1", path = "./crates/apub" }
-lemmy_utils = { version = "=0.18.1-rc.1", path = "./crates/utils" }
-lemmy_db_schema = { version = "=0.18.1-rc.1", path = "./crates/db_schema" }
-lemmy_api_common = { version = "=0.18.1-rc.1", path = "./crates/api_common" }
-lemmy_routes = { version = "=0.18.1-rc.1", path = "./crates/routes" }
-lemmy_db_views = { version = "=0.18.1-rc.1", path = "./crates/db_views" }
-lemmy_db_views_actor = { version = "=0.18.1-rc.1", path = "./crates/db_views_actor" }
-lemmy_db_views_moderator = { version = "=0.18.1-rc.1", path = "./crates/db_views_moderator" }
+lemmy_api = { version = "=0.18.1-rc.2", path = "./crates/api" }
+lemmy_api_crud = { version = "=0.18.1-rc.2", path = "./crates/api_crud" }
+lemmy_apub = { version = "=0.18.1-rc.2", path = "./crates/apub" }
+lemmy_utils = { version = "=0.18.1-rc.2", path = "./crates/utils" }
+lemmy_db_schema = { version = "=0.18.1-rc.2", path = "./crates/db_schema" }
+lemmy_api_common = { version = "=0.18.1-rc.2", path = "./crates/api_common" }
+lemmy_routes = { version = "=0.18.1-rc.2", path = "./crates/routes" }
+lemmy_db_views = { version = "=0.18.1-rc.2", path = "./crates/db_views" }
+lemmy_db_views_actor = { version = "=0.18.1-rc.2", path = "./crates/db_views_actor" }
+lemmy_db_views_moderator = { version = "=0.18.1-rc.2", path = "./crates/db_views_moderator" }
activitypub_federation = { version = "0.4.4", default-features = false, features = ["actix-web"] }
diesel = "2.1.0"
diesel_migrations = "2.1.0"
new_tag="$1"
third_semver=$(echo $new_tag | cut -d "." -f 3)
+# Goto the upper route
+CWD="$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
+cd $CWD/../
+
# The ansible and docker installs should only update for non release-candidates
# IE, when the third semver is a number, not '2-rc'
if [ ! -z "${third_semver##*[!0-9]*}" ]; then
- pushd ../docker
+ pushd docker
sed -i "s/dessalines\/lemmy:.*/dessalines\/lemmy:$new_tag/" docker-compose.yml
sed -i "s/dessalines\/lemmy-ui:.*/dessalines\/lemmy-ui:$new_tag/" docker-compose.yml
sed -i "s/dessalines\/lemmy-ui:.*/dessalines\/lemmy-ui:$new_tag/" federation/docker-compose.yml
popd
# Setting the version for Ansible
- pushd ../../lemmy-ansible
+ pushd ../lemmy-ansible
echo $new_tag > "VERSION"
git add "VERSION"
git commit -m"Updating VERSION"
fi
# Update crate versions
-pushd ..
old_tag=$(grep version Cargo.toml | head -1 | cut -d'"' -f 2)
sed -i "s/{ version = \"=$old_tag\", path/{ version = \"=$new_tag\", path/g" Cargo.toml
sed -i "s/version = \"$old_tag\"/version = \"$new_tag\"/g" Cargo.toml
git add Cargo.toml
-cargo update
cargo check
git add Cargo.lock
-popd
# Update the submodules
git submodule update --remote