chore: release version 1.0.0-beta1

This commit is contained in:
2026-03-13 08:44:55 +07:00
parent ff61c28a76
commit 1ad7de083f
3 changed files with 5 additions and 9 deletions

View File

@@ -4,7 +4,7 @@ members = ["crates/*"]
default-members = ["crates/coop"] default-members = ["crates/coop"]
[workspace.package] [workspace.package]
version = "1.0.0-beta" version = "1.0.0-beta1"
edition = "2021" edition = "2021"
publish = false publish = false

View File

@@ -14,7 +14,7 @@ product-name = "Coop"
description = "Chat Freely, Stay Private on Nostr" description = "Chat Freely, Stay Private on Nostr"
identifier = "su.reya.coop" identifier = "su.reya.coop"
category = "SocialNetworking" category = "SocialNetworking"
version = "1.0.0-beta" version = "1.0.0-beta1"
out-dir = "../../dist" out-dir = "../../dist"
before-packaging-command = "cargo build --release" before-packaging-command = "cargo build --release"
resources = ["Cargo.toml", "src"] resources = ["Cargo.toml", "src"]

View File

@@ -34,13 +34,9 @@ update_version() {
# Backup the original file # Backup the original file
cp "$file" "$backup" cp "$file" "$backup"
# Replace the version in Cargo.toml # More flexible regex that handles various version formats and whitespace
if sed -i.bak -E "s/^version = \"[0-9]+\.[0-9]+\.[0-9]+\"/version = \"$NEW_VERSION\"/" "$file"; then if sed -i -E "s/^[[:space:]]*version[[:space:]]*=[[:space:]]*\"[^\"]+\"/version = \"$NEW_VERSION\"/" "$file"; then
echo "✓ Updated version to $NEW_VERSION in $file" echo "✓ Updated version to $NEW_VERSION in $file"
# Remove backup created by sed
if [ -f "${file}.bak" ]; then
rm "${file}.bak"
fi
else else
echo "Error: Failed to update version in $file" echo "Error: Failed to update version in $file"
# Restore original backup # Restore original backup
@@ -48,7 +44,7 @@ update_version() {
exit 1 exit 1
fi fi
# Remove the initial backup file # Remove the backup file
rm -f "$backup" rm -f "$backup"
} }