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
|
install
|
||||||
echo -e "$Blue### Install complete ###$reset"
|
echo -e "$Blue### Install complete ###$reset"
|
||||||
echo -e "$Green### Start build $reponame with archiso ###$reset"
|
echo -e "$Green### Start build $reponame with archiso ###$reset"
|
||||||
build
|
build
|
||||||
makezip
|
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo -e "$Red###OS can't supported###$reset"
|
echo -e "$Red###OS can't supported###$reset"
|
||||||
|
@ -42,19 +41,19 @@ main() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
install() {
|
install() {
|
||||||
set -e
|
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() {
|
build() {
|
||||||
set -e
|
set -e
|
||||||
mkarchiso -v iso/
|
mkarchiso -v iso/
|
||||||
}
|
}
|
||||||
makezip() {
|
|
||||||
cd out
|
|
||||||
7z -v500m a "$(ls *.iso)".zip "$(ls *.iso)"
|
|
||||||
md5sum * > md5sums.txt
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
main
|
main
|
||||||
|
|
Loading…
Add table
Reference in a new issue