♻️ refactor(core): 移除 brew-cu 扩展并优化升级流程结构
This commit is contained in:
@@ -90,18 +90,7 @@ separator
|
||||
printf "\n"
|
||||
|
||||
separator
|
||||
print_header "Step 3: Verifying brew-cu extension for GUI Apps"
|
||||
if ! brew tap | grep -q "buo/cask-upgrade"; then
|
||||
echo -e "${YELLOW}Extension 'brew-cu' not found. Installing now...${NC}"
|
||||
brew tap buo/cask-upgrade
|
||||
else
|
||||
echo -e "${GREEN}Extension 'brew-cu' is already active.${NC}"
|
||||
fi
|
||||
separator
|
||||
printf "\n"
|
||||
|
||||
separator
|
||||
print_header "Step 4: Executing comprehensive upgrades (Formulae & Casks)"
|
||||
print_header "Step 3: Executing comprehensive upgrades (Formulae & Casks)"
|
||||
echo -e "${NC}"
|
||||
|
||||
# 1. 升级命令行工具 (Formulae)
|
||||
@@ -125,7 +114,7 @@ separator
|
||||
printf "\n"
|
||||
|
||||
separator
|
||||
print_header "Step 5: Cleaning up old files and caches (brew cleanup --prune=all)"
|
||||
print_header "Step 4: Cleaning up old files and caches (brew cleanup --prune=all)"
|
||||
brew cleanup --prune=all
|
||||
separator
|
||||
printf "\n"
|
||||
|
||||
Reference in New Issue
Block a user