-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
Copy pathnotepadplusplus.json
87 lines (87 loc) · 3.51 KB
/
notepadplusplus.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{
"version": "8.7.5",
"description": "A free source code editor and Notepad replacement that supports several languages.",
"homepage": "https://notepad-plus-plus.org",
"license": "GPL-3.0-or-later",
"notes": "Add Notepad++ as a context menu option by running: reg import \"$dir\\install-context.reg\"",
"architecture": {
"64bit": {
"url": "https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v8.7.5/npp.8.7.5.portable.x64.zip",
"hash": "63e57c907ba20e3a29753810945b42528beff1c029c2f0723a2882458994ed8e"
},
"32bit": {
"url": "https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v8.7.5/npp.8.7.5.portable.zip",
"hash": "22921254a8be89e3bf3199ef76f3538f03c89cb7234e963872d29ce404675e5d"
},
"arm64": {
"url": "https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v8.7.5/npp.8.7.5.portable.arm64.zip",
"hash": "0c72863390292a7635dc79c672052f9071d8749b0cd6fd916268d11b9f94633d"
}
},
"pre_install": [
"'session.xml', 'userDefineLang.xml', 'nativeLang.xml' | ForEach-Object {",
" if (!(Test-Path \"$persist_dir\\$_\")) { New-Item \"$dir\\$_\" -ItemType File | Out-Null }",
"}",
"if (!(Test-Path \"$persist_dir\\stylers.xml\")) { Copy-Item \"$dir\\stylers.model.xml\" \"$dir\\stylers.xml\" }"
],
"post_install": [
"'install-context', 'uninstall-context' | ForEach-Object {",
" if (Test-Path \"$bucketsdir\\extras\\scripts\\notepadplusplus\\$_.reg\") {",
" $nppPath = \"$dir\\notepad++.exe\".Replace('\\', '\\\\')",
" $content = (Get-Content \"$bucketsdir\\extras\\scripts\\notepadplusplus\\$_.reg\").Replace('$npp', $nppPath)",
" if ($global) { $content = $content.Replace('HKEY_CURRENT_USER', 'HKEY_LOCAL_MACHINE') }",
" Set-Content \"$dir\\$_.reg\" $content -Encoding Ascii -Force",
" }",
"}",
"# Update shipped plugins",
"if (Test-Path \"$dir\\plugins.original\") {",
" Copy-Item -Recurse \"$dir\\plugins.original\\*\" \"$dir\\plugins\\\" -Force",
"}"
],
"uninstaller": {
"script": [
"if ($cmd -eq 'uninstall') {",
" reg import \"$dir\\uninstall-context.reg\"",
"}"
]
},
"bin": "notepad++.exe",
"shortcuts": [
[
"notepad++.exe",
"Notepad++"
]
],
"persist": [
"backup",
"cloud",
"plugins",
"themes",
"userDefineLangs",
"config.xml",
"nativeLang.xml",
"session.xml",
"shortcuts.xml",
"stylers.xml",
"userDefineLang.xml"
],
"checkver": {
"github": "https://github.com/notepad-plus-plus/notepad-plus-plus"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v$version/npp.$version.portable.x64.zip"
},
"32bit": {
"url": "https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v$version/npp.$version.portable.zip"
},
"arm64": {
"url": "https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v$version/npp.$version.portable.arm64.zip"
}
},
"hash": {
"url": "$baseurl/npp.$version.checksums.sha256"
}
}
}