Modern Apps git

← Modern-Apps.git

metadata: rebrand F-Droid apps with MA prefix

Commit
c148c5fe8cbc1056141cea9eb5d5fef12bfcc5ee
Author
Vayun Mathur <[email protected]>
When
2026-07-23 16:43 UTC (4 months ago)
Parents
2813c0e

Diff

.github/workflows/android.yml
diff --git a/.github/workflows/android.yml b/.github/workflows/android.ymlindex 3b2d34a0bf..913f18ae9a 100644--- a/.github/workflows/android.yml+++ b/.github/workflows/android.yml@@ -175,6 +175,23 @@ jobs:               head -n 1 "$metadata_src" > "$target_path/short-description.txt"               cp "$metadata_src" "$target_path/full-description.txt"             fi++            # --- Generate title.txt with MA branding (except FindFamily) ---+            app_name=$(grep -m1 '<string name="app_name">' "$dir/src/main/res/values/strings.xml" 2>/dev/null | sed -E 's/.*<string name="app_name">(.*)<\/string>.*/\1/' | xargs)+            if [ -z "$app_name" ]; then+              # Fallback: derive from module_key+              app_name=$(echo "$module_key" | sed 's/-/ /g' | awk '{for(i=1;i<=NF;i++) $i=toupper(substr($i,1,1)) tolower(substr($i,2))}1')+            fi+            if [ "$module_key" = "findfamily" ]; then+              title="$app_name"+            else+              case "$app_name" in+                MA\ *) title="$app_name" ;;+                *) title="MA $app_name" ;;+              esac+            fi+            echo "$title" > "$target_path/title.txt"+            echo "Generated title.txt for $dir: $title"           done        - name: Local Git Commit and Tag