-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b365eef
commit f80b9c6
Showing
144 changed files
with
1,201 additions
and
546 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
{ | ||
"version": "8.10", | ||
"description": "Traditional printing orthography Traditional Chinese font 傳承印刷字形的正體(繁體)中文字型", | ||
"homepage": "https://github.com/ichitenfont/I.Ming", | ||
"license": "IPA", | ||
"url": [ | ||
"https://ghp.ci/https://github.com/ichitenfont/I.Ming/releases/download/8.10/I.Ming-8.10.ttf", | ||
"https://ghp.ci/https://github.com/ichitenfont/I.Ming/releases/download/8.10/I.MingCP-8.10.ttf", | ||
"https://ghp.ci/https://github.com/ichitenfont/I.Ming/releases/download/8.10/I.MingVar-8.10.ttf", | ||
"https://ghp.ci/https://github.com/ichitenfont/I.Ming/releases/download/8.10/I.MingVarCP-8.10.ttf" | ||
], | ||
"hash": [ | ||
"cba13b75b050d671b611d0063147262e421e14359ad4530948b070f56111f0f3", | ||
"1c411a2e97b65c26aaa01707bbe06919569fcd7683c8bb5db114a96264710458", | ||
"ba877ed20835c5622e4cbe83b4107e78f11ad919d0268491efd00d4141a2fd78", | ||
"9d342893b0eddc5baa46398eb9e83741cad86143ddd493bdb8d04268d78ad527" | ||
], | ||
"installer": { | ||
"script": [ | ||
"$currentBuildNumber = [int] (Get-ItemProperty \"HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\").CurrentBuildNumber", | ||
"$windows10Version1809BuildNumber = 17763", | ||
"$isPerUserFontInstallationSupported = $currentBuildNumber -ge $windows10Version1809BuildNumber", | ||
"if (!$isPerUserFontInstallationSupported -and !$global) {", | ||
" scoop uninstall $app", | ||
" Write-Host \"\"", | ||
" Write-Host \"For Windows version before Windows 10 Version 1809 (OS Build 17763),\" -Foreground DarkRed", | ||
" Write-Host \"Font can only be installed for all users.\" -Foreground DarkRed", | ||
" Write-Host \"\"", | ||
" Write-Host \"Please use following commands to install '$app' Font for all users.\" -Foreground DarkRed", | ||
" Write-Host \"\"", | ||
" Write-Host \" scoop install sudo\"", | ||
" Write-Host \" sudo scoop install -g $app\"", | ||
" Write-Host \"\"", | ||
" exit 1", | ||
"}", | ||
"$fontInstallDir = if ($global) { \"$env:windir\\Fonts\" } else { \"$env:LOCALAPPDATA\\Microsoft\\Windows\\Fonts\" }", | ||
"if (-not $global) {", | ||
" # Ensure user font install directory exists and has correct permission settings", | ||
" # See https://github.com/matthewjberger/scoop-nerd-fonts/issues/198#issuecomment-1488996737", | ||
" New-Item $fontInstallDir -ItemType Directory -ErrorAction SilentlyContinue | Out-Null", | ||
" $accessControlList = Get-Acl $fontInstallDir", | ||
" $allApplicationPackagesAccessRule = New-Object System.Security.AccessControl.FileSystemAccessRule([System.Security.Principal.SecurityIdentifier]::new(\"S-1-15-2-1\"), \"ReadAndExecute\", \"ContainerInherit,ObjectInherit\", \"None\", \"Allow\")", | ||
" $allRestrictedApplicationPackagesAccessRule = New-Object System.Security.AccessControl.FileSystemAccessRule([System.Security.Principal.SecurityIdentifier]::new(\"S-1-15-2-2\"), \"ReadAndExecute\", \"ContainerInherit,ObjectInherit\", \"None\", \"Allow\")", | ||
" $accessControlList.SetAccessRule($allApplicationPackagesAccessRule)", | ||
" $accessControlList.SetAccessRule($allRestrictedApplicationPackagesAccessRule)", | ||
" Set-Acl -AclObject $accessControlList $fontInstallDir", | ||
"}", | ||
"$registryRoot = if ($global) { \"HKLM\" } else { \"HKCU\" }", | ||
"$registryKey = \"${registryRoot}:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Fonts\"", | ||
"Get-ChildItem $dir -Filter '*.ttf' | ForEach-Object {", | ||
" $value = if ($global) { $_.Name } else { \"$fontInstallDir\\$($_.Name)\" }", | ||
" New-ItemProperty -Path $registryKey -Name $_.Name.Replace($_.Extension, ' (TrueType)') -Value $value -Force | Out-Null", | ||
" Copy-Item -LiteralPath $_.FullName -Destination $fontInstallDir", | ||
"}" | ||
] | ||
}, | ||
"pre_uninstall": [ | ||
"$fontInstallDir = if ($global) { \"$env:windir\\Fonts\" } else { \"$env:LOCALAPPDATA\\Microsoft\\Windows\\Fonts\" }", | ||
"Get-ChildItem $dir -Filter '*.ttf' | ForEach-Object {", | ||
" Get-ChildItem $fontInstallDir -Filter $_.Name | ForEach-Object {", | ||
" try {", | ||
" Rename-Item $_.FullName $_.FullName -ErrorVariable LockError -ErrorAction Stop", | ||
" } catch {", | ||
" Write-Host \"\"", | ||
" Write-Host \" Error \" -Background DarkRed -Foreground White -NoNewline", | ||
" Write-Host \"\"", | ||
" Write-Host \" Cannot uninstall '$app' font.\" -Foreground DarkRed", | ||
" Write-Host \"\"", | ||
" Write-Host \" Reason \" -Background DarkCyan -Foreground White -NoNewline", | ||
" Write-Host \"\"", | ||
" Write-Host \" The '$app' font is currently being used by another application,\" -Foreground DarkCyan", | ||
" Write-Host \" so it cannot be deleted.\" -Foreground DarkCyan", | ||
" Write-Host \"\"", | ||
" Write-Host \" Suggestion \" -Background Magenta -Foreground White -NoNewline", | ||
" Write-Host \"\"", | ||
" Write-Host \" Close all applications that are using '$app' font (e.g. vscode),\" -Foreground Magenta", | ||
" Write-Host \" and then try again.\" -Foreground Magenta", | ||
" Write-Host \"\"", | ||
" exit 1", | ||
" }", | ||
" }", | ||
"}" | ||
], | ||
"uninstaller": { | ||
"script": [ | ||
"$fontInstallDir = if ($global) { \"$env:windir\\Fonts\" } else { \"$env:LOCALAPPDATA\\Microsoft\\Windows\\Fonts\" }", | ||
"$registryRoot = if ($global) { \"HKLM\" } else { \"HKCU\" }", | ||
"$registryKey = \"${registryRoot}:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Fonts\"", | ||
"Get-ChildItem $dir -Filter '*.ttf' | ForEach-Object {", | ||
" Remove-ItemProperty -Path $registryKey -Name $_.Name.Replace($_.Extension, ' (TrueType)') -Force -ErrorAction SilentlyContinue", | ||
" Remove-Item \"$fontInstallDir\\$($_.Name)\" -Force -ErrorAction SilentlyContinue", | ||
"}", | ||
"if ($cmd -eq \"uninstall\") {", | ||
" Write-Host \"Font '$app' has been uninstalled and will not be present after restarting your computer.\" -Foreground Magenta", | ||
"}" | ||
] | ||
}, | ||
"checkver": "github", | ||
"autoupdate": { | ||
"url": [ | ||
"https://ghp.ci/https://github.com/ichitenfont/I.Ming/releases/download/$version/I.Ming-$version.ttf", | ||
"https://ghp.ci/https://github.com/ichitenfont/I.Ming/releases/download/$version/I.MingCP-$version.ttf", | ||
"https://ghp.ci/https://github.com/ichitenfont/I.Ming/releases/download/$version/I.MingVar-$version.ttf", | ||
"https://ghp.ci/https://github.com/ichitenfont/I.Ming/releases/download/$version/I.MingVarCP-$version.ttf" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.