Skip to content

Instantly share code, notes, and snippets.

@spacecowboy
Last active August 26, 2025 22:16
Show Gist options
  • Save spacecowboy/e0647edaacf4c337608004f36452043c to your computer and use it in GitHub Desktop.
Save spacecowboy/e0647edaacf4c337608004f36452043c to your computer and use it in GitHub Desktop.
A taskfile for generating signature metadata for Feeder to F-Droid when making releases. The file should be placed in the root of fdroiddata repo.
# https://taskfile.dev
version: '3'
tasks:
default:
cmds:
- task: feeder-signatures
silent: true
feeder-signatures:
summary: Generates F-Droid metadata signatures for the latest release of Feeder
deps:
- install-fdroidserver
vars:
FEEDER_VERSION:
sh: |
curl --silent "https://api.github.com/repos/spacecowboy/Feeder/releases/latest" | jq -r .tag_name
cmds:
- git fetch
- git switch -c feeder-signatures fdroid/master
- fdroid signatures https://github.com/spacecowboy/Feeder/releases/download/{{.FEEDER_VERSION}}/app-fdroid-release.apk
- git add metadata/com.nononsenseapps.feeder/signatures
- git commit -m "Add F-Droid metadata signatures for Feeder {{.FEEDER_VERSION}}"
- git push -u origin feeder-signatures
install-fdroidserver:
summary: Installs fdroidserver with brew, if missing
internal: true
silent: true
cmds:
- |
if ! command -v fdroid &> /dev/null; then
brew install fdroidserver
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment