Old plugins cleanup (#12932)
Some checks are pending
macos / macOS 13 x86-64 🔨15.2 🎯10.15 (push) Waiting to run
macos / macOS 14 ARM64 🔨15.4 🎯11.0 (push) Waiting to run

* Remove OBSOLETE_PLUGINS table.
* Remove old plugins.
* exporter: remove old settings migration
This commit is contained in:
Martín Fernández
2025-03-18 20:28:25 +01:00
committed by GitHub
parent d106336a79
commit fbe2e452f1
3 changed files with 14 additions and 48 deletions

View File

@@ -856,5 +856,18 @@ if last_migration_date < 20250302 then
end
end
-- 20250318, Remove obsolete plugins
-- https://github.com/koreader/koreader/pull/12932
if last_migration_date < 20250318 then
logger.info("Performing one-time migration for 20250318")
local base = DataStorage:getDataDir() .. "/plugins/"
local old_plugins = { "autofrontlight", "backgroundrunner", "calibrecompanion",
"evernote", "goodreads", "kobolight", "send2ebook", "storagestat", "zsync" }
for _, v in ipairs(old_plugins) do
ffiUtil.purgeDir(base .. v .. ".koplugin")
end
end
-- We're done, store the current migration date
G_reader_settings:saveSetting("last_migration_date", CURRENT_MIGRATION_DATE)