|
3 | 3 | "description": "Copy files between a local computer and remote servers using FTP, FTPS, SCP, SFTP, WebDAV or S3 file transfer protocols.",
|
4 | 4 | "homepage": "https://winscp.net",
|
5 | 5 | "license": "GPL-3.0-or-later",
|
6 |
| - "url": [ |
7 |
| - "https://downloads.sourceforge.net/project/winscp/WinSCP/6.3.4/WinSCP-6.3.4-Portable.zip", |
8 |
| - "https://winscp.net/translations/dll/6.3.4/chs.zip" |
9 |
| - ], |
10 |
| - "hash": [ |
11 |
| - "0f7e564ac10facb04012693f4d62970e31cc09dec67b9d1aa37ff56e9bfcfb6f", |
12 |
| - "b8f4b5cf83472f3ad94dd6cf18c8e4c1e993960ea023cb09a64dc3c41bae72f6" |
13 |
| - ], |
| 6 | + "url": "https://downloads.sourceforge.net/project/winscp/WinSCP/6.3.4/WinSCP-6.3.4-Portable.zip", |
| 7 | + "hash": "0f7e564ac10facb04012693f4d62970e31cc09dec67b9d1aa37ff56e9bfcfb6f", |
14 | 8 | "pre_install": [
|
15 | 9 | "if (!(Test-Path \"$persist_dir\\winscp.ini\")) {",
|
16 | 10 | " @(",
|
|
19 | 13 | " ) | Add-Content -Path \"$dir\\winscp.ini\" -Encoding ASCII -Force",
|
20 | 14 | "}"
|
21 | 15 | ],
|
| 16 | + "post_install": [ |
| 17 | + "$url = \"https://winscp.net/translations/dll/$version/chs.zip\"", |
| 18 | + "Invoke-WebRequest -Uri $url -OutFile \"$dir\\chs.zip\"", |
| 19 | + "Expand-7ZipArchive \"$dir\\chs.zip\" -Removal" |
| 20 | + ], |
22 | 21 | "bin": [
|
23 | 22 | "WinSCP.exe",
|
24 | 23 | [
|
|
38 | 37 | "regex": "WinSCP-([\\d.]+)-Portable\\.zip"
|
39 | 38 | },
|
40 | 39 | "autoupdate": {
|
41 |
| - "url": [ |
42 |
| - "https://downloads.sourceforge.net/project/winscp/WinSCP/$version/WinSCP-$version-Portable.zip", |
43 |
| - "https://winscp.net/translations/dll/$version/chs.zip" |
44 |
| - ], |
| 40 | + "url": "https://downloads.sourceforge.net/project/winscp/WinSCP/$version/WinSCP-$version-Portable.zip", |
45 | 41 | "hash": {
|
46 | 42 | "url": "https://winscp.net/download/WinSCP-$version-ReadMe.txt",
|
47 | 43 | "regex": "(?sm)$basename.*?SHA-256: $sha256"
|
|
0 commit comments