particle-os-modules/fetch.sh
lili c091364c3d
feat: add ubuntu and inter fonts + fix slow cloning for nerdfonts
fixes: [fonts] can we repackage Nerdfonts #3 [nix] install and uninstall scripts #2
2023-06-28 23:11:20 -03:00

26 lines
No EOL
1.3 KiB
Bash

#!/bin/sh
set -euo pipefail
FILES_ROOT="/tmp/ublue-os/files"
git clone 'https://github.com/dnkmmr69420/nix-installer-scripts' /tmp/nix-installer-scripts
install -c -m 0755 /tmp/nix-installer-scripts/installer-scripts/silverblue-nix-installer.sh "$FILES_ROOT/usr/bin/ublue-nix-install"
install -c -m 0755 /tmp/nix-installer-scripts/uninstaller-scripts/silverblue-nix-uninstaller.sh "$FILES_ROOT/usr/bin/ublue-nix-uninstall"
wget -O /tmp/devpod "https://github.com/loft-sh/devpod/releases/latest/download/devpod-linux-amd64"
install -c -m 0755 /tmp/devpod "$FILES_ROOT/usr/bin"
wget -O /tmp/devpod.rpm https://github.com/loft-sh/devpod/releases/latest/download/DevPod_linux_x86_64.rpm
mv /tmp/devpod.rpm /tmp/ublue-os/rpms
wget -O /tmp/inter.zip 'https://github.com/rsms/inter/releases/download/v3.19/Inter-3.19.zip'
mkdir /tmp/inter
unzip /tmp/inter.zip -d "/tmp/inter"
mv "/tmp/inter/Inter Desktop/" "$FILES_ROOT/usr/share/fonts"
wget -O /tmp/ubuntu.zip 'https://assets.ubuntu.com/v1/0cef8205-ubuntu-font-family-0.83.zip'
unzip /tmp/ubuntu.zip -d "/tmp/ubuntu"
rm -rf /tmp/ubuntu/__MACOSX
mv /tmp/ubuntu/* "$FILES_ROOT/usr/share/fonts"
git clone --depth 1 'https://github.com/ryanoasis/nerd-fonts' /tmp/nerdfonts
mv /tmp/nerdfonts/patched-fonts/* "$FILES_ROOT/usr/share/fonts"