Skip to content

Commit

Permalink
Update build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
zstg authored Aug 10, 2024
1 parent 197da14 commit c29cc45
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ create_dummy_user() {
sudo useradd -m builder -s /bin/bash
sudo usermod -aG wheel builder
echo '%wheel ALL=(ALL) NOPASSWD:ALL' | sudo tee -a /etc/sudoers
# sudo -u builder curl -sS https://github.com/elkowar.gpg | gpg --dearmor > elkowar.gpg && sudo pacman-key --add elkowar.gpg
# sudo -u builder curl -sS https://github.com/web-flow.gpg | gpg --dearmor > web-flow.gpg && sudo pacman-key --add web-flow.gpg
sudo -u builder curl -sS https://github.com/elkowar.gpg | gpg --dearmor > elkowar.gpg && sudo pacman-key --add elkowar.gpg
sudo -u builder curl -sS https://github.com/web-flow.gpg | gpg --dearmor > web-flow.gpg && sudo pacman-key --add web-flow.gpg
}

# Build and package software
Expand Down Expand Up @@ -114,14 +114,15 @@ build_and_package() {

local packages=(
"albert"
"aura-bin"
"aurutils"
"bibata-cursor-theme-bin"
"calamares-git"
# #"eww"
"gruvbox-plus-icon-theme-git"
"libadwaita-without-adwaita-git"
"mkinitcpio-openswap"
"nwg-dock-hyprland"
"nwg-dock-hyprland-bin"
"pandoc-bin"
"python-clickgen"
# #"repoctl"
Expand All @@ -135,6 +136,7 @@ build_and_package() {
git clone https://aur.archlinux.org/$i
sudo chmod -R 777 ./$i
cd $i
mkdir -p $dir/PKGBUILDS/$i/
cp PKGBUILD $dir/PKGBUILDS/$i/PKGBUILD
sudo -u builder makepkg -cfs --noconfirm # --sign
rm -rf $dir/x86_64/"$i"**.pkg.tar.zst
Expand All @@ -156,7 +158,7 @@ initialize_and_push() {
sudo git add .
sudo git commit -am "Update packages"
sudo git pull
sudo git push "https://x-access-token:${GITHUB_TOKEN}@github.com/StratOS-Linux/StratOS-repo.git"
sudo git push "https://x-access-token:${GITHUB_TOKEN}@github.com/StratOS-Linux/StratOS-repo.git" --force
}

# Main function
Expand Down

0 comments on commit c29cc45

Please sign in to comment.