32 lines
864 B
Bash
Executable file
32 lines
864 B
Bash
Executable file
#!/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
|