This repository has been archived by the owner on Sep 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
ringOS-stable-Builder-arch.sh
31 lines (24 loc) · 1.93 KB
/
ringOS-stable-Builder-arch.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
#!/bin/bash
echo "ringOS stable builder for Arch(-based) Linux"
echo "This script will ask you for password using sudo."
sudo pacman -Sy base-devel mtools && echo base-devel installed successfully || echo FAILED to install base-devel
sudo pacman -S mtools && echo build-essential mtools installed successfully || echo FAILED to install build-essential tools
sudo pacman -S nasm && echo NASM installed successfully || echo FAILED to install nasm
sudo pacman -S qemu-x86_64 && echo Qemu installed successfully || echo FAILED to install Qemu
sudo pacman -S git && echo git installed successfully || echo FAILED to install git
sudo pacman -S lld && echo lld installed successfully || echo FAILED to install lld
sudo pacman -S xorriso && echo xorriso installed successfully || echo FAILED to install xorriso
sudo pacman -Ss mkisofs && echo mkisofs installed successfully || echo FAILED to install mkisofs
mkdir "ringOS-stable" && echo ringOS-stable directory successfully created || echo FAILED to create ringOS directory
cd ringOS-stable && echo Successfully enter ringOS-stable directory || echo FAILED to enter ringOS-stable directory
git clone -b ringOS-stable2 https://github.com/ringwormGO-organization/ringOS && echo Cloning successful || echo FAILED to clone
cd ringOS && echo In ringOS directory || echo FAILED to enter ringOS directory
cd ringOS && echo In ringOS directory || echo FAILED to enter ringOS directory
cd gnu-efi && echo In gnu-efi directory || echo FAILED to enter gnu-efi directory
make bootloader && echo Bootloader successfully created || echo FAILED to create bootloader
cd ../kernel && echo In kernel directory || echo FAILED to enter kernel directory
make kernel && echo Kernel successfully created || echo FAILED to create kernel
make buildimg && echo Buildimg successfully created || echo FAILED to create buildimg
chmod +x ./ISO.sh
./ISO.sh
make run && echo Successfully run ringOS stable release || echo FAILED run ringOS stable release