mirror of
https://github.com/tw93/Mole.git
synced 2026-02-16 12:21:11 +00:00
Improve Homebrew installation and automation
- Simplify Homebrew install to single command: brew install tw93/tap/clean-mac - Add GitHub Action for automatic formula updates on release - Remove need for separate tap command Features: - One-command Homebrew installation - Automatic formula updates on new releases - Streamlined user experience
This commit is contained in:
21
.github/workflows/homebrew.yml
vendored
Normal file
21
.github/workflows/homebrew.yml
vendored
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
name: Update Homebrew Formula
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [published]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
homebrew:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Update Homebrew formula
|
||||||
|
uses: dawidd6/action-homebrew-bump-formula@v3
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}
|
||||||
|
formula: clean-mac
|
||||||
|
tap: tw93/homebrew-tap
|
||||||
|
create_pullrequest: true
|
||||||
|
commit_message: |
|
||||||
|
Update clean-mac to {{version}}
|
||||||
|
|
||||||
|
Created by action-homebrew-bump-formula
|
||||||
@@ -26,8 +26,7 @@ curl -fsSL https://raw.githubusercontent.com/tw93/clean-mac/main/install.sh | ba
|
|||||||
### Homebrew
|
### Homebrew
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
brew tap tw93/tap
|
brew install tw93/tap/clean-mac
|
||||||
brew install clean-mac
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Development
|
### Development
|
||||||
|
|||||||
10
install.sh
10
install.sh
@@ -87,14 +87,8 @@ install_via_homebrew() {
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add tap if not already added
|
# Install with automatic tap addition
|
||||||
if ! brew tap | grep -q "tw93/tap"; then
|
brew install tw93/tap/clean-mac
|
||||||
log_info "Adding tap: tw93/tap"
|
|
||||||
brew tap tw93/tap
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Install clean-mac
|
|
||||||
brew install clean-mac
|
|
||||||
return $?
|
return $?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user