generated from ScoopInstaller/BucketTemplate
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Pretendard, PretendardJP, PretendardStd
- Loading branch information
caipira113
committed
Jul 4, 2022
1 parent
f9c417d
commit 96e771d
Showing
4 changed files
with
261 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"version": "1.3.3", | ||
"description": "A system-ui alternative font for all cross-platform", | ||
"homepage": "https://cactus.tistory.com/306", | ||
"license": "OFL-1.1", | ||
"url": "https://github.com/orioncactus/pretendard/releases/download/v1.3.3/Pretendard-1.3.3.zip", | ||
"hash": "46BD6D9D3658CF6C849E05E8BAAE89F0A990B271148A442D83E80F35136014C6", | ||
"extract_dir": "public/static/alternative", | ||
"installer": { | ||
"script": [ | ||
"$currentBuildNumber = [int] (Get-ItemProperty \"HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\").CurrentBuildNumber", | ||
"$windows1809BuildNumber = 17763", | ||
"$isPerUserFontInstallationSupported = $currentBuildNumber -ge $windows1809BuildNumber", | ||
"$isFontInstallationForAllUsers = $global -or !$isPerUserFontInstallationSupported", | ||
"if ($isFontInstallationForAllUsers -and !(is_admin)) {", | ||
" error \"Administrator rights are required to install $app.\"", | ||
" exit 1", | ||
"}", | ||
"$fontInstallDir = if ($isFontInstallationForAllUsers) { \"$env:windir\\Fonts\" } else { \"$env:LOCALAPPDATA\\Microsoft\\Windows\\Fonts\" }", | ||
"$registryRoot = if ($isFontInstallationForAllUsers) { \"HKLM\" } else { \"HKCU\" }", | ||
"$registryKey = \"${registryRoot}:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Fonts\"", | ||
"New-Item $fontInstallDir -ItemType Directory -ErrorAction SilentlyContinue | Out-Null", | ||
"Get-ChildItem $dir -Filter '*.ttf' | ForEach-Object {", | ||
" $value = if ($isFontInstallationForAllUsers) { $_.Name } else { \"$fontInstallDir\\$($_.Name)\" }", | ||
" New-ItemProperty -Path $registryKey -Name $_.Name.Replace($_.Extension, ' (TrueType)') -Value $value -Force | Out-Null", | ||
" Copy-Item $_.FullName -Destination $fontInstallDir", | ||
"}" | ||
] | ||
}, | ||
"uninstaller": { | ||
"script": [ | ||
"$currentBuildNumber = [int] (Get-ItemProperty \"HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\").CurrentBuildNumber", | ||
"$windows1809BuildNumber = 17763", | ||
"$isPerUserFontInstallationSupported = $currentBuildNumber -ge $windows1809BuildNumber", | ||
"$isFontInstallationForAllUsers = $global -or !$isPerUserFontInstallationSupported", | ||
"if ($isFontInstallationForAllUsers -and !(is_admin)) {", | ||
" error \"Administrator rights are required to uninstall $app.\"", | ||
" exit 1", | ||
"}", | ||
"$fontInstallDir = if ($isFontInstallationForAllUsers) { \"$env:windir\\Fonts\" } else { \"$env:LOCALAPPDATA\\Microsoft\\Windows\\Fonts\" }", | ||
"$registryRoot = if ($isFontInstallationForAllUsers) { \"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", | ||
"}", | ||
"Write-Host \"The '$($app.Replace('-NF', ''))' Font family has been uninstalled and will not be present after restarting your computer.\" -Foreground Magenta" | ||
] | ||
}, | ||
"checkver": { | ||
"github": "https://github.com/orioncactus/pretendard" | ||
}, | ||
"autoupdate": { | ||
"url": "https://github.com/orioncactus/pretendard/releases/download/v$version/Pretendard-$version.zip", | ||
"hash": { | ||
"mode": "download" | ||
} | ||
} | ||
} |
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,59 @@ | ||
{ | ||
"version": "1.3.3", | ||
"description": "A system-ui alternative font for all cross-platform", | ||
"homepage": "https://cactus.tistory.com/306", | ||
"license": "OFL-1.1", | ||
"url": "https://github.com/orioncactus/pretendard/releases/download/v1.3.3/PretendardJP-1.3.3.zip", | ||
"hash": "B638FD359B2277DB874C5040542B66F179FDF8350D21682AACCD24EC115CDAFE", | ||
"extract_dir": "public/static/alternative", | ||
"installer": { | ||
"script": [ | ||
"$currentBuildNumber = [int] (Get-ItemProperty \"HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\").CurrentBuildNumber", | ||
"$windows1809BuildNumber = 17763", | ||
"$isPerUserFontInstallationSupported = $currentBuildNumber -ge $windows1809BuildNumber", | ||
"$isFontInstallationForAllUsers = $global -or !$isPerUserFontInstallationSupported", | ||
"if ($isFontInstallationForAllUsers -and !(is_admin)) {", | ||
" error \"Administrator rights are required to install $app.\"", | ||
" exit 1", | ||
"}", | ||
"$fontInstallDir = if ($isFontInstallationForAllUsers) { \"$env:windir\\Fonts\" } else { \"$env:LOCALAPPDATA\\Microsoft\\Windows\\Fonts\" }", | ||
"$registryRoot = if ($isFontInstallationForAllUsers) { \"HKLM\" } else { \"HKCU\" }", | ||
"$registryKey = \"${registryRoot}:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Fonts\"", | ||
"New-Item $fontInstallDir -ItemType Directory -ErrorAction SilentlyContinue | Out-Null", | ||
"Get-ChildItem $dir -Filter '*.ttf' | ForEach-Object {", | ||
" $value = if ($isFontInstallationForAllUsers) { $_.Name } else { \"$fontInstallDir\\$($_.Name)\" }", | ||
" New-ItemProperty -Path $registryKey -Name $_.Name.Replace($_.Extension, ' (TrueType)') -Value $value -Force | Out-Null", | ||
" Copy-Item $_.FullName -Destination $fontInstallDir", | ||
"}" | ||
] | ||
}, | ||
"uninstaller": { | ||
"script": [ | ||
"$currentBuildNumber = [int] (Get-ItemProperty \"HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\").CurrentBuildNumber", | ||
"$windows1809BuildNumber = 17763", | ||
"$isPerUserFontInstallationSupported = $currentBuildNumber -ge $windows1809BuildNumber", | ||
"$isFontInstallationForAllUsers = $global -or !$isPerUserFontInstallationSupported", | ||
"if ($isFontInstallationForAllUsers -and !(is_admin)) {", | ||
" error \"Administrator rights are required to uninstall $app.\"", | ||
" exit 1", | ||
"}", | ||
"$fontInstallDir = if ($isFontInstallationForAllUsers) { \"$env:windir\\Fonts\" } else { \"$env:LOCALAPPDATA\\Microsoft\\Windows\\Fonts\" }", | ||
"$registryRoot = if ($isFontInstallationForAllUsers) { \"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", | ||
"}", | ||
"Write-Host \"The '$($app.Replace('-NF', ''))' Font family has been uninstalled and will not be present after restarting your computer.\" -Foreground Magenta" | ||
] | ||
}, | ||
"checkver": { | ||
"github": "https://github.com/orioncactus/pretendard" | ||
}, | ||
"autoupdate": { | ||
"url": "https://github.com/orioncactus/pretendard/releases/download/v$version/PretendardJP-$version.zip", | ||
"hash": { | ||
"mode": "download" | ||
} | ||
} | ||
} |
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,59 @@ | ||
{ | ||
"version": "1.3.3", | ||
"description": "A system-ui alternative font for all cross-platform", | ||
"homepage": "https://cactus.tistory.com/306", | ||
"license": "OFL-1.1", | ||
"url": "https://github.com/orioncactus/pretendard/releases/download/v1.3.3/PretendardStd-1.3.3.zip", | ||
"hash": "B0753BEF7E14AB358F7B022DB382C9952C259E759DB76855AADC98099C4C742C", | ||
"extract_dir": "public/static/alternative", | ||
"installer": { | ||
"script": [ | ||
"$currentBuildNumber = [int] (Get-ItemProperty \"HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\").CurrentBuildNumber", | ||
"$windows1809BuildNumber = 17763", | ||
"$isPerUserFontInstallationSupported = $currentBuildNumber -ge $windows1809BuildNumber", | ||
"$isFontInstallationForAllUsers = $global -or !$isPerUserFontInstallationSupported", | ||
"if ($isFontInstallationForAllUsers -and !(is_admin)) {", | ||
" error \"Administrator rights are required to install $app.\"", | ||
" exit 1", | ||
"}", | ||
"$fontInstallDir = if ($isFontInstallationForAllUsers) { \"$env:windir\\Fonts\" } else { \"$env:LOCALAPPDATA\\Microsoft\\Windows\\Fonts\" }", | ||
"$registryRoot = if ($isFontInstallationForAllUsers) { \"HKLM\" } else { \"HKCU\" }", | ||
"$registryKey = \"${registryRoot}:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Fonts\"", | ||
"New-Item $fontInstallDir -ItemType Directory -ErrorAction SilentlyContinue | Out-Null", | ||
"Get-ChildItem $dir -Filter '*.ttf' | ForEach-Object {", | ||
" $value = if ($isFontInstallationForAllUsers) { $_.Name } else { \"$fontInstallDir\\$($_.Name)\" }", | ||
" New-ItemProperty -Path $registryKey -Name $_.Name.Replace($_.Extension, ' (TrueType)') -Value $value -Force | Out-Null", | ||
" Copy-Item $_.FullName -Destination $fontInstallDir", | ||
"}" | ||
] | ||
}, | ||
"uninstaller": { | ||
"script": [ | ||
"$currentBuildNumber = [int] (Get-ItemProperty \"HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\").CurrentBuildNumber", | ||
"$windows1809BuildNumber = 17763", | ||
"$isPerUserFontInstallationSupported = $currentBuildNumber -ge $windows1809BuildNumber", | ||
"$isFontInstallationForAllUsers = $global -or !$isPerUserFontInstallationSupported", | ||
"if ($isFontInstallationForAllUsers -and !(is_admin)) {", | ||
" error \"Administrator rights are required to uninstall $app.\"", | ||
" exit 1", | ||
"}", | ||
"$fontInstallDir = if ($isFontInstallationForAllUsers) { \"$env:windir\\Fonts\" } else { \"$env:LOCALAPPDATA\\Microsoft\\Windows\\Fonts\" }", | ||
"$registryRoot = if ($isFontInstallationForAllUsers) { \"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", | ||
"}", | ||
"Write-Host \"The '$($app.Replace('-NF', ''))' Font family has been uninstalled and will not be present after restarting your computer.\" -Foreground Magenta" | ||
] | ||
}, | ||
"checkver": { | ||
"github": "https://github.com/orioncactus/pretendard" | ||
}, | ||
"autoupdate": { | ||
"url": "https://github.com/orioncactus/pretendard/releases/download/v$version/PretendardStd-$version.zip", | ||
"hash": { | ||
"mode": "download" | ||
} | ||
} | ||
} |