trying to fix the CI/CD

This commit is contained in:
Sohrab Behdani 2024-09-02 23:58:29 +03:30
parent 90d55a8604
commit 1771a6f5e4

View file

@ -30,11 +30,11 @@ main() {
echo -e "$Red### You are not in root$reset"
exit 1
else
change_mirror
install
echo -e "$Blue### Install complete ###$reset"
echo -e "$Green### Start build $reponame with archiso ###$reset"
build
makezip
fi
else
echo -e "$Red###OS can't supported###$reset"
@ -42,19 +42,20 @@ main() {
fi
}
install() {
set -e
pacman -Sy; pacman --noconfirm -S --needed git archiso github-cli p7zip
pacman -Sy; pacman --noconfirm -S --needed git archiso github-cli p7zip reflector rsync
}
change_mirror() {
reflector --latest 5 --sort rate --save /etc/pacman.d/mirrorlist
}
build() {
set -e
mkarchiso -v iso/
}
makezip() {
cd out
7z -v500m a "$(ls *.iso)".zip "$(ls *.iso)"
md5sum * > md5sums.txt
}
main