From 57999214dcb75848d76e32212971fc93a763c1b2 Mon Sep 17 00:00:00 2001 From: imbytecat Date: Wed, 25 Mar 2026 15:14:35 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=20install.sh=20=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E9=A1=BA=E5=BA=8F=EF=BC=9A=E5=85=88=E5=85=8B=E9=9A=86?= =?UTF-8?q?=E4=BB=93=E5=BA=93=E9=85=8D=E7=BD=AE=E9=95=9C=E5=83=8F=E6=BA=90?= =?UTF-8?q?=EF=BC=8C=E5=86=8D=E6=9B=B4=E6=96=B0=E5=92=8C=E5=AE=89=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/install.sh | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index 6d183d0..050a9b7 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -4,22 +4,8 @@ set -euo pipefail REPO_URL="https://git.furtherverse.com/imbytecat/archlinux-config.git" CONFIG_DIR="$HOME/.config/arch-config" -echo "==> 更新系统..." -sudo pacman -Syu --noconfirm - -echo "==> 安装基础工具..." -sudo pacman -S --needed --noconfirm base-devel git - -echo "==> 安装 yay..." -if ! command -v yay &> /dev/null; then - rm -rf /tmp/yay - git clone https://aur.archlinux.org/yay.git /tmp/yay - cd /tmp/yay - makepkg -si --noconfirm -fi - -echo "==> 安装 dcli..." -yay -S --needed --noconfirm dcli-arch-git +echo "==> 安装 git..." +sudo pacman -S --needed --noconfirm git echo "==> 克隆配置仓库..." if [ -d "$CONFIG_DIR/.git" ]; then @@ -36,6 +22,23 @@ sudo cp "$CONFIG_DIR/files/etc/pacman.d/mirrorlist" /etc/pacman.d/mirrorlist sudo cp "$CONFIG_DIR/files/etc/sudoers.d/10-wheel" /etc/sudoers.d/10-wheel sudo chmod 440 /etc/sudoers.d/10-wheel +echo "==> 更新系统..." +sudo pacman -Syu --noconfirm + +echo "==> 安装基础工具..." +sudo pacman -S --needed --noconfirm base-devel + +echo "==> 安装 yay..." +if ! command -v yay &> /dev/null; then + rm -rf /tmp/yay + git clone https://aur.archlinux.org/yay.git /tmp/yay + cd /tmp/yay + makepkg -si --noconfirm +fi + +echo "==> 安装 dcli..." +yay -S --needed --noconfirm dcli-arch-git + echo "" echo "✓ 安装完成!" echo ""