From b6867d42cd763d6c081bef5a7def3bef01bd3b9f Mon Sep 17 00:00:00 2001 From: Felix Date: Sat, 3 May 2025 13:24:01 +0200 Subject: [PATCH] update.sh aktualisiert --- update.sh | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/update.sh b/update.sh index afcfe79..5627d08 100755 --- a/update.sh +++ b/update.sh @@ -91,7 +91,18 @@ update_app "Telegram" "https://git.felo.gg/FeloStore/Data/releases/download/late # Clean up temp directory rm -rf ./temp -# Check for archived APKs and restore them to repo +# Add option to config to accept unsigned APKs +if [ -f config.yml ]; then + if ! grep -q "allow_disabled_algorithms:" config.yml; then + echo "allow_disabled_algorithms: True" >> config.yml + fi +fi + +# Update F-Droid repository first with nosign to prevent signature verification issues +echo "Updating F-Droid repository with nosign first..." +fdroid update --allow-disabled-algorithms --use-date-from-apk --nosign + +# Now check for archived APKs and restore them to repo echo "Checking for archived APKs to restore..." for app in YouTube Reddit SoundCloud Duolingo GoogleNews Instagram Twitter NovaLauncher Busuu Quizlet Telegram; do if [ -f "archive/${app}.apk" ]; then @@ -101,19 +112,8 @@ for app in YouTube Reddit SoundCloud Duolingo GoogleNews Instagram Twitter NovaL fi done -# Add option to config to accept unsigned APKs -if [ -f config.yml ]; then - if ! grep -q "allow_disabled_algorithms:" config.yml; then - echo "allow_disabled_algorithms: True" >> config.yml - fi -fi - -# Update F-Droid repository with only supported flags -echo "Updating F-Droid repository..." -fdroid update --allow-disabled-algorithms --use-date-from-apk --create-metadata --clean - # Final update to ensure everything is included -echo "Running final update with simpler flags..." -fdroid update --allow-disabled-algorithms --use-date-from-apk --nosign +echo "Running final update with metadata creation..." +fdroid update --allow-disabled-algorithms --use-date-from-apk --create-metadata --clean --nosign echo "Update complete!" \ No newline at end of file