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 <dlloyd189@gmail.com>
This commit is contained in:
Valinor 2022-11-12 14:45:17 +01:00 committed by GitHub
parent 2f9ffb5f99
commit 76e8c5b97d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"
]
}
}
}