Skip to content

Commit

Permalink
winscp: persist "Translations" directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Vixb1122 authored Apr 17, 2024
1 parent 7eea327 commit f17186f
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions bucket/winscp.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"license": "GPL-3.0-or-later",
"url": "https://downloads.sourceforge.net/project/winscp/WinSCP/6.3.3/WinSCP-6.3.3-Portable.zip",
"hash": "7f68f9cc324cc8a8195829c83d0443bd2cd73fdb253d776aa2aeb4ed2d42711d",
"notes": "You can download the translation file archive from https://winscp.net/eng/translations.php. When downloading the translation files for the first time, you need to copy the extracted translation files to both the $persist_dir\\TranslationsBackups and $dir\\Translations directories. The translation files in $persist_dir\\TranslationsBackups will be shared across multiple versions.",
"pre_install": [
"if (!(Test-Path \"$persist_dir\\winscp.ini\")) {",
" @(",
Expand All @@ -13,6 +14,11 @@
" ) | Add-Content -Path \"$dir\\winscp.ini\" -Encoding ASCII -Force",
"}"
],
"post_install":[
"if (Test-Path \"$persist_dir\\TranslationsBackups\") {",
" Copy-Item \"$persist_dir\\TranslationsBackups\" \"$dir\\Translations\\\" -Recurse -Force -ErrorAction 'SilentlyContinue'",
"}"
],
"bin": [
"WinSCP.exe",
[
Expand All @@ -26,7 +32,10 @@
"WinSCP"
]
],
"persist": "winscp.ini",
"persist": [
"winscp.ini",
"TranslationsBackups"
],
"checkver": {
"url": "https://winscp.net/eng/downloads.php",
"regex": "WinSCP-([\\d.]+)-Portable\\.zip"
Expand All @@ -38,4 +47,4 @@
"regex": "(?sm)$basename.*?SHA-256: $sha256"
}
}
}
}

0 comments on commit f17186f

Please sign in to comment.