From ed1280a415991d569893a41a875cdb4f6c190c18 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 22 Oct 2025 12:58:02 -0600 Subject: [PATCH] feat: update mautrix-whatsapp to v0.2510.0 - Update upstream version from v0.12.4 to v0.2510.0 (latest release) - Bump package version to 2.0.0 - Fix regex pattern in registration from .* to .+ for better matching Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- CloudronManifest.json | 4 ++-- Dockerfile.cloudron | 2 +- start.sh | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CloudronManifest.json b/CloudronManifest.json index 6b1df21..6bab5b3 100644 --- a/CloudronManifest.json +++ b/CloudronManifest.json @@ -1,6 +1,6 @@ { - "version": "1.2.2", - "upstreamVersion": "0.12.4", + "version": "2.0.0", + "upstreamVersion": "0.2510.0", "id": "dev.maunium.whatsapp.cloudronapp", "title": "Matrix WhatsApp Bridge", "author": "Tulir Asokan ", diff --git a/Dockerfile.cloudron b/Dockerfile.cloudron index 3f48360..6f0bed6 100644 --- a/Dockerfile.cloudron +++ b/Dockerfile.cloudron @@ -27,7 +27,7 @@ RUN mkdir -p /app/code /app/pkg /app/data WORKDIR /app/code # Download and build mautrix-whatsapp -RUN git clone --branch v0.12.4 https://github.com/mautrix/whatsapp.git . \ +RUN git clone --branch v0.2510.0 https://github.com/mautrix/whatsapp.git . \ && go build -o /app/pkg/mautrix-whatsapp ./cmd/mautrix-whatsapp # Copy startup script diff --git a/start.sh b/start.sh index 43b1d0a..c473d0a 100755 --- a/start.sh +++ b/start.sh @@ -105,7 +105,7 @@ if [ ! -f "$CONFIG_PATH" ]; then echo "=> Fixing registration file regex patterns for domain: $BASE_DOMAIN" # Fix user regex patterns to use base domain instead of matrix subdomain yq -i -y '.namespaces.users[0].regex = "^@whatsappbot:'"$BASE_DOMAIN"'$"' "$REGISTRATION_PATH" || echo "=> ERROR: Could not fix whatsappbot regex" - yq -i -y '.namespaces.users[1].regex = "^@whatsapp_.*:'"$BASE_DOMAIN"'$"' "$REGISTRATION_PATH" || echo "=> ERROR: Could not fix whatsapp_.* regex" + yq -i -y '.namespaces.users[1].regex = "^@whatsapp_.+:'"$BASE_DOMAIN"'$"' "$REGISTRATION_PATH" || echo "=> ERROR: Could not fix whatsapp_.+ regex" yq -i -y '.sender_localpart = "whatsappbot"' "$REGISTRATION_PATH" || echo "=> ERROR: Could not fix sender_localpart" fi @@ -228,7 +228,7 @@ else yq -i -y '.url = "https://'"$CLOUDRON_APP_DOMAIN"'"' "$REGISTRATION_PATH" 2>/dev/null || true # Fix user regex patterns to use base domain instead of matrix subdomain yq -i -y '.namespaces.users[0].regex = "^@whatsappbot:'"$BASE_DOMAIN"'$"' "$REGISTRATION_PATH" || echo "=> ERROR: Could not fix whatsappbot regex" - yq -i -y '.namespaces.users[1].regex = "^@whatsapp_.*:'"$BASE_DOMAIN"'$"' "$REGISTRATION_PATH" || echo "=> ERROR: Could not fix whatsapp_.* regex" + yq -i -y '.namespaces.users[1].regex = "^@whatsapp_.+:'"$BASE_DOMAIN"'$"' "$REGISTRATION_PATH" || echo "=> ERROR: Could not fix whatsapp_.+ regex" yq -i -y '.sender_localpart = "whatsappbot"' "$REGISTRATION_PATH" || echo "=> ERROR: Could not fix sender_localpart" fi