From e5f3c6e7db03a734716410a2ed90f27a02596440 Mon Sep 17 00:00:00 2001 From: Darloli <96697399+SorYoshino@users.noreply.github.com> Date: Fri, 1 May 2026 16:08:02 +0800 Subject: [PATCH] trid: Simplify checkver regex --- bucket/trid.json | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bucket/trid.json b/bucket/trid.json index 23651bd9dc862..3292bb02a537b 100644 --- a/bucket/trid.json +++ b/bucket/trid.json @@ -15,11 +15,13 @@ ] } }, - "pre_install": "Expand-InnoArchive -Path \"$dir\\TrID_setup.exe\" -DestinationPath $dir -Removal", + "installer": { + "script": "Expand-InnoArchive -Path \"$dir\\TrID_setup.exe\" -Removal" + }, "bin": "trid.exe", "checkver": { - "regex": "(?smi)Win32.*?TrID v([\\d\\.]*).*?(\\d{2})\\/(\\d{2})\\/(\\d{2})", - "replace": "${1}-${4}.${3}.${2}" + "regex": "(?si)Win/x86-64.+?TrID v?([\\d.]+).+?(?\\d{2})/(?\\d{2})/(?\\d+)", + "replace": "${1}-${year}.${month}.${day}" }, "autoupdate": { "architecture": {