mirror of
https://github.com/tw93/Mole.git
synced 2026-02-12 15:09:28 +00:00
Enable Homebrew installation support
- Created homebrew-tap repository - Updated install script to try Homebrew first with fallback - Enabled Homebrew installation in README - Simplified user experience with automatic method selection
This commit is contained in:
@@ -23,10 +23,10 @@
|
|||||||
curl -fsSL https://raw.githubusercontent.com/tw93/clean-mac/main/install.sh | bash
|
curl -fsSL https://raw.githubusercontent.com/tw93/clean-mac/main/install.sh | bash
|
||||||
```
|
```
|
||||||
|
|
||||||
### Homebrew (Coming Soon)
|
### Homebrew
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Will be available soon
|
brew tap tw93/tap
|
||||||
brew install clean-mac
|
brew install clean-mac
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
22
install.sh
22
install.sh
@@ -134,15 +134,27 @@ install_direct() {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
# Choose installation method - always use direct installation for now
|
# Choose installation method
|
||||||
if [[ "$FORCE_DIRECT" == "true" ]]; then
|
if [[ "$FORCE_DIRECT" == "true" ]]; then
|
||||||
install_direct
|
install_direct
|
||||||
INSTALL_SUCCESS=$?
|
INSTALL_SUCCESS=$?
|
||||||
else
|
else
|
||||||
# Always use direct installation until homebrew-tap is ready
|
# Try Homebrew first, fallback to direct
|
||||||
log_info "Using direct installation..."
|
if command -v brew >/dev/null 2>&1; then
|
||||||
install_direct
|
log_info "Trying Homebrew installation..."
|
||||||
INSTALL_SUCCESS=$?
|
install_via_homebrew
|
||||||
|
INSTALL_SUCCESS=$?
|
||||||
|
|
||||||
|
if [[ $INSTALL_SUCCESS -ne 0 ]]; then
|
||||||
|
log_warning "Homebrew installation failed, using direct installation..."
|
||||||
|
install_direct
|
||||||
|
INSTALL_SUCCESS=$?
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
log_info "Homebrew not found, using direct installation..."
|
||||||
|
install_direct
|
||||||
|
INSTALL_SUCCESS=$?
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Verify installation
|
# Verify installation
|
||||||
|
|||||||
Reference in New Issue
Block a user