mirror of
https://github.com/ScoopInstaller/Main.git
synced 2026-02-03 18:44:47 +00:00
79 lines
3.5 KiB
JSON
79 lines
3.5 KiB
JSON
{
|
|
"version": "1.72.1",
|
|
"description": "Sync files and directories to and from multiple cloud / FTP / HTTP hosters.",
|
|
"homepage": "https://rclone.org",
|
|
"license": "MIT",
|
|
"architecture": {
|
|
"64bit": {
|
|
"url": "https://github.com/rclone/rclone/releases/download/v1.72.1/rclone-v1.72.1-windows-amd64.zip",
|
|
"hash": "ab532febe55e4dd1229588a7ff1d22d76df390de729379da1e6d5c5ea5ae4c32",
|
|
"extract_dir": "rclone-v1.72.1-windows-amd64"
|
|
},
|
|
"32bit": {
|
|
"url": "https://github.com/rclone/rclone/releases/download/v1.72.1/rclone-v1.72.1-windows-386.zip",
|
|
"hash": "577e325d09e185d36bdfdd276b6f19afb42110e843ccf603c7844fa5afebbf2c",
|
|
"extract_dir": "rclone-v1.72.1-windows-386"
|
|
},
|
|
"arm64": {
|
|
"url": "https://github.com/rclone/rclone/releases/download/v1.72.1/rclone-v1.72.1-windows-arm64.zip",
|
|
"hash": "6ec2fb5bf1ebc0ab56dd8d1d1d43bf5a6060d36755e5bb1b006546b53a7775a7",
|
|
"extract_dir": "rclone-v1.72.1-windows-arm64"
|
|
}
|
|
},
|
|
"pre_install": [
|
|
"if (!(Test-Path \"$persist_dir\\rclone.conf\") -or !(Get-Item \"$persist_dir\\rclone.conf\").Length) {",
|
|
" New-Item \"$persist_dir\\rclone.conf\" -ItemType File -Force | Out-Null",
|
|
"",
|
|
" $tilde = if ($env:HOME) {",
|
|
" $env:HOME",
|
|
" } elseif ($env:USERPROFILE) {",
|
|
" $env:USERPROFILE",
|
|
" } else {",
|
|
" \"$env:HOMEDRIVE%\\$env:HOMEPATH\"",
|
|
" }",
|
|
"",
|
|
" $importConf = if (Test-Path \"$env:APPDATA\\rclone\\rclone.conf\") {",
|
|
" \"$env:APPDATA\\rclone\\rclone.conf\"",
|
|
" } elseif (Test-Path \"$env:XDG_CONFIG_HOME\\rclone\\rclone.conf\") {",
|
|
" \"$env:XDG_CONFIG_HOME\\rclone\\rclone.conf\"",
|
|
" } elseif (Test-Path \"$tilde\\.config\\rclone\\rclone.conf\") {",
|
|
" \"$tilde\\.config\\rclone\\rclone.conf\"",
|
|
" } elseif (Test-Path \"$tilde\\.rclone.conf\") {",
|
|
" \"$tilde\\.rclone.conf\"",
|
|
" }",
|
|
"",
|
|
" if ($importConf -and (Test-Path $importConf)) {",
|
|
" Copy-Item $importConf \"$persist_dir\\rclone.conf\"",
|
|
" Write-Host \"Imported existing rclone.conf from $importConf.\" -ForegroundColor Yellow",
|
|
" }",
|
|
"}"
|
|
],
|
|
"uninstaller": {
|
|
"script": "if ((Test-Path \"$dir\\rclone.conf\") -and !(Get-Item \"$dir\\rclone.conf\").LinkType -and (Test-Path $persist_dir)) { Copy-Item \"$dir\\rclone.conf\" $persist_dir }"
|
|
},
|
|
"bin": "rclone.exe",
|
|
"persist": "rclone.conf",
|
|
"checkver": {
|
|
"github": "https://github.com/rclone/rclone"
|
|
},
|
|
"autoupdate": {
|
|
"architecture": {
|
|
"64bit": {
|
|
"url": "https://github.com/rclone/rclone/releases/download/v$version/rclone-v$version-windows-amd64.zip",
|
|
"extract_dir": "rclone-v$version-windows-amd64"
|
|
},
|
|
"32bit": {
|
|
"url": "https://github.com/rclone/rclone/releases/download/v$version/rclone-v$version-windows-386.zip",
|
|
"extract_dir": "rclone-v$version-windows-386"
|
|
},
|
|
"arm64": {
|
|
"url": "https://github.com/rclone/rclone/releases/download/v$version/rclone-v$version-windows-arm64.zip",
|
|
"extract_dir": "rclone-v$version-windows-arm64"
|
|
}
|
|
},
|
|
"hash": {
|
|
"url": "$baseurl/SHA256SUMS"
|
|
}
|
|
}
|
|
}
|