forked from PikaOS-Linux/os-hyprland
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_nvidia.sh
42 lines (35 loc) · 875 Bytes
/
build_nvidia.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
ARCH=amd64
RELEASE=2304
DESKTOP=Hyprland
ISO_IMAGE=PikaOS-nvidia-$DESKTOP-$RELEASE-$ARCH-$(date '+%y.%m.%d')
gpg --keyserver keyserver.ubuntu.com --recv-keys 204DD8AEC33A7AFF
apt install --yes --option Acquire::Retries=5 --option Acquire::http::Timeout=100 \
sudo \
debootstrap \
germinate \
grub-efi-amd64-bin \
grub-pc-bin \
isolinux \
mtools \
ovmf \
qemu-efi \
qemu-kvm \
squashfs-tools \
erofs-utils \
xorriso \
zsync \
build-essential \
apt-utils \
dosfstools \
git \
coreutils
echo "Building: $ISO_IMAGE".iso
cp ./Makefiles/nvidia ./Makefile
make
mkdir -p builds/
mv build/pikaos/23.04/pikaos_23*.iso builds/"$ISO_IMAGE".iso || exit 7
cd builds
touch "$ISO_IMAGE".md5
md5sum "$ISO_IMAGE".iso > "$ISO_IMAGE".md5
rsync -azP ./ [email protected]:/srv/www/pikaiso/