-
Notifications
You must be signed in to change notification settings - Fork 9
/
rclone.json
78 lines (78 loc) · 3.53 KB
/
rclone.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
"version": "1.68.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.68.1/rclone-v1.68.1-windows-amd64.zip",
"hash": "35e550ea373d90ed65ac1e2202420923584ec0501cf143ae27bdcff580a7c51f",
"extract_dir": "rclone-v1.68.1-windows-amd64"
},
"32bit": {
"url": "https://github.com/rclone/rclone/releases/download/v1.68.1/rclone-v1.68.1-windows-386.zip",
"hash": "a615c409f30c1267d2958331883c12ed59978c2e230bc772b3ac7ff8cd695d8c",
"extract_dir": "rclone-v1.68.1-windows-386"
},
"arm64": {
"url": "https://github.com/rclone/rclone/releases/download/v1.68.1/rclone-v1.68.1-windows-arm64.zip",
"hash": "89fab75effaf3b921b76ac4f70367680be0ae1c5e1f12d767cc4be768603e511",
"extract_dir": "rclone-v1.68.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"
}
}
}