added build.sh

This commit is contained in:
Sohrab Behdani 2025-02-12 13:23:06 +03:30
parent 3d01e5b371
commit 14aac9ada9

View file

@ -33,8 +33,7 @@ main() {
install
echo -e "$Blue### Install complete ###$reset"
echo -e "$Green### Start build $reponame with archiso ###$reset"
build
makezip
build
fi
else
echo -e "$Red###OS can't supported###$reset"
@ -42,19 +41,19 @@ main() {
fi
}
install() {
set -e
pacman -Sy; pacman --noconfirm -S --needed git archiso github-cli p7zip
pacman -Sy; pacman --noconfirm -S --needed git wget github-cli p7zip reflector rsync
wget https://git.parchlinux.com/repo/ppr/-/raw/main/x86_64/archiso-99-1-any.pkg.tar.zst
sudo pacman -U archiso-99-1-any.pkg.tar.zst --noconfirm
}
build() {
set -e
mkarchiso -v iso/
}
makezip() {
cd out
7z -v500m a "$(ls *.iso)".zip "$(ls *.iso)"
md5sum * > md5sums.txt
}
main