π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[auth] Remove stale mutations that never prevented Flathub metadata drift
Manav Rathi0deaf81c6546
diff --git a/.github/workflows/auth-beta-release.yml b/.github/workflows/auth-beta-release.ymlindex 6b4408233a..a24d5bdfaf 100644--- a/.github/workflows/auth-beta-release.yml+++ b/.github/workflows/auth-beta-release.yml@@ -141,21 +141,6 @@ jobs:echo "$CHANGELOG_DISCORD" >> $GITHUB_ENVecho "EOF" >> $GITHUB_ENV- - name: Update Linux AppData metadata- run: |- APPDATA_FILE="linux/packaging/enteauth.appdata.xml"- RELEASE_DATE=$(date -u +%Y-%m-%d)-- # Create new release entry- NEW_RELEASE=" <release version=\"${{ env.VERSION_NAME }}\" date=\"${RELEASE_DATE}\" />"-- # Insert new release entry after <releases> tag- sed -i "/<releases>/a\\${NEW_RELEASE}" "$APPDATA_FILE"-- echo "β Updated $APPDATA_FILE with version ${{ env.VERSION_NAME }}"- echo "Release entry added:"- echo "$NEW_RELEASE"-- name: Setup keysuses: timheuer/base64-to-file@v1with:diff --git a/.github/workflows/auth-release.yml b/.github/workflows/auth-release.ymlindex 613e854028..6a4ea435f6 100644--- a/.github/workflows/auth-release.yml+++ b/.github/workflows/auth-release.yml@@ -99,24 +99,6 @@ jobs:- name: Resolve dependencies with lockfile enforcementrun: flutter pub get --enforce-lockfile- - name: Update Linux AppData metadata- run: |- APPDATA_FILE="linux/packaging/enteauth.appdata.xml"- RELEASE_DATE=$(date -u +%Y-%m-%d)-- # Extract version from tag (e.g., auth-v4.4.8 -> 4.4.8)- VERSION_NAME=$(echo "${{ github.ref_name }}" | sed 's/^auth-v//')-- # Create new release entry- NEW_RELEASE=" <release version=\"${VERSION_NAME}\" date=\"${RELEASE_DATE}\" />"-- # Insert new release entry after <releases> tag- sed -i "/<releases>/a\\${NEW_RELEASE}" "$APPDATA_FILE"-- echo "β Updated $APPDATA_FILE with version ${VERSION_NAME}"- echo "Release entry added:"- echo "$NEW_RELEASE"-- name: Setup keysuses: timheuer/base64-to-file@v1with:diff --git a/mobile/apps/auth/docs/release.md b/mobile/apps/auth/docs/release.mdindex 4b31c72f0a..12bbd5f5d1 100644--- a/mobile/apps/auth/docs/release.md+++ b/mobile/apps/auth/docs/release.md@@ -2,6 +2,8 @@Create a PR to bump up the version in `pubspec.yaml`.+On minor or major bumps, also add a new `<release>` entry to the Flathub metadata in [`linux/packaging/enteauth.appdata.xml`](../linux/packaging/enteauth.appdata.xml).+> [!NOTE]>> Use [semver](https://semver.org/) for the tags, with `auth-` as a prefix.diff --git a/mobile/apps/auth/linux/packaging/enteauth.appdata.xml b/mobile/apps/auth/linux/packaging/enteauth.appdata.xmlindex 30f64f5bb8..0af6ecc021 100644--- a/mobile/apps/auth/linux/packaging/enteauth.appdata.xml+++ b/mobile/apps/auth/linux/packaging/enteauth.appdata.xml@@ -28,12 +28,7 @@</screenshot></screenshots><releases>- <release version="4.4.3" date="2025-06-21" />- <release version="4.4.2" date="2025-06-21" />- <release version="4.4.0" date="2025-05-31" />- <release version="4.3.8" date="2025-05-20" />- <release version="4.2.4" date="2025-01-11" />- <release version="4.0.3" date="2024-10-08" />+ <release version="4.4" date="2026-03-30" /></releases><provides><id>enteauth.desktop</id>diff --git a/mobile/apps/auth/scripts/release_tag.sh b/mobile/apps/auth/scripts/release_tag.shdeleted file mode 100755index f35c89ab4d..0000000000--- a/mobile/apps/auth/scripts/release_tag.sh+++ /dev/null@@ -1,70 +0,0 @@-#!/bin/bash--# Function to display usage-usage() {- echo "Usage: $0 tag"- exit 1-}--# Ensure a tag was provided-[[ $# -eq 0 ]] && usage--# Exit immediately if a command exits with a non-zero status-set -e--# Go to the project root directory-cd "$(dirname "$0")/.."--# Get the tag from the command line argument-TAG=$1--# Define the appdata file path - use absolute path to avoid directory navigation issues-PROJECT_ROOT=$(pwd)-APPDATA_FILE="${PROJECT_ROOT}/linux/packaging/enteauth.appdata.xml"--# Get the version from the pubspec.yaml file and cut everything after the +-VERSION=$(grep "^version:" pubspec.yaml | awk '{ print $2 }' | cut -d '+' -f 1)--PREFIX="auth-v"--# Ensure the tag has the correct prefix-if [[ $TAG != $PREFIX* ]]; then- echo "Invalid tag. tags must start with '$PREFIX'."- exit 1-fi--# Ensure the tag version is in the pubspec.yaml file-if [[ $TAG != *$VERSION ]]; then- echo "Invalid tag."- echo "The version $VERSION in pubspec doesn't match the version in tag $TAG"- exit 1-fi--# Extract version number from the tag (remove prefix)-TAG_VERSION=${TAG#$PREFIX}--# Check if this version is already in the releases section of the appdata.xml file-if ! grep -q "<release version=\"$TAG_VERSION\"" "$APPDATA_FILE"; then- echo "Adding release entry for version $TAG_VERSION to appdata.xml"-- # Get today's date in YYYY-MM-DD format- TODAY=$(date +%Y-%m-%d)-- # Use a more reliable approach with awk instead of sed for cross-platform compatibility- echo "Creating temporary file with updated content..."- awk '/<releases>/{print $0; print " <release version=\"'"$TAG_VERSION"'\" date=\"'"$TODAY"'\" />"; next}1' "$APPDATA_FILE" > "${APPDATA_FILE}.tmp"- mv "${APPDATA_FILE}.tmp" "$APPDATA_FILE"-- echo "Added release entry for version $TAG_VERSION with date $TODAY"-- # Stage and commit the updated appdata.xml file- git add "$APPDATA_FILE"- git commit -m "Add release $TAG_VERSION to appdata.xml"- echo "Committed appdata.xml changes for version $TAG_VERSION"-fi--# If all checks pass, create the tag-git tag $TAG-echo "Tag $TAG created."--exit 0\ No newline at end of file