/
notepadplusplus-np.json
56 lines (56 loc) 路 2.58 KB
/
notepadplusplus-np.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
{
"version": "8.6.5",
"description": "Text and source code editor",
"homepage": "https://notepad-plus-plus.org/",
"license": "GPL-2.0-only",
"architecture": {
"64bit": {
"url": "https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v8.6.5/npp.8.6.5.Installer.x64.exe#/installer.exe",
"hash": "eedf45e0803ce36c4b745e54fc7a7136d9b364c2a795e646548a4350cf88a366"
},
"32bit": {
"url": "https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v8.6.5/npp.8.6.5.Installer.exe#/installer.exe",
"hash": "5180a17f24df75ccc000cdc2904b14c865ccfd7521909bf06cc75189a65c3e2f"
}
},
"installer": {
"script": [
"if (!(is_admin)) { error \"$app requires admin rights to $cmd\"; break }",
"Start-Process \"$dir\\installer.exe\" -ArgumentList @('/S', \"/D=$dir\") -Wait -Verb RunAs | Out-Null",
"Remove-Item \"$([Environment]::GetFolderPath('commonstartmenu'))\\Programs\\Notepad++.lnk\"",
"if (Test-Path(\"$env:AppData\\Notepad++_Scoop_backup\")) { Copy-Item \"$env:AppData\\Notepad++_Scoop_backup\\*\" \"$Env:AppData\\Notepad++\" -Force -Recurse }"
]
},
"uninstaller": {
"script": [
"if (!(is_admin)) { error \"$app requires admin rights to $cmd\"; break }",
"if (!(Test-Path(\"$env:AppData\\Notepad++_Scoop_backup\"))) { New-Item \"$env:AppData\\Notepad++_Scoop_backup\" -ItemType Directory | Out-Null }",
"Copy-Item \"$Env:AppData\\Notepad++\\*\" \"$env:AppData\\Notepad++_Scoop_backup\" -Force -Recurse",
"Start-Process \"$dir\\uninstall.exe\" -ArgumentList '/S' -Wait -Verb RunAs | Out-Null",
"Stop-Process -Name explorer"
]
},
"bin": "notepad++.exe",
"shortcuts": [
[
"notepad++.exe",
"Notepad++"
]
],
"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.Installer.x64.exe#/installer.exe"
},
"32bit": {
"url": "https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v$version/npp.$version.Installer.exe#/installer.exe"
}
},
"hash": {
"url": "https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v$version/npp.$version.checksums.sha256"
}
}
}