chore: release version 1.0.1

This commit is contained in:
2026-09-07 13:58:43 +07:00
parent 0514c1d982
commit 584ab34df6
4 changed files with 32 additions and 26 deletions
Generated
+14 -14
View File
@@ -273,7 +273,7 @@ dependencies = [
[[package]]
name = "assets"
version = "1.0.0"
version = "1.0.1"
dependencies = [
"anyhow",
"gpui",
@@ -535,7 +535,7 @@ dependencies = [
[[package]]
name = "auto_update"
version = "1.0.0"
version = "1.0.1"
dependencies = [
"gpui",
"gpui-updater",
@@ -1067,7 +1067,7 @@ dependencies = [
[[package]]
name = "chat"
version = "1.0.0"
version = "1.0.1"
dependencies = [
"anyhow",
"common",
@@ -1089,7 +1089,7 @@ dependencies = [
[[package]]
name = "chat_ui"
version = "1.0.0"
version = "1.0.1"
dependencies = [
"anyhow",
"chat",
@@ -1272,7 +1272,7 @@ dependencies = [
[[package]]
name = "common"
version = "1.0.0"
version = "1.0.1"
dependencies = [
"chrono",
"dirs 5.0.1",
@@ -1400,7 +1400,7 @@ dependencies = [
[[package]]
name = "coop"
version = "1.0.0"
version = "1.0.1"
dependencies = [
"assets",
"auto_update",
@@ -1426,7 +1426,7 @@ dependencies = [
[[package]]
name = "coop_web"
version = "1.0.0"
version = "1.0.1"
dependencies = [
"assets",
"chat",
@@ -1770,7 +1770,7 @@ dependencies = [
[[package]]
name = "device"
version = "1.0.0"
version = "1.0.1"
dependencies = [
"anyhow",
"common",
@@ -4972,7 +4972,7 @@ dependencies = [
[[package]]
name = "person"
version = "1.0.0"
version = "1.0.1"
dependencies = [
"anyhow",
"common",
@@ -6385,7 +6385,7 @@ dependencies = [
[[package]]
name = "settings"
version = "1.0.0"
version = "1.0.1"
dependencies = [
"anyhow",
"common",
@@ -6629,7 +6629,7 @@ checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596"
[[package]]
name = "state"
version = "1.0.0"
version = "1.0.1"
dependencies = [
"anyhow",
"browser-signer-proxy",
@@ -6980,7 +6980,7 @@ dependencies = [
[[package]]
name = "theme"
version = "1.0.0"
version = "1.0.1"
dependencies = [
"anyhow",
"gpui",
@@ -7529,7 +7529,7 @@ dependencies = [
[[package]]
name = "ui"
version = "1.0.0"
version = "1.0.1"
dependencies = [
"anyhow",
"common",
@@ -8925,7 +8925,7 @@ checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e"
[[package]]
name = "workspace"
version = "1.0.0"
version = "1.0.1"
dependencies = [
"anyhow",
"auto_update",
+1 -1
View File
@@ -4,7 +4,7 @@ members = ["crates/*", "desktop", "web"]
default-members = ["desktop"]
[workspace.package]
version = "1.0.0"
version = "1.0.1"
edition = "2024"
publish = false
+1 -1
View File
@@ -14,7 +14,7 @@ product-name = "Coop"
description = "Chat Freely, Stay Private on Nostr"
identifier = "su.reya.coop"
category = "SocialNetworking"
version = "1.0.0"
version = "1.0.1"
out-dir = "../dist"
before-packaging-command = "cargo build --release"
resources = ["Cargo.toml", "src"]
+16 -10
View File
@@ -29,23 +29,29 @@ fi
# Function to update version in a Cargo.toml file
update_version() {
local file="$1"
local backup="${file}.bak"
local tmp="${file}.tmp"
# Backup the original file
cp "$file" "$backup"
# More flexible regex that handles various version formats and whitespace
if sed -i -E "s/^[[:space:]]*version[[:space:]]*=[[:space:]]*\"[^\"]+\"/version = \"$NEW_VERSION\"/" "$file"; then
# Portable in-place edit. `sed -i` behaves differently on GNU sed (Linux)
# and BSD sed (macOS): on macOS `sed -i -E` treats `-E` as the backup
# suffix instead of the extended-regex flag, leaving a stray
# `Cargo.toml-E` behind and never updating the file.
# Writing to a temp file and moving it over works on both implementations.
if sed -E "s/^[[:space:]]*version[[:space:]]*=[[:space:]]*\"[^\"]+\"/version = \"$NEW_VERSION\"/" "$file" > "$tmp" \
&& mv "$tmp" "$file"; then
echo "✓ Updated version to $NEW_VERSION in $file"
else
echo "Error: Failed to update version in $file"
# Restore original backup
mv "$backup" "$file"
# Remove any partial temp file; the original file is untouched
rm -f "$tmp"
exit 1
fi
# Remove the backup file
rm -f "$backup"
# The substitution can silently match nothing (e.g. a `version.workspace` key),
# so verify the new version actually landed before moving on.
if ! grep -q "^[[:space:]]*version[[:space:]]*=[[:space:]]*\"$NEW_VERSION\"" "$file"; then
echo "Error: Version line not found/updated in $file"
exit 1
fi
}
# Update both Cargo.toml files