/
hackgennerd.json
37 lines (37 loc) · 1.99 KB
/
hackgennerd.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
{
"version": "2.9.0",
"description": "Japanese programming font which is a composed of Hack, GenJyuu-Gothic and Nerd Fonts",
"homepage": "https://github.com/yuru7/HackGen",
"license": {
"identifier": "Freeware",
"url": "https://github.com/yuru7/HackGen/blob/master/LICENSE.txt"
},
"url": "https://github.com/yuru7/HackGen/releases/download/v2.9.0/HackGen_NF_v2.9.0.zip",
"hash": "277cb874bbcf8a884e512bb2a01d62341d57286d8947057d652fab6488fc941c",
"extract_dir": "HackGen_NF_v2.9.0",
"checkver": "github",
"autoupdate": {
"url": "https://github.com/yuru7/HackGen/releases/download/v$version/HackGen_NF_v$version.zip",
"extract_dir": "HackGen_NF_v$version"
},
"installer": {
"script": [
"Get-ChildItem $dir -filter '*.ttf' | ForEach-Object {",
" $fontdir = \"$env:LOCALAPPDATA\\Microsoft\\Windows\\Fonts\"",
" If (-Not(Test-Path -Path $fontdir)) { New-Item -ItemType \"directory\" -Path $fontdir }",
" New-ItemProperty -Path 'HKCU:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Fonts' -Name $_.Name.Replace($_.Extension, ' (TrueType)') -Value \"$fontdir\\$($_.Name)\" -Force | Out-Null",
" Copy-Item $_.FullName -destination \"$fontdir\"",
"}"
]
},
"uninstaller": {
"script": [
"Get-ChildItem $dir -filter '*.ttf' | ForEach-Object {",
" $fontdir = \"$env:LOCALAPPDATA\\Microsoft\\Windows\\Fonts\"",
" If (-Not(Test-Path -Path \"$fontdir\\Deleted\")) { New-Item -ItemType \"directory\" -Path \"$fontdir\\Deleted\" }",
" Remove-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Fonts' -Name $_.Name.Replace($_.Extension, ' (TrueType)') -Force -ErrorAction SilentlyContinue",
" Move-Item \"$fontdir\\$($_.Name)\" -Destination \"$fontdir\\Deleted\\$($_.Name)\" -Force",
"}"
]
}
}