Skip to content

Commit

Permalink
add: misans
Browse files Browse the repository at this point in the history
version: 2.000
  • Loading branch information
gaojr committed Jan 18, 2022
1 parent 8ee6dff commit c445952
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions bucket/misans.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"version": "2.000",
"description": "MIUI SYSTEM FONTS - VARIABLE FONTS",
"homepage": "https://web.vip.miui.com/page/info/mio/mio/detail?postId=33935854",
"license": "OFL-1.0",
"url": "https://cdn.cnbj1.fds.api.mi-img.com/vipmlmodel/font/MiSans/MiSans.zip",
"hash": "38bdec9525024ee9ce1ee56ebc5a32a37efaecf86b385ec3da71898708dad7f6",
"installer": {
"script": [
"if(!(is_admin)) { error \"Administrator rights are required to install $app.\"; exit 1 }",
"Get-ChildItem $dir -Filter '*.ttf' -Recurse | ForEach-Object {",
" New-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Fonts' -Name $_.Name.Replace($_.Extension, ' (TrueType)') -Value $_.Name -Force | Out-Null",
" Copy-Item $_.FullName -Destination \"$env:windir\\Fonts\"",
"}"
]
},
"uninstaller": {
"script": [
"if(!(is_admin)) { error \"Administrator rights are required to uninstall $app.\"; exit 1 }",
"Get-ChildItem $dir -Filter '*.ttf' -Recurse | ForEach-Object {",
" Remove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Fonts' -Name $_.Name.Replace($_.Extension, ' (TrueType)') -Force -ErrorAction SilentlyContinue",
" Remove-Item \"$env:windir\\Fonts\\$($_.Name)\" -Force -ErrorAction SilentlyContinue",
"}",
"Write-Host \"'$app' Font family have been uninstalled and will not be present after restarting your computer.\" -Foreground Magenta"
]
}
}

0 comments on commit c445952

Please sign in to comment.