Compare commits
No commits in common. "80608194c118d58d7091f5b36878836ca95336c5" and "381d888aa91fc7fd418538a285463abdac502bf0" have entirely different histories.
80608194c1
...
381d888aa9
BIN
exports/Gearknobs_GBAvatar.png (Stored with Git LFS)
BIN
exports/Gearknobs_GBAvatar.png (Stored with Git LFS)
Binary file not shown.
Binary file not shown.
BIN
projects/GravitDesigner/current/Gearknobs.gvdesign (Stored with Git LFS)
BIN
projects/GravitDesigner/current/Gearknobs.gvdesign (Stored with Git LFS)
Binary file not shown.
|
@ -1,32 +0,0 @@
|
||||||
$fontsPath = [System.IO.Path]::Combine($PSScriptRoot, "..", "assets", "fonts")
|
|
||||||
$fontFiles = Get-ChildItem -Recurse $fontsPath | ForEach-Object { if ($_.Extension -eq ".ttf") { $_ } }
|
|
||||||
|
|
||||||
function Install-FontFiles {
|
|
||||||
param(
|
|
||||||
[System.IO.FileInfo[]]$InFonts,
|
|
||||||
[string]$OutFontsPath
|
|
||||||
)
|
|
||||||
|
|
||||||
foreach ($fontFile in $InFonts) {
|
|
||||||
Write-Output "Installing $($fontFile.BaseName)..."
|
|
||||||
$installPath = ([System.IO.Path]::Combine($OutFontsPath, $fontFile.Name))
|
|
||||||
|
|
||||||
if (-not(Test-Path -Path $installPath)) {
|
|
||||||
Copy-Item -Force $fontFile $installPath
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (
|
|
||||||
($PSVersionTable.PSVersion.Major -eq 5 -and $PSVersionTable.PSVersion.Minor -gt 0) -or
|
|
||||||
$IsWindows
|
|
||||||
) {
|
|
||||||
Install-FontFiles -InFonts $fontFiles -OutFontsPath ([System.IO.Path]::Combine("C:", "Windows", "Fonts"))
|
|
||||||
}
|
|
||||||
elseif ($IsLinux) {
|
|
||||||
Install-FontFiles -InFonts $fontFiles -OutFontsPath ([System.IO.Path]::Combine("usr", "local", "share", "fonts"))
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
Write-Error "Platform not supported."
|
|
||||||
exit
|
|
||||||
}
|
|
Loading…
Reference in New Issue