Skip to content

Commit 8cbd539

Browse files
committed
fluxdown: Apply review feedback and simplify persist
- Shorten description per z-Fng's suggestion - Remove bin (flux_down.exe is GUI-only) - Remove uninstaller (shortcuts managed by Scoop; no Stop-Process) - Use $baseurl in autoupdate hash URL per z-Fng's suggestion - Keep original pre_install/persist from author's working bucket - Add CLI download note with $version
1 parent c7a1b52 commit 8cbd539

1 file changed

Lines changed: 10 additions & 20 deletions

File tree

bucket/fluxdown.json

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"version": "0.1.55",
3-
"description": "Free, blazing-fast multi-protocol download manager (IDM alternative) powered by a Rust engine. Supports HTTP/HTTPS/FTP/BitTorrent/HLS with intelligent segmentation.",
3+
"description": "A Rust-powered download manager with HTTP, FTP, BitTorrent and HLS/DASH streaming support.",
44
"homepage": "https://fluxdown.zerx.dev",
55
"license": {
66
"identifier": "AGPL-3.0-only",
@@ -18,7 +18,10 @@
1818
"Browser extensions (required for download interception):",
1919
" Chrome: https://chromewebstore.google.com/detail/fluxdown/meleenglfggcmcajknpeeeiobnpfmahc",
2020
" Firefox: https://addons.mozilla.org/firefox/addon/fluxdown",
21-
" Edge: https://microsoftedge.microsoft.com/addons/detail/fluxdown/nglkkjbogjghekbhhcnccnpfedjbdhhd"
21+
" Edge: https://microsoftedge.microsoft.com/addons/detail/fluxdown/nglkkjbogjghekbhhcnccnpfedjbdhhd",
22+
"",
23+
"Command-line client:",
24+
" https://github.com/zerx-lab/FluxDown/releases/tag/cli-v$version"
2225
],
2326
"architecture": {
2427
"64bit": {
@@ -30,9 +33,10 @@
3033
"hash": "3fd9d54ca258df1ccb217d3fa5f14d55e61dd7408a5cb4447af1d342c8b1d047"
3134
}
3235
},
33-
"pre_install": "if (!(Test-Path \"$dir\\flux_down.db\")) { New-Item -ItemType File \"$dir\\flux_down.db\" -Force | Out-Null }",
34-
"post_install": "if (!(Test-Path \"$dir\\settings.json\")) { New-Item -ItemType File \"$dir\\settings.json\" -Force | Out-Null }",
35-
"bin": "flux_down.exe",
36+
"pre_install": [
37+
"if (!(Test-Path \"$dir\\flux_down.db\")) { New-Item -ItemType File \"$dir\\flux_down.db\" -Force | Out-Null }",
38+
"if (!(Test-Path \"$dir\\settings.json\")) { Set-Content \"$dir\\settings.json\" '{}' -Encoding UTF8 }"
39+
],
3640
"shortcuts": [
3741
[
3842
"flux_down.exe",
@@ -45,20 +49,6 @@
4549
"settings.json",
4650
"logs"
4751
],
48-
"uninstaller": {
49-
"script": [
50-
"Stop-Process -Name flux_down -Force -ErrorAction SilentlyContinue",
51-
"Start-Sleep -Milliseconds 1500",
52-
"$appDir = Split-Path $dir -Parent",
53-
"$shell = New-Object -ComObject WScript.Shell",
54-
"@(\"$env:APPDATA\", \"$env:ProgramData\") | ForEach-Object {",
55-
" $lnk = \"$_\\Microsoft\\Windows\\Start Menu\\Programs\\FluxDown.lnk\"",
56-
" if ((Test-Path $lnk) -and ($shell.CreateShortcut($lnk).TargetPath -like \"$appDir\\*\")) {",
57-
" Remove-Item $lnk -Force -ErrorAction SilentlyContinue",
58-
" }",
59-
"}"
60-
]
61-
},
6252
"checkver": {
6353
"github": "https://github.com/zerx-lab/FluxDown"
6454
},
@@ -72,7 +62,7 @@
7262
}
7363
},
7464
"hash": {
75-
"url": "https://github.com/zerx-lab/FluxDown/releases/download/v$version/SHA256SUMS.txt"
65+
"url": "$baseurl/SHA256SUMS.txt"
7666
}
7767
}
7868
}

0 commit comments

Comments
 (0)