From 76e8c5b97dfc8155015e81210635faf49a205d9e Mon Sep 17 00:00:00 2001 From: Valinor Date: Sat, 12 Nov 2022 14:45:17 +0100 Subject: [PATCH] lf@r27: Add lfcd to shims (#3867) * Correct #3796 - lf: add lfcd to shims * fix: lf: rashil2000 comment improvment * Fix shims being overwritten Co-authored-by: tech189 --- bucket/lf.json | 38 ++++++++++++++++++++++++++++++++------ 1 file changed, 32 insertions(+), 6 deletions(-) diff --git a/bucket/lf.json b/bucket/lf.json index 531891a6a0..755aee5a08 100644 --- a/bucket/lf.json +++ b/bucket/lf.json @@ -5,15 +5,33 @@ "license": "MIT", "architecture": { "64bit": { - "url": "https://github.com/gokcehan/lf/releases/download/r27/lf-windows-amd64.zip", - "hash": "118d6f2096e35ea7703f2b881a9d724806af8a5575c7f788d723f9797fa20948" + "url": [ + "https://github.com/gokcehan/lf/releases/download/r27/lf-windows-amd64.zip", + "https://raw.githubusercontent.com/gokcehan/lf/r27/etc/lfcd.cmd", + "https://raw.githubusercontent.com/gokcehan/lf/r27/etc/lfcd.ps1" + ], + "hash": [ + "118d6f2096e35ea7703f2b881a9d724806af8a5575c7f788d723f9797fa20948", + "894791f025c03fc2d0241b26bd23125800f1c2abb3dd7c899496ac0a84ea1890", + "e981fb0c6d82268b15ff27aa40925df40ee26feffdea36da75c311f733c79aef" + ] }, "32bit": { - "url": "https://github.com/gokcehan/lf/releases/download/r27/lf-windows-386.zip", - "hash": "1c4db943cfbb3201cc44a159fedf61745aea6f255f2a8af8f446df1be18a66cd" + "url": [ + "https://github.com/gokcehan/lf/releases/download/r27/lf-windows-386.zip", + "https://raw.githubusercontent.com/gokcehan/lf/r27/etc/lfcd.cmd", + "https://raw.githubusercontent.com/gokcehan/lf/r27/etc/lfcd.ps1" + ], + "hash": [ + "1c4db943cfbb3201cc44a159fedf61745aea6f255f2a8af8f446df1be18a66cd", + "894791f025c03fc2d0241b26bd23125800f1c2abb3dd7c899496ac0a84ea1890", + "e981fb0c6d82268b15ff27aa40925df40ee26feffdea36da75c311f733c79aef" + ] } }, "bin": "lf.exe", + "pre_install": "Move-Item $dir\\lfcd.cmd, $dir\\lfcd.ps1 $scoopdir\\shims\\", + "post_uninstall": "Remove-Item $scoopdir\\shims\\lfcd.cmd, $scoopdir\\shims\\lfcd.ps1", "checkver": { "github": "https://github.com/gokcehan/lf/", "regex": "tag/(r[\\d]+)" @@ -21,10 +39,18 @@ "autoupdate": { "architecture": { "64bit": { - "url": "https://github.com/gokcehan/lf/releases/download/$version/lf-windows-amd64.zip" + "url": [ + "https://github.com/gokcehan/lf/releases/download/$version/lf-windows-amd64.zip", + "https://raw.githubusercontent.com/gokcehan/lf/$version/etc/lfcd.cmd", + "https://raw.githubusercontent.com/gokcehan/lf/$version/etc/lfcd.ps1" + ] }, "32bit": { - "url": "https://github.com/gokcehan/lf/releases/download/$version/lf-windows-386.zip" + "url": [ + "https://github.com/gokcehan/lf/releases/download/$version/lf-windows-386.zip", + "https://raw.githubusercontent.com/gokcehan/lf/$version/etc/lfcd.cmd", + "https://raw.githubusercontent.com/gokcehan/lf/$version/etc/lfcd.ps1" + ] } } }