diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 2c02fc6..b1377d1 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -107,3 +107,36 @@ jobs: Android release ${{ steps.stop.outputs.version }} files: | app/build/outputs/apk/release/*.apk + + - name: Prepare F-Droid Repo + if: steps.stop.outputs.continue == 'true' + run: | + mkdir -p /tmp/fdroid-repo + cp app/build/outputs/apk/release/*.apk /tmp/fdroid-repo/ + cp fdroid/config.yml /tmp/fdroid-repo/config.yml + cp fdroid/icon.png /tmp/fdroid-repo/icon.png + + # ----------------------------- + # 9. Обновляем F-Droid репозиторий + # ----------------------------- + - name: Update F-Droid Repo + if: steps.stop.outputs.continue == 'true' + run: | + docker run --rm \ + -v /tmp/fdroid-repo:/fdroid \ + -e FDROID_CONFIG_FILE=/fdroid/config.yml \ + registry.gitlab.com/fdroid/docker-executable-fdroidserver:latest \ + sh -c "fdroid update && fdroid deploy" + + # ----------------------------- + # 10. Пушим изменения в F-Droid репо + # ----------------------------- + - name: Commit & Push to F-Droid Repo + if: steps.stop.outputs.continue == 'true' + run: | + cd /tmp/fdroid-repo + git init + git remote add origin https://git.daemonlord.ru/fdroid/repo.git + git add . + git commit -m "Update APKs for ${{ steps.version.outputs.version }}" + git push -f origin master diff --git a/app/build.gradle b/app/build.gradle index 6c6fd57..069f8ae 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -10,8 +10,8 @@ android { applicationId "com.anabasis.vkchatmanager" minSdk 26 targetSdk 36 - versionCode 4 - versionName "1.1.2" + versionCode 5 + versionName "1.1.3" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } diff --git a/fdroid/config.yml b/fdroid/config.yml new file mode 100644 index 0000000..bebe70a --- /dev/null +++ b/fdroid/config.yml @@ -0,0 +1,10 @@ +repo_name: Anabasis F-Droid Repo +repo_url: https://git.daemonlord.ru/fdroid/repo + +keystore: "" +keystorepass: "" +keyalias: "" +keypass: "" + +repo_icon: icon.png +archive_older: 0 diff --git a/fdroid/icon.png b/fdroid/icon.png new file mode 100644 index 0000000..41bcf76 Binary files /dev/null and b/fdroid/icon.png differ