mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-03 15:21:18 +00:00
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>
This commit is contained in:
parent
52ce968b2b
commit
09ada37020
35
bucket/btop-lhm.json
Normal file
35
bucket/btop-lhm.json
Normal file
@ -0,0 +1,35 @@
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
30
bucket/btop.json
Normal file
30
bucket/btop.json
Normal file
@ -0,0 +1,30 @@
|
||||
{
|
||||
"version": "1.0.3",
|
||||
"description": "Resource monitor that shows usage and stats for processor, memory, disks, network, processes and services.",
|
||||
"homepage": "https://github.com/aristocratos/btop4win",
|
||||
"license": "Apache-2.0",
|
||||
"architecture": {
|
||||
"64bit": {
|
||||
"url": "https://github.com/aristocratos/btop4win/releases/download/v1.0.3/btop4win-x64.zip",
|
||||
"hash": "81aa87da6d038fa8af535f66e50fddbea58fa25f9902c363c6df8a93a0a5d866",
|
||||
"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 }"
|
||||
],
|
||||
"persist": [
|
||||
"themes",
|
||||
"btop.conf"
|
||||
],
|
||||
"bin": "btop.exe",
|
||||
"checkver": "github",
|
||||
"autoupdate": {
|
||||
"architecture": {
|
||||
"64bit": {
|
||||
"url": "https://github.com/aristocratos/btop4win/releases/download/v$version/btop4win-x64.zip"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user