ScoopInstaller_Main/bucket/btop-lhm.json
Brian 09ada37020
btop(-lhm): Add version 1.0.3 (#3897)
* btop: Add version 1.0.2
btop-LHM: Add version 1.0.2

* Rename btop-LHM.json to btop-lhm.json

* Better persists

* btop-lhm: Add pre_uninstall

* Better description

* 1.0.3

* better pre_uninstall

* Fixed persists

* Made sc bin specific
In case someone has an alias with the same name

* Add admin rights check to match suggestion in #3897 (comment)

Co-authored-by: sitiom <sitiom@proton.me>

* Apply suggestions from code review

Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com>

Co-authored-by: sitiom <sitiom@proton.me>
Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com>
2022-09-11 20:59:16 +05:30

36 lines
1.3 KiB
JSON

{
"version": "1.0.3",
"description": "Resource monitor that shows usage and stats for processor, memory, disks, network, processes and services (LibreHardwareMonitor version with full monitoring capabilities).",
"homepage": "https://github.com/aristocratos/btop4win",
"license": "Apache-2.0",
"notes": "This application requires admin rights to run.",
"architecture": {
"64bit": {
"url": "https://github.com/aristocratos/btop4win/releases/download/v1.0.3/btop4win-LHM-x64.zip",
"hash": "10a5042236c1c16e915a12ea7003822a51292cf1a8276ce4652ebd2080eb2477",
"extract_dir": "btop4win"
}
},
"pre_install": [
"Get-ChildItem \"$dir\\btop4win.exe\" | Rename-Item -NewName { $_.name -Replace '4win', '' }",
"if (!(Test-Path \"$persist_dir\\btop.conf\")) { New-Item \"$dir\\btop.conf\" | Out-Null }"
],
"pre_uninstall": [
"if (!(is_admin)) { error \"$app requires admin rights to $cmd\"; break }",
"sc.exe stop R0btop | Out-Null"
],
"persist": [
"themes",
"btop.conf"
],
"bin": "btop.exe",
"checkver": "github",
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://github.com/aristocratos/btop4win/releases/download/v$version/btop4win-LHM-x64.zip"
}
}
}
}