generated from Ash258/GenericBucket
-
Notifications
You must be signed in to change notification settings - Fork 2
/
deprecated.Filezilla-persist.json
57 lines (57 loc) · 2.28 KB
/
deprecated.Filezilla-persist.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
{
"version": "3.48.0",
"description": "Fast and reliable cross-platform FTP, FTPS and SFTP client with lots of useful features and an intuitive graphical user interface.",
"homepage": "https://filezilla-project.org/",
"license": "GPL-2.0-or-later",
"architecture": {
"64bit": {
"url": "https://download.filezilla-project.org/client/FileZilla_3.48.0_win64.zip",
"hash": "sha512:f0b4856ef22c80858b4e21360a87c80f9bf43d1c849e07da9b93730ff11e91f07eca2373a609e8576c54fc25cb7a98bd247c31aa1f3db02e8e564bf7cdbc84ed"
},
"32bit": {
"url": "https://download.filezilla-project.org/client/FileZilla_3.48.0_win32.zip",
"hash": "sha512:ce3f65da6bff15d15114dbf44c98fb2dfae58d5361a780bc74bc05ec70df3d2971682c31c8d19f3d794c6b1a7a37366a9fbd6b2774a02bd49d20f23d76fa1b76"
}
},
"extract_dir": "FileZilla-3.48.0",
"pre_install": [
"$file = 'fzdefaults.xml'",
"if (-not (Test-Path \"$persist_dir\\$file\")) {",
" Write-Host 'File' $file 'does not exists. Creating.' -f Yellow",
" #核心配置不存在,创建",
" $xml = [xml](Get-Content \"$dir\\docs\\fzdefaults.xml.example\")",
" $setting = $xml.FileZilla3.Settings.Setting",
" $configLocation = $setting |",
" Where-Object {",
" $_.Name -match \"Config Location\"",
" }",
" $configLocation.'#text' = \"$dir/Config/\" -replace \"\\\\\",\"/\"",
"",
" $cacheDirectory = $setting |",
" Where-Object {",
" $_.Name -match \"Cache directory\"",
" }",
" #$env:TEMP",
" $cacheDirectory.'#text' = \"$env:TEMP/filezillacache\" -replace \"\\\\\",\"/\"",
"",
" $xml.Save(\"$dir\\fzdefaults.xml\")",
"",
" #Copy-Item \"$dir\\docs\\fzdefaults.xml.example\" \"$dir\\fzdefaults.xml\"",
"}"
],
"bin": "filezilla.exe",
"shortcuts": [
[
"filezilla.exe",
"FileZilla"
]
],
"persist": [
"fzdefaults.xml",
"Config"
],
"checkver": {
"url": "https://filezilla-project.org/download.php?show_all=1",
"re": "The latest stable version of FileZilla Client is ([\\d.]+)"
}
}