From 14aac9ada9bd68738be2b2714898fb5f0d631796 Mon Sep 17 00:00:00 2001 From: Sohrab Behdani Date: Wed, 12 Feb 2025 13:23:06 +0330 Subject: [PATCH] added build.sh --- build.sh | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/build.sh b/build.sh index aa5da84..ae91d1f 100755 --- a/build.sh +++ b/build.sh @@ -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