|
1 | 1 | { |
2 | | - "version": "1911.21", |
| 2 | + "version": "2005.15", |
3 | 3 | "license": "OFL-1.1", |
4 | 4 | "homepage": "https://github.com/microsoft/cascadia-code", |
5 | | - "url": "https://github.com/microsoft/cascadia-code/releases/download/v1911.21/Cascadia.ttf", |
6 | | - "hash": "cf5b69933c568eac4231303a952ce57c1581dac10c6e73c70b763cf9ecaabed4", |
| 5 | + "url": "https://github.com/microsoft/cascadia-code/releases/download/v2005.15/CascadiaCode_2005.15.zip", |
| 6 | + "hash": "b3d8495e9cdee90d0dbaf60b7db018413e130265dc27e2be7a8db04cf98fddce", |
7 | 7 | "checkver": "github", |
8 | 8 | "autoupdate": { |
9 | | - "url": "https://github.com/microsoft/cascadia-code/releases/download/v$version/Cascadia.ttf" |
| 9 | + "url": "https://github.com/microsoft/cascadia-code/releases/download/v$version/CascadiaCode_$version.zip" |
10 | 10 | }, |
11 | 11 | "installer": { |
12 | 12 | "script": [ |
13 | 13 | "if(!(is_admin)) { error \"Admin rights are required, please run 'sudo scoop install $app'\"; exit 1 }", |
14 | | - "Get-ChildItem $dir -filter '*.ttf' | ForEach-Object {", |
| 14 | + "Get-ChildItem \"$dir\\ttf\" -filter '*.ttf' | ForEach-Object {", |
15 | 15 | " New-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Fonts' -Name $_.Name.Replace($_.Extension, ' (TrueType)') -Value $_.Name -Force | Out-Null", |
16 | 16 | " Copy-Item $_.FullName -destination \"$env:windir\\Fonts\"", |
17 | 17 | "}" |
|
20 | 20 | "uninstaller": { |
21 | 21 | "script": [ |
22 | 22 | "if(!(is_admin)) { error \"Admin rights are required, please run 'sudo scoop uninstall $app'\"; exit 1 }", |
23 | | - "Get-ChildItem $dir -filter '*.ttf' | ForEach-Object {", |
| 23 | + "Get-ChildItem \"$dir\\ttf\" -filter '*.ttf' | ForEach-Object {", |
24 | 24 | " Remove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Fonts' -Name $_.Name.Replace($_.Extension, ' (TrueType)') -Force -ErrorAction SilentlyContinue", |
25 | 25 | " Remove-Item \"$env:windir\\Fonts\\$($_.Name)\" -Force -ErrorAction SilentlyContinue", |
26 | 26 | "}", |
|
0 commit comments