Install windows fonts

This commit is contained in:
Manuel Thalmann 2022-12-06 10:59:21 +01:00
parent ff96e653a8
commit 5a6320cc78
2 changed files with 35 additions and 0 deletions

View file

@ -59,6 +59,9 @@ flatpak install -y flathub ch.threema.threema-web-desktop
flatpak install -y flathub app.ytmdesktop.ytmdesktop
flatpak install -y flathub com.github.tchx84.Flatseal
# Microsoft Windows Fonts
source "$popOSRoot/windows-fonts.sh"
# Install JetBrains Stuff
source "$softwareRoot/jetbrains-toolbox.sh"

32
scripts/PopOS/windows-fonts.sh Executable file
View file

@ -0,0 +1,32 @@
#!/bin/bash
# Elevate script
if [ ! "$UID" -eq 0 ]
then
sudo bash "$BASH_SOURCE" "$USER"
else
apt install -y p7zip-full libgumbo-dev libfuse-dev libssl-dev libcurl4-openssl-dev uuid-dev;
workingDirectory="$(pwd)";
tempDir="$(mktemp -d)";
cd $tempDir;
git clone https://github.com/fangfufu/httpdirfs.git;
pushd httpdirfs;
make;
install -m 755 -D httpdirfs /usr/local/bin/httpdirfs;
popd;
git clone https://aur.archlinux.org/ttf-ms-win11-auto.git ttf-win11;
cd ttf-win11;
source ./PKGBUILD;
prepare;
package_ttf-ms-win11-auto;
rm -f /usr/local/bin/httpdirfs;
cd $tempDir;
wget -O CascadiaCode.zip https://github.com/microsoft/cascadia-code/releases/download/v2111.01/CascadiaCode-2111.01.zip
unzip -d . CascadiaCode.zip;
cp ttf/* /usr/share/fonts/TTF;
cd $workingDirectory;
fi