/
kicad-cn.json
67 lines (67 loc) 路 2.17 KB
/
kicad-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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{
"description": "Electronics Design Automation Suite",
"homepage": "https://www.kicad.org",
"version": "7.0.10",
"license": "GPL-3.0-only",
"architecture": {
"64bit": {
"url": "https://mirrors.bfsu.edu.cn/kicad/windows/stable/7.0.10/kicad-7.0.10-x86_64.exe#/dl.7z",
"hash": "23f4b3ebc112d819e3ec306d22efd4b8c334313b80a5f9e6880b777c2cba0112"
}
},
"pre_install": "Remove-Item \"$dir\\`$*\" -Recurse",
"post_install": [
"'install-file-associations', 'uninstall-file-associations' | ForEach-Object {",
" $reg_file_in = \"$bucketsdir\\main\\scripts\\kicad\\$_.reg\"",
" $reg_file_out = \"$dir\\$_.reg\"",
" $kicad_root = \"$dir\".Replace('\\', '\\\\')",
" if (Test-Path $reg_file_in) {",
" $content = Get-Content $reg_file_in",
" $content = $content.Replace('$kicad_root', $kicad_root)",
" if ($global) {",
" $content = $content.Replace('HKEY_CURRENT_USER', 'HKEY_LOCAL_MACHINE')",
" }",
" Set-Content -Path $reg_file_out -Value $content -Encoding Ascii",
" }",
"}"
],
"post_uninstall": [
"'uninstall-file-associations' | ForEach-Object {",
" $reg_file = \"$dir\\$_.reg\"",
" if (Test-Path $reg_file) {",
" regedit /s $reg_file",
" }",
"}"
],
"bin": "bin\\kicad-cli.exe",
"shortcuts": [
[
"bin\\kicad.exe",
"KiCad"
],
[
"bin\\eeschema.exe",
"Eeschema"
],
[
"bin\\pcbnew.exe",
"PCBNew"
],
[
"bin\\gerbview.exe",
"Gerber Viewer"
]
],
"checkver": {
"url": "https://mirrors.bfsu.edu.cn/kicad/windows/stable/",
"regex": "kicad-([\\d.]+)-x86_64((-\\d+)?)\\.exe",
"replace": "${1}${2}"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://mirrors.bfsu.edu.cn/kicad/windows/stable/$version/kicad-$version-x86_64.exe#/dl.7z"
}
}
}
}