Scripts to manage an F-Droid compatible repository https://silkevicious.codeberg.page/apkscripts.html
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
553 B

#!/bin/bash
date;
echo START;
eval "$(ssh-agent -s)"; ssh-add ~/.ssh/gitkey;
#########
#prepare#
#########
cd ~/app_builds/fdroid; mv repo/*.apk apk; rm -rf repo git-mirror metadata; mkdir repo git-mirror metadata; cp README.md git-mirror; cp LICENSE.md git-mirror; cd ~/app_builds/fdroid/unsigned; for i in *.apk; do echo $SIGNPWD | apksigner $i; done; rm *.idsig; mv *.apk ../apk; cd ../; mv apk/*.apk repo; fdroid update -c; fdroid update; cd reset; git push --force --set-upstream origin master; cd ../; fdroid deploy -v;
date;
echo END DEPLOY;