From a17794ec968faaadd75cdd98cd006bc5b371aec3 Mon Sep 17 00:00:00 2001 From: Brian <18603393+brian6932@users.noreply.github.com> Date: Tue, 28 Nov 2023 12:03:58 -0500 Subject: [PATCH] taiga: Make `persist` explicit (#11833) * taiga: Make `persist` explicit also made the manifest match `versions` more * taiga: Add `db\image` to persists (image cache) * Reduce escapes --- bucket/taiga.json | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/bucket/taiga.json b/bucket/taiga.json index dc1210c879d831..5322efec2973ed 100644 --- a/bucket/taiga.json +++ b/bucket/taiga.json @@ -3,8 +3,13 @@ "description": "Detects anime videos on computer and synchronizes progress with online services.", "homepage": "https://taiga.moe/", "license": "GPL-3.0-only", - "url": "https://taiga.moe/update/TaigaSetup.exe#/dl.7z", + "url": "https://github.com/erengy/taiga/releases/download/v1.4.0/TaigaSetup_1.4.0.exe#/dl.7z", "hash": "22556aff39f20a88bde4f0b944d886dd729810477b6b97dab39a0c9a60ad43e0", + "pre_install": [ + "'$PLUGINSDIR', 'Uninstall.exe' | ForEach-Object { Remove-Item \"$dir/$_\" -Recurse }", + "'user', 'feed', 'db/image' | ForEach-Object { if (!(Test-Path \"$persist_dir$($_ = \"/data/$_\")\")) { New-Item -ItemType 'Directory' \"$dir$_\" | Out-Null } }", + "'settings', 'db/anime' | ForEach-Object { if (!(Test-Path \"$persist_dir$($_ = \"/data/$_.xml\")\" )) { New-Item \"$dir$_\" | Out-Null } }" + ], "bin": "Taiga.exe", "shortcuts": [ [ @@ -12,11 +17,17 @@ "Taiga" ] ], - "persist": "data", + "persist": [ + "data/user", + "data/feed", + "data/settings.xml", + "data/db/image", + "data/db/anime.xml" + ], "checkver": { "github": "https://github.com/erengy/taiga" }, "autoupdate": { - "url": "https://taiga.moe/update/TaigaSetup.exe#/dl.7z" + "url": "https://github.com/erengy/taiga/releases/download/v$version/TaigaSetup_$version.exe#/dl.7z" } }