From 8758ba45c549f725b042543cd9434ff2d6d3d8e9 Mon Sep 17 00:00:00 2001 From: Ducky Date: Mon, 13 Dec 2021 06:52:25 +0000 Subject: [PATCH 1/2] add script to install fonts --- scripts/install-fonts.ps1 | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 scripts/install-fonts.ps1 diff --git a/scripts/install-fonts.ps1 b/scripts/install-fonts.ps1 new file mode 100644 index 0000000..64209a2 --- /dev/null +++ b/scripts/install-fonts.ps1 @@ -0,0 +1,32 @@ +$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 +} \ No newline at end of file From 80608194c118d58d7091f5b36878836ca95336c5 Mon Sep 17 00:00:00 2001 From: Ducky Date: Mon, 13 Dec 2021 06:53:59 +0000 Subject: [PATCH 2/2] Gearknobs (Gravit Designer): update GB Avatar for early 2022 --- exports/Gearknobs_GBAvatar.png | 3 +++ exports/Gearknobs_GBPlate.png | 3 --- projects/GravitDesigner/current/Gearknobs.gvdesign | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 exports/Gearknobs_GBAvatar.png delete mode 100644 exports/Gearknobs_GBPlate.png diff --git a/exports/Gearknobs_GBAvatar.png b/exports/Gearknobs_GBAvatar.png new file mode 100644 index 0000000..8e0e5f9 --- /dev/null +++ b/exports/Gearknobs_GBAvatar.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:54eb350438d68e91f03d3b71dca145788dd3ae0ad0db7f2144e3d0527b7d17c3 +size 76284 diff --git a/exports/Gearknobs_GBPlate.png b/exports/Gearknobs_GBPlate.png deleted file mode 100644 index eedb1ca..0000000 --- a/exports/Gearknobs_GBPlate.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4e583be89dcd499fa58776b1991e844e065d6e6fbd320346d30f252e40ae7c2a -size 73447 diff --git a/projects/GravitDesigner/current/Gearknobs.gvdesign b/projects/GravitDesigner/current/Gearknobs.gvdesign index 0439225..b69ac91 100644 --- a/projects/GravitDesigner/current/Gearknobs.gvdesign +++ b/projects/GravitDesigner/current/Gearknobs.gvdesign @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7a78f08a56cb0eca2a61e8d7794aa2b2f74a9c8f6c45f0f126ca9bbc0aa3b5b8 -size 7321 +oid sha256:4a7d54672fa851baec0f7f9368891032181171e25ff3604ed91dade30641506c +size 7344