-
-
Notifications
You must be signed in to change notification settings - Fork 105
/
Copy pathwinscp-cn.json
46 lines (46 loc) · 1.62 KB
/
winscp-cn.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
{
"version": "6.3.4",
"description": "Copy files between a local computer and remote servers using FTP, FTPS, SCP, SFTP, WebDAV or S3 file transfer protocols.",
"homepage": "https://winscp.net",
"license": "GPL-3.0-or-later",
"url": "https://downloads.sourceforge.net/project/winscp/WinSCP/6.3.4/WinSCP-6.3.4-Portable.zip",
"hash": "0f7e564ac10facb04012693f4d62970e31cc09dec67b9d1aa37ff56e9bfcfb6f",
"pre_install": [
"if (!(Test-Path \"$persist_dir\\winscp.ini\")) {",
" @(",
" '[Configuration\\Interface]'",
" 'RandomSeedFile=.\\winscp.rnd'",
" ) | Add-Content -Path \"$dir\\winscp.ini\" -Encoding ASCII -Force",
"}"
],
"post_install": [
"$url = \"https://winscp.net/translations/dll/$version/chs.zip\"",
"Invoke-WebRequest -Uri $url -OutFile \"$dir\\chs.zip\"",
"Expand-7ZipArchive \"$dir\\chs.zip\" -Removal"
],
"bin": [
"WinSCP.exe",
[
"WinSCP.com",
"WinSCP-cli"
]
],
"shortcuts": [
[
"WinSCP.exe",
"WinSCP"
]
],
"persist": "winscp.ini",
"checkver": {
"url": "https://winscp.net/eng/downloads.php",
"regex": "WinSCP-([\\d.]+)-Portable\\.zip"
},
"autoupdate": {
"url": "https://downloads.sourceforge.net/project/winscp/WinSCP/$version/WinSCP-$version-Portable.zip",
"hash": {
"url": "https://winscp.net/download/WinSCP-$version-ReadMe.txt",
"regex": "(?sm)$basename.*?SHA-256: $sha256"
}
}
}