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