Modern Apps git

← Modern-Apps.git

metadata: fix metadata generation

Commit
444c6b3c9340d73ae64c1fa57cdf34deb9d00d2e
Author
Vayun Mathur <[email protected]>
When
2026-07-20 15:44 UTC (4 months ago)
Parents
0b486a0

Diff

.github/workflows/android.yml
diff --git a/.github/workflows/android.yml b/.github/workflows/android.ymlindex afa0caf16e..7fa34c4ffb 100644--- a/.github/workflows/android.yml+++ b/.github/workflows/android.yml@@ -2,12 +2,6 @@ name: "๐Ÿš€ Publish Next Release"  on:   workflow_dispatch:-    inputs:-      modules:-        description: 'Optional: comma-separated modules to build APKs for (e.g. "photos,pdf,games:chess"). Leave empty to build all.'-        required: false-        default: ''-        type: string  env:   ks_filename: release_keystore.jks@@ -110,9 +104,12 @@ jobs:             # --- Generate the 512x512 Play Store icon ---             symbol=$(grep -oE 'symbol[[:space:]]*=[[:space:]]*"[^"]+"' "$dir/build.gradle.kts" 2>/dev/null | head -1 | sed -E 's/.*"([^"]+)".*/\1/')             if [ -n "$symbol" ]; then-              scale=$(grep -oE 'scale[[:space:]]*=[[:space:]]*[0-9.]+' "$dir/build.gradle.kts" 2>/dev/null | head -1 | grep -oE '[0-9.]+')+              # NOTE: these end in `grep`, which exits non-zero when there is no+              # match. Under `bash -e` that would abort the whole step, so each is+              # made non-fatal with `|| true` and falls back to a default below.+              scale=$(grep -oE 'scale[[:space:]]*=[[:space:]]*[0-9.]+' "$dir/build.gradle.kts" 2>/dev/null | head -1 | grep -oE '[0-9.]+' || true)               scale=${scale:-0.58}-              bg=$(grep -rhoE '<color name="ic_launcher_background">#[0-9A-Fa-f]+' "$dir/src/main/res" 2>/dev/null | head -1 | grep -oE '#[0-9A-Fa-f]+')+              bg=$(grep -rhoE '<color name="ic_launcher_background">#[0-9A-Fa-f]+' "$dir/src/main/res" 2>/dev/null | head -1 | grep -oE '#[0-9A-Fa-f]+' || true)               bg=${bg:-$DEFAULT_BG}               glyph_px=$(awk "BEGIN{printf \"%d\", 512*$scale}")               svg_url="https://raw.githubusercontent.com/google/material-design-icons/$MATERIAL_SYMBOLS_REF/symbols/web/$symbol/materialsymbolsoutlined/${symbol}_24px.svg"@@ -130,7 +127,7 @@ jobs:             screenshot_dir="metadata_data/photos/${module_key}"             screenshot_file="metadata_data/photos/${module_key}.png"             if [ -d "$screenshot_dir" ]; then-              cp "$screenshot_dir"/*.png "$target_path/graphics/phone-screenshots/"+              cp "$screenshot_dir"/*.png "$target_path/graphics/phone-screenshots/" 2>/dev/null || true             elif [ -f "$screenshot_file" ]; then               cp "$screenshot_file" "$target_path/graphics/phone-screenshots/1.png"             fi@@ -157,29 +154,9 @@ jobs:         run: rustup target add aarch64-linux-android        - name: Build and Sign APKs-        env:-          MODULES_INPUT: ${{ inputs.modules }}         run: |-          # Default: build release APKs for every app module (assembleRelease).-          # If a modules list was supplied, build only those modules' APKs while-          # every earlier step (versioning, metadata, tag) still ran in full.-          GRADLE_TASKS="assembleRelease"-          if [ -n "$MODULES_INPUT" ]; then-            echo "Building APKs only for selected modules: $MODULES_INPUT"-            GRADLE_TASKS=""-            IFS=',' read -ra MODS <<< "$MODULES_INPUT"-            for mod in "${MODS[@]}"; do-              mod=$(echo "$mod" | xargs)   # trim surrounding whitespace-              [ -z "$mod" ] && continue-              mod="${mod#:}"               # tolerate a leading ':'-              GRADLE_TASKS="$GRADLE_TASKS :${mod}:assembleRelease"-            done-            echo "Resolved Gradle tasks:$GRADLE_TASKS"-          else-            echo "No modules specified โ€” building all app modules"-          fi--          ./gradlew $GRADLE_TASKS \+          # Always build release APKs for every app module.+          ./gradlew assembleRelease \             --no-daemon \             -x lint \             -x test \
metadata_data/photos/calendar.png
diff --git a/metadata_data/photos/calendar.png b/metadata_data/photos/calendar.pngdeleted file mode 100644index b04db05159..0000000000Binary files a/metadata_data/photos/calendar.png and /dev/null differ
metadata_data/photos/contacts.png
diff --git a/metadata_data/photos/contacts.png b/metadata_data/photos/contacts.pngdeleted file mode 100644index 8521a0b592..0000000000Binary files a/metadata_data/photos/contacts.png and /dev/null differ
metadata_data/photos/games-alchemist.png
diff --git a/metadata_data/photos/games-alchemist.png b/metadata_data/photos/games-alchemist.pngdeleted file mode 100644index 5463836b08..0000000000Binary files a/metadata_data/photos/games-alchemist.png and /dev/null differ
metadata_data/photos/games-chess.png
diff --git a/metadata_data/photos/games-chess.png b/metadata_data/photos/games-chess.pngdeleted file mode 100644index ab390e832a..0000000000Binary files a/metadata_data/photos/games-chess.png and /dev/null differ
metadata_data/photos/games-pipes.png
diff --git a/metadata_data/photos/games-pipes.png b/metadata_data/photos/games-pipes.pngdeleted file mode 100644index 6a54b8d12e..0000000000Binary files a/metadata_data/photos/games-pipes.png and /dev/null differ
metadata_data/photos/games-solitaire.png
diff --git a/metadata_data/photos/games-solitaire.png b/metadata_data/photos/games-solitaire.pngdeleted file mode 100644index 3eb19503cf..0000000000Binary files a/metadata_data/photos/games-solitaire.png and /dev/null differ
metadata_data/photos/games-unblockjam.png
diff --git a/metadata_data/photos/games-unblockjam.png b/metadata_data/photos/games-unblockjam.pngdeleted file mode 100644index 215935f2da..0000000000Binary files a/metadata_data/photos/games-unblockjam.png and /dev/null differ
metadata_data/photos/games-wordmaker.png
diff --git a/metadata_data/photos/games-wordmaker.png b/metadata_data/photos/games-wordmaker.pngdeleted file mode 100644index e1eebcfd8c..0000000000Binary files a/metadata_data/photos/games-wordmaker.png and /dev/null differ
metadata_data/photos/music.png
diff --git a/metadata_data/photos/music.png b/metadata_data/photos/music.pngdeleted file mode 100644index 70cbea392f..0000000000Binary files a/metadata_data/photos/music.png and /dev/null differ
metadata_data/photos/notes.png
diff --git a/metadata_data/photos/notes.png b/metadata_data/photos/notes.pngdeleted file mode 100644index a96712f96c..0000000000Binary files a/metadata_data/photos/notes.png and /dev/null differ
metadata_data/photos/photos.png
diff --git a/metadata_data/photos/photos.png b/metadata_data/photos/photos.pngdeleted file mode 100644index f56cc89023..0000000000Binary files a/metadata_data/photos/photos.png and /dev/null differ
metadata_data/photos/weather.png
diff --git a/metadata_data/photos/weather.png b/metadata_data/photos/weather.pngdeleted file mode 100644index d554688622..0000000000Binary files a/metadata_data/photos/weather.png and /dev/null differ