powershell font install scripts

This commit is contained in:
2024-05-22 21:29:13 +09:00
parent 7788907562
commit d10e8aa916
2 changed files with 27 additions and 0 deletions

21
scripts/install_fonts.ps1 Normal file
View File

@ -0,0 +1,21 @@
pushd c:\tools
$a = "FiraCode","ComicShannsMono","Mononoki"
foreach($i in $a){
curl -s https://api.github.com/repos/ryanoasis/nerd-fonts/releases/latest | grep "browser_download_url.*$i.zip" | cut -d : -f 2,3 | tr -d """" | wget -qi -
}
$files = Get-ChildItem .\*.zip
mkdir Fonts
foreach($file in $files){
unzip -o $file -d .\Fonts
}
cp Fonts\*.ttf c:\windows\fonts
cp Fonts\*.otf c:\windows\fonts
popd

View File

@ -0,0 +1,6 @@
$a = "FiraCode","ComicShannsMono","Mononoki"
foreach($i in $a){
curl -s https://api.github.com/repos/ryanoasis/nerd-fonts/releases/latest | grep "browser_download_url.*$i.zip" | cut -d : -f 2,3 | tr -d """" | wget -qi -
}