update.sh aktualisiert
This commit is contained in:
28
update.sh
28
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!"
|
||||
Reference in New Issue
Block a user