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 <noreply@anthropic.com>
This commit is contained in:
@@ -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 <tulir@maunium.net>",
|
||||
|
||||
@@ -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
|
||||
|
||||
4
start.sh
4
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user