general: update workflow for fdroid
- Commit
b1b93fcedb9de35873b06db5a29bc8975c92f8cb- Author
- Vayun Mathur <[email protected]>
- When
- 2026-02-22 02:50 UTC (9 months ago)
- Parents
75d410a
Diff
.github/workflows/android.yml
diff --git a/.github/workflows/android.yml b/.github/workflows/android.ymlindex f6ff633106..13935ce174 100644--- a/.github/workflows/android.yml+++ b/.github/workflows/android.yml@@ -70,6 +70,53 @@ jobs: echo "version_name=$VERSION_NAME" >> $GITHUB_OUTPUT echo "version_code=$VERSION_CODE" >> $GITHUB_OUTPUT + - name: Detect App Modules+ run: |+ # Detect modules, excluding root and youpipe+ MODULE_DIRS=$(grep -rl "versionCode" . --include="build.gradle.kts" | \+ grep -vE "^\./build.gradle.kts$|youpipe" | \+ sed 's|^\./||; s|/build.gradle.kts$||' | sort -u | tr '\n' ' ')+ + echo "Detected modules: $MODULE_DIRS"+ echo "module_dirs=$MODULE_DIRS" >> $GITHUB_ENV++ - name: Prepare F-Droid Metadata+ run: |+ for dir in ${{ env.module_dirs }}; do+ # Convert dir path to hyphenated module name for file matching+ # e.g. games/chess -> games-chess+ module_key=$(echo $dir | sed 's|/|-|g')+ target_path="$dir/src/main/play/listings/en-US"+ + echo "Preparing metadata for $module_key in $target_path"+ mkdir -p "$target_path/graphics/icons"+ mkdir -p "$target_path/graphics/phone-screenshots"+ + # Copy Play Store icon+ icon_source="$dir/src/main/ic_launcher-playstore.png"+ if [ -f "$icon_source" ]; then+ cp "$icon_source" "$target_path/graphics/icons/icon.png"+ fi+ + # Copy Phone Screenshots from metadata_data/photos/{module_key}.png+ screenshot_source="metadata_data/photos/${module_key}.png"+ if [ -f "$screenshot_source" ]; then+ cp "$screenshot_source" "$target_path/graphics/phone-screenshots/1.png"+ fi+ + # Use a single source file named {module_key}.md (using hyphens)+ metadata_src="metadata_data/${module_key}.md"+ + if [ -f "$metadata_src" ]; then+ # Extract first line for short description+ head -n 1 "$metadata_src" > "$target_path/short-description.txt"+ # Full description is the whole file (including first line)+ cp "$metadata_src" "$target_path/full-description.txt"+ else+ echo "Warning: Metadata source $metadata_src not found."+ fi+ done+ - name: Commit, Tag & Push Changes run: | git config --global user.name "github-actions[bot]"@@ -77,27 +124,14 @@ jobs: git add . TAG_NAME="${{ steps.version_info.outputs.version_name }}" git commit -m "chore: prepare release $TAG_NAME (${{ steps.version_info.outputs.version_code }})" || echo "No changes to commit"+ git tag -f "$TAG_NAME" git push origin "$TAG_NAME" --force - - name: Detect App Modules- run: |- # 1. Find all build.gradle.kts containing 'versionCode'- # 2. Exclude the root build file- # 3. Exclude 'youpipe' only (chess is now included)- # 4. Strip './' and '/build.gradle.kts' to get relative directory paths- MODULE_DIRS=$(grep -rl "versionCode" . --include="build.gradle.kts" | \- grep -vE "^\./build.gradle.kts$|youpipe" | \- sed 's|^\./||; s|/build.gradle.kts$||' | sort -u | tr '\n' ' ')- - echo "Detected modules for build: $MODULE_DIRS"- echo "module_dirs=$MODULE_DIRS" >> $GITHUB_ENV- - name: Build and Sign run: | mkdir -p distribution_apks for dir in ${{ env.module_dirs }}; do- # Convert dir path to Gradle path (e.g. games/chess -> :games:chess) gradle_path=$(echo $dir | sed 's|/|:|g') module_name=$(basename $dir) @@ -113,7 +147,6 @@ jobs: -PRELEASE_KEY_ALIAS="${{ env.ks_alias }}" \ -PRELEASE_KEY_PASSWORD="${{ env.ks_alias_pass }}" - # Copy all generated APKs (handles flavored builds if they exist) cp $dir/build/outputs/apk/release/*.apk distribution_apks/ || echo "No APK found for $module_name" done
.idea/markdown.xml
diff --git a/.idea/markdown.xml b/.idea/markdown.xmlnew file mode 100644index 0000000000..c61ea3346e--- /dev/null+++ b/.idea/markdown.xml@@ -0,0 +1,8 @@+<?xml version="1.0" encoding="UTF-8"?>+<project version="4">+ <component name="MarkdownSettings">+ <option name="previewPanelProviderInfo">+ <ProviderInfo name="Compose (experimental)" className="com.intellij.markdown.compose.preview.ComposePanelProvider" />+ </option>+ </component>+</project>\ No newline at end of file
calendar/src/main/ic_launcher-playstore.png
diff --git a/calendar/src/main/ic_launcher-playstore.png b/calendar/src/main/ic_launcher-playstore.pngnew file mode 100644index 0000000000..57e0906a94Binary files /dev/null and b/calendar/src/main/ic_launcher-playstore.png differ
calendar/src/main/play/listings/en-US/graphics/icons/icon.png
diff --git a/calendar/src/main/play/listings/en-US/graphics/icons/icon.png b/calendar/src/main/play/listings/en-US/graphics/icons/icon.pngdeleted file mode 100644index 84678c9ba2..0000000000Binary files a/calendar/src/main/play/listings/en-US/graphics/icons/icon.png and /dev/null differ
calendar/src/main/play/listings/en-US/graphics/phone-screenshots/2.png
diff --git a/calendar/src/main/play/listings/en-US/graphics/phone-screenshots/2.png b/calendar/src/main/play/listings/en-US/graphics/phone-screenshots/2.pngdeleted file mode 100644index ba3619e8dd..0000000000Binary files a/calendar/src/main/play/listings/en-US/graphics/phone-screenshots/2.png and /dev/null differ
calendar/src/main/play/listings/en-US/graphics/phone-screenshots/3.png
diff --git a/calendar/src/main/play/listings/en-US/graphics/phone-screenshots/3.png b/calendar/src/main/play/listings/en-US/graphics/phone-screenshots/3.pngdeleted file mode 100644index 6ad50c8fd5..0000000000Binary files a/calendar/src/main/play/listings/en-US/graphics/phone-screenshots/3.png and /dev/null differ
calendar/src/main/play/listings/en-US/short-description.txt
diff --git a/calendar/src/main/play/listings/en-US/short-description.txt b/calendar/src/main/play/listings/en-US/short-description.txtdeleted file mode 100644index bb0c23047a..0000000000--- a/calendar/src/main/play/listings/en-US/short-description.txt+++ /dev/null@@ -1 +0,0 @@-The only fully-functional open-source calendar app with Material You\ No newline at end of file
calendar/src/main/res/drawable/ic_launcher_foreground.xml
diff --git a/calendar/src/main/res/drawable/ic_launcher_foreground.xml b/calendar/src/main/res/drawable/ic_launcher_foreground.xmlindex 51ad0af0a5..ead8e025b8 100644--- a/calendar/src/main/res/drawable/ic_launcher_foreground.xml+++ b/calendar/src/main/res/drawable/ic_launcher_foreground.xml@@ -1,15 +1,15 @@ <vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="108dp" android:height="108dp"- android:viewportWidth="960"- android:viewportHeight="960"+ android:viewportWidth="24"+ android:viewportHeight="24" android:tint="#000000">- <group android:scaleX="0.58"- android:scaleY="0.58"- android:translateX="201.6"- android:translateY="201.6">+ <group android:scaleX="0.522"+ android:scaleY="0.522"+ android:translateX="5.736"+ android:translateY="5.736"> <path android:fillColor="@android:color/white"- android:pathData="M200,880Q167,880 143.5,856.5Q120,833 120,800L120,240Q120,207 143.5,183.5Q167,160 200,160L240,160L240,80L320,80L320,160L640,160L640,80L720,80L720,160L760,160Q793,160 816.5,183.5Q840,207 840,240L840,800Q840,833 816.5,856.5Q793,880 760,880L200,880ZM200,800L760,800Q760,800 760,800Q760,800 760,800L760,400L200,400L200,800Q200,800 200,800Q200,800 200,800ZM200,320L760,320L760,240Q760,240 760,240Q760,240 760,240L200,240Q200,240 200,240Q200,240 200,240L200,320ZM200,320L200,240Q200,240 200,240Q200,240 200,240L200,240Q200,240 200,240Q200,240 200,240L200,320Z"/>+ android:pathData="M20,3h-1L19,1h-2v2L7,3L7,1L5,1v2L4,3c-1.1,0 -2,0.9 -2,2v16c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2L22,5c0,-1.1 -0.9,-2 -2,-2zM20,21L4,21L4,8h16v13z"/> </group> </vector>
calendar/src/main/res/mipmap-anydpi/ic_launcher.xml
diff --git a/calendar/src/main/res/mipmap-anydpi/ic_launcher.xml b/calendar/src/main/res/mipmap-anydpi/ic_launcher.xmlindex 0648fb47f9..ef49c99170 100644--- a/calendar/src/main/res/mipmap-anydpi/ic_launcher.xml+++ b/calendar/src/main/res/mipmap-anydpi/ic_launcher.xml@@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">- <background android:drawable="@color/ic_launcher_background" />- <foreground android:drawable="@drawable/ic_launcher_foreground" />- <monochrome android:drawable="@drawable/ic_launcher_foreground" />+ <background android:drawable="@color/ic_launcher_background"/>+ <foreground android:drawable="@drawable/ic_launcher_foreground"/>+ <monochrome android:drawable="@drawable/ic_launcher_foreground"/> </adaptive-icon>\ No newline at end of file
metadata_data/calendar.md
diff --git a/calendar/src/main/play/listings/en-US/full-description.txt b/metadata_data/calendar.mdsimilarity index 100%rename from calendar/src/main/play/listings/en-US/full-description.txtrename to metadata_data/calendar.md
metadata_data/contacts.md
diff --git a/metadata_data/contacts.md b/metadata_data/contacts.mdnew file mode 100644index 0000000000..f6eccbe66f--- /dev/null+++ b/metadata_data/contacts.md@@ -0,0 +1,3 @@+An open-source, fully-functional contacts app.++Intended to replace Google Contacts, with all the same features (except syncing)\ No newline at end of file
metadata_data/crypto.md
diff --git a/metadata_data/crypto.md b/metadata_data/crypto.mdnew file mode 100644index 0000000000..fa16f5b747--- /dev/null+++ b/metadata_data/crypto.md@@ -0,0 +1,10 @@+The best Solana wallet for the casual crypto user to replace traditional finance++Featuring:+- Receive and send payments+- Restore wallets from other apps+- Swap tokens (Jupiter DEX)+- "High Yield savings accounts >5% APY" (Jupiter Lend)+- Invest in the individual stocks and ETFs (xStocks)++Coming soon: Prediction Markets\ No newline at end of file
metadata_data/files.md
diff --git a/metadata_data/files.md b/metadata_data/files.mdnew file mode 100644index 0000000000..9a006d32fd--- /dev/null+++ b/metadata_data/files.md@@ -0,0 +1 @@+A comprehensive files app\ No newline at end of file
metadata_data/findfamily.md
diff --git a/metadata_data/findfamily.md b/metadata_data/findfamily.mdnew file mode 100644index 0000000000..b652c6c959--- /dev/null+++ b/metadata_data/findfamily.md@@ -0,0 +1,11 @@+Find Family is a simple, end-to-end encrypted location sharing app for family and friends.++Features:+- End-to-end encryption+- No emails, phone numbers, or any other personal information required+- Temporarily turn on or off location sharing with specific people+- Saved places, with notifications when people enter or leave them+- See battery status+- Fully open source client+- share current speed+- show how long person has been at place (saved or not)\ No newline at end of file
metadata_data/games-chess.md
diff --git a/metadata_data/games-chess.md b/metadata_data/games-chess.mdnew file mode 100644index 0000000000..57659ea608--- /dev/null+++ b/metadata_data/games-chess.md@@ -0,0 +1,3 @@+An open-source chess app.++Supports local 2-player mode and local AI using stockfish with configurable difficulty\ No newline at end of file
metadata_data/games-unblockjam.md
diff --git a/metadata_data/games-unblockjam.md b/metadata_data/games-unblockjam.mdnew file mode 100644index 0000000000..814c9da3bb--- /dev/null+++ b/metadata_data/games-unblockjam.md@@ -0,0 +1,3 @@+A private and open source version of the classic board game "Rush Hour"++250 levels for you to play through increasing in difficulty. Try and find the optimal solution for each of them!\ No newline at end of file
metadata_data/games-wordmaker.md
diff --git a/metadata_data/games-wordmaker.md b/metadata_data/games-wordmaker.mdnew file mode 100644index 0000000000..e2cc6d57e5--- /dev/null+++ b/metadata_data/games-wordmaker.md@@ -0,0 +1,3 @@+A fun word puzzle game, completely private and offline++Over 850 levels with more to come\ No newline at end of file
metadata_data/health.md
diff --git a/metadata_data/health.md b/metadata_data/health.mdnew file mode 100644index 0000000000..3d5e4f9a5a--- /dev/null+++ b/metadata_data/health.md@@ -0,0 +1 @@+A health metric management health meant to replace Google Fit\ No newline at end of file
metadata_data/maps.md
diff --git a/metadata_data/maps.md b/metadata_data/maps.mdnew file mode 100644index 0000000000..c8b751b112--- /dev/null+++ b/metadata_data/maps.md@@ -0,0 +1,3 @@+A modern, fast, open-source, and offline map app using OpenStreetMaps++Routing is currently done through proxy through vayunmathur.com with the Google Maps API, but offline routing is in progress\ No newline at end of file
metadata_data/music.md
diff --git a/metadata_data/music.md b/metadata_data/music.mdnew file mode 100644index 0000000000..fe7b98e697--- /dev/null+++ b/metadata_data/music.md@@ -0,0 +1 @@+A basic music player app\ No newline at end of file
metadata_data/notes.md
diff --git a/metadata_data/notes.md b/metadata_data/notes.mdnew file mode 100644index 0000000000..623c1fa027--- /dev/null+++ b/metadata_data/notes.md@@ -0,0 +1 @@+A basic note-taking app\ No newline at end of file
metadata_data/openassistant.md
diff --git a/metadata_data/openassistant.md b/metadata_data/openassistant.mdnew file mode 100644index 0000000000..ed538cb93c--- /dev/null+++ b/metadata_data/openassistant.md@@ -0,0 +1,8 @@+A simple, open-source AI app that uses Grok.++Features:+- multiple chats+- tool calling (currently just time, but will expand)+- streaming long responses+- multimodal input (photo upload)+- markdown formatted text output\ No newline at end of file
metadata_data/passwords.md
diff --git a/metadata_data/passwords.md b/metadata_data/passwords.mdnew file mode 100644index 0000000000..6b22ff61b7--- /dev/null+++ b/metadata_data/passwords.md@@ -0,0 +1 @@+A basic passwords app\ No newline at end of file
metadata_data/pdf.md
diff --git a/metadata_data/pdf.md b/metadata_data/pdf.mdnew file mode 100644index 0000000000..898e92bca0--- /dev/null+++ b/metadata_data/pdf.md@@ -0,0 +1,7 @@+A simple, open-source PDF viewing app++Features:+- Search for text+- Print (through the share menu)++PDF editing coming soon\ No newline at end of file
metadata_data/photos.md
diff --git a/metadata_data/photos.md b/metadata_data/photos.mdnew file mode 100644index 0000000000..91a31c5a62--- /dev/null+++ b/metadata_data/photos.md@@ -0,0 +1,5 @@+A basic photos app built with Material You++Features:+- browse photos in gallery+- browse photos on map\ No newline at end of file
metadata_data/photos/calendar.png
diff --git a/calendar/src/main/play/listings/en-US/graphics/phone-screenshots/1.png b/metadata_data/photos/calendar.pngsimilarity index 100%rename from calendar/src/main/play/listings/en-US/graphics/phone-screenshots/1.pngrename to metadata_data/photos/calendar.png
metadata_data/photos/contacts.png
diff --git a/metadata_data/photos/contacts.png b/metadata_data/photos/contacts.pngnew file mode 100644index 0000000000..8521a0b592Binary files /dev/null and b/metadata_data/photos/contacts.png differ
metadata_data/photos/crypto.png
diff --git a/metadata_data/photos/crypto.png b/metadata_data/photos/crypto.pngnew file mode 100644index 0000000000..c9490143baBinary files /dev/null and b/metadata_data/photos/crypto.png differ
metadata_data/photos/findfamily.png
diff --git a/metadata_data/photos/findfamily.png b/metadata_data/photos/findfamily.pngnew file mode 100644index 0000000000..468b93d1a0Binary files /dev/null and b/metadata_data/photos/findfamily.png differ
metadata_data/photos/games-chess.png
diff --git a/metadata_data/photos/games-chess.png b/metadata_data/photos/games-chess.pngnew file mode 100644index 0000000000..ab390e832aBinary files /dev/null and b/metadata_data/photos/games-chess.png differ
metadata_data/photos/games-unblockjam.png
diff --git a/metadata_data/photos/games-unblockjam.png b/metadata_data/photos/games-unblockjam.pngnew file mode 100644index 0000000000..215935f2daBinary files /dev/null and b/metadata_data/photos/games-unblockjam.png differ
metadata_data/photos/games-wordmaker.png
diff --git a/metadata_data/photos/games-wordmaker.png b/metadata_data/photos/games-wordmaker.pngnew file mode 100644index 0000000000..e1eebcfd8cBinary files /dev/null and b/metadata_data/photos/games-wordmaker.png differ
metadata_data/photos/openassistant.png
diff --git a/metadata_data/photos/openassistant.png b/metadata_data/photos/openassistant.pngnew file mode 100644index 0000000000..2d29fabba0Binary files /dev/null and b/metadata_data/photos/openassistant.png differ
metadata_data/photos/pdf.png
diff --git a/metadata_data/photos/pdf.png b/metadata_data/photos/pdf.pngnew file mode 100644index 0000000000..5d66b69656Binary files /dev/null and b/metadata_data/photos/pdf.png differ