diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..224effc --- /dev/null +++ b/build.sh @@ -0,0 +1,53 @@ +#!/usr/bin/bash +main() { + set -e + local Black DarkGray Red LightRed Green LightGreen Brown Yellow Blue LightBlue Purple Light Purple Cyan LightCyan LightGray White reset + ## save colors + Black="\e[0;30m" + DarkGray="\e[1;30m" + Red="\e[0;31m" + LightRed="\e[1;31m" + Green="\e[0;32m" + LightGreen="\e[1;32m" + Brown="\e[0;33m" + Yellow="\e[1;33m" + Blue="\e[0;34m" + LightBlue="\e[1;34m" + Purple="\e[0;35m" + Light=Purple="\e[1;35m" + Cyan="\e[0;36m" + LightCyan="\e[1;36m" + LightGray="\e[0;37m" + White="\e[1;37m" + reset="\e[0m" + local reponame + reponame=${PWD##*/} + + echo -e "$Green### start install packeges for build $reponame ###$reset" + echo -e "$Brown### checking your os ###$reset" + if type pacman >/dev/null 2>&1;then + if [ "$(id -u)" != "0" ]; then + echo -e "$Red### you are not in root$reset" + exit 1 + else + install + echo -e "$Blue### install complete ###$reset" + echo -e "$Green### start build $reponame with archiso ###$reset" + build + fi + else + echo -e "$Red###os cant supported###$reset" + exit 1 + fi + +} +install() { + pacman -Sy; pacman --noconfirm -S --needed git archiso github-cli p7zip +} +build() { + mkarchiso -v iso/ +} + + + +main diff --git a/iso/packages.x86_64 b/iso/packages.x86_64 index 38ba952..bd025e2 100644 --- a/iso/packages.x86_64 +++ b/iso/packages.x86_64 @@ -146,12 +146,11 @@ xdg-user-dirs packagekit-qt5 neofetch-git ttf-ms-fonts -parch-firefox-config firefox #parchlinuxstuff calamares -parchlinux-cala-config +calamares-parch os-prober paru parch-emoji-ios diff --git a/iso/pacman.conf b/iso/pacman.conf index 102c0d0..7337268 100644 --- a/iso/pacman.conf +++ b/iso/pacman.conf @@ -31,7 +31,7 @@ Architecture = auto # Misc options #UseSyslog #Color -NoProgressBar +#NoProgressBar CheckSpace #VerbosePkgLists #ParallelDownloads = 5