mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-02 14:51:18 +00:00
45 lines
1.8 KiB
JSON
45 lines
1.8 KiB
JSON
{
|
|
"version": "0.9",
|
|
"description": "Flexible customizable prompt for Clink",
|
|
"homepage": "https://github.com/chrisant996/clink-flex-prompt",
|
|
"license": "MIT",
|
|
"suggest": {
|
|
"Clink": "clink"
|
|
},
|
|
"url": "https://github.com/chrisant996/clink-flex-prompt/releases/download/v0.9/clink-flex-prompt-0.9.zip",
|
|
"hash": "6dcfac3805c334699cc65998913ba9c711e17ee015b258ea3618cd004d90da6d",
|
|
"pre_install": [
|
|
"ensure \"$persist_dir\" | Out-Null",
|
|
"if (!(Test-Path \"$persist_dir\\flexprompt_autoconfig.lua\")) { New-Item -Path \"$dir\\flexprompt_autoconfig.lua\" -Force -ErrorAction SilentlyContinue | Out-Null }",
|
|
"if (!(Test-Path \"$persist_dir\\flexprompt_config.lua\")) { New-Item -Path \"$dir\\flexprompt_config.lua\" -Force -ErrorAction SilentlyContinue | Out-Null }"
|
|
],
|
|
"installer": {
|
|
"script": [
|
|
"if (Get-Command clink -ErrorAction SilentlyContinue) {",
|
|
" clink installscripts \"$dir\"",
|
|
"} elseif ($Env:CMDER_ROOT) {",
|
|
" & \"$Env:CMDER_ROOT\\vendor\\clink\\clink.bat\" installscripts \"$dir\"",
|
|
"} else {",
|
|
" warn 'Clink or Cmder installation not found. Please manually install these scripts.'",
|
|
"}"
|
|
]
|
|
},
|
|
"uninstaller": {
|
|
"script": [
|
|
"if (Get-Command clink -ErrorAction SilentlyContinue) {",
|
|
" clink uninstallscripts \"$dir\"",
|
|
"} elseif ($Env:CMDER_ROOT) {",
|
|
" & \"$Env:CMDER_ROOT\\vendor\\clink\\clink.bat\" uninstallscripts \"$dir\"",
|
|
"}"
|
|
]
|
|
},
|
|
"persist": [
|
|
"flexprompt_autoconfig.lua",
|
|
"flexprompt_config.lua"
|
|
],
|
|
"checkver": "github",
|
|
"autoupdate": {
|
|
"url": "https://github.com/chrisant996/clink-flex-prompt/releases/download/v$version/clink-flex-prompt-$version.zip"
|
|
}
|
|
}
|