From 09ada3702015c35973064dca36df9b4ac4427bc0 Mon Sep 17 00:00:00 2001 From: Brian <18603393+brian6932@users.noreply.github.com> Date: Sun, 11 Sep 2022 11:29:16 -0400 Subject: [PATCH] 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 * Apply suggestions from code review Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com> Co-authored-by: sitiom Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com> --- bucket/btop-lhm.json | 35 +++++++++++++++++++++++++++++++++++ bucket/btop.json | 30 ++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 bucket/btop-lhm.json create mode 100644 bucket/btop.json diff --git a/bucket/btop-lhm.json b/bucket/btop-lhm.json new file mode 100644 index 0000000000..b324b98462 --- /dev/null +++ b/bucket/btop-lhm.json @@ -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" + } + } + } +} diff --git a/bucket/btop.json b/bucket/btop.json new file mode 100644 index 0000000000..04ce00c43c --- /dev/null +++ b/bucket/btop.json @@ -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" + } + } + } +}