added build.sh
This commit is contained in:
parent
3d01e5b371
commit
14aac9ada9
1 changed files with 7 additions and 8 deletions
15
build.sh
15
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
|
||||
|
|
Loading…
Add table
Reference in a new issue