Files
ChocolateyPackages/MesloLG/tools/chocolateyInstall.ps1
2012-10-18 02:08:01 -04:00

25 lines
732 B
PowerShell

$package = 'MesloLG.DZ'
try {
# no dot
# $fontUrl = 'https://github.com/downloads/andreberg/Meslo-Font/Meslo%20LG%20v1.0.zip'
# dotted zero
$fontUrl = 'https://github.com/downloads/andreberg/Meslo-Font/Meslo%20LG%20DZ%20v1.0.zip'
$destination = Join-Path $Env:Temp 'MesloFont'
Install-ChocolateyZipPackage -url $fontUrl -unzipLocation $destination
$shell = New-Object -ComObject Shell.Application
$fontsFolder = $shell.Namespace(0x14)
Get-ChildItem $destination -Recurse -Filter *.ttf |
% { $fontsFolder.CopyHere($_.FullName) }
Remove-Item $destination -Recurse
Write-ChocolateySuccess $package
} catch {
Write-ChocolateyFailure $package "$($_.Exception.Message)"
throw
}