Skip to content

Commit df4d75a

Browse files
authored
winscp-cn: Update post_install
1 parent 80c8b20 commit df4d75a

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

Diff for: bucket/winscp-cn.json

+8-12
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,8 @@
33
"description": "Copy files between a local computer and remote servers using FTP, FTPS, SCP, SFTP, WebDAV or S3 file transfer protocols.",
44
"homepage": "https://winscp.net",
55
"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",
148
"pre_install": [
159
"if (!(Test-Path \"$persist_dir\\winscp.ini\")) {",
1610
" @(",
@@ -19,6 +13,11 @@
1913
" ) | Add-Content -Path \"$dir\\winscp.ini\" -Encoding ASCII -Force",
2014
"}"
2115
],
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+
],
2221
"bin": [
2322
"WinSCP.exe",
2423
[
@@ -38,10 +37,7 @@
3837
"regex": "WinSCP-([\\d.]+)-Portable\\.zip"
3938
},
4039
"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",
4541
"hash": {
4642
"url": "https://winscp.net/download/WinSCP-$version-ReadMe.txt",
4743
"regex": "(?sm)$basename.*?SHA-256: $sha256"

0 commit comments

Comments
 (0)