From 2d67d51d3a4e88d8b6cc01ed466c24859c253b87 Mon Sep 17 00:00:00 2001 From: itsutsu <66627721+itsutsu@users.noreply.github.com> Date: Fri, 8 Mar 2024 14:01:28 -0500 Subject: [PATCH] gallery-dl: (chore) Add config to persist (#5484) * add persist to gallery-dl * Update bucket/gallery-dl.json simplification Co-authored-by: tech189 * Update bucket/gallery-dl.json fix error from file being empty Co-authored-by: tech189 --------- Co-authored-by: tech189 --- bucket/gallery-dl.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bucket/gallery-dl.json b/bucket/gallery-dl.json index a39055e5cc..1b0591a468 100644 --- a/bucket/gallery-dl.json +++ b/bucket/gallery-dl.json @@ -6,6 +6,8 @@ "url": "https://github.com/mikf/gallery-dl/releases/download/v1.26.8/gallery-dl.exe", "hash": "4d9f51c71196600de56bfb79e496ec9bc38edd5a00f09e43925d97276d49950d", "bin": "gallery-dl.exe", + "pre_install": "if (-not (Test-Path \"$persist_dir\\gallery-dl.conf\")) { Set-Content \"$dir\\gallery-dl.conf\" '{}' -Encoding Ascii | Out-Null }", + "persist": "gallery-dl.conf", "checkver": "github", "autoupdate": { "url": "https://github.com/mikf/gallery-dl/releases/download/v$version/gallery-dl.exe"