Homebrew, Homebrew Cask, Mac App Store, Whalebrew 및 Visual Studio Code의 비 루비 의존성에 대한 Bundler.
종속성을 설치하기위한 홈브류 (MacOS 또는 Linux).
Homebrew Cask는 선택 사항이며 Mac 응용 프로그램 설치에 사용됩니다.
MAS-CLI는 선택 사항이며 Mac App Store 응용 프로그램 설치에 사용됩니다.
Whalebrew는 선택 사항이며 Whalebrew 이미지를 설치하는 데 사용됩니다.
Visual Studio Code는 선택 사항이며 Visual Studio Code Extensions를 설치하는 데 사용됩니다.
brew bundle
처음 실행되면 자동으로 설치됩니다.
brew generate-man-completions
Output 또는 brew bundle --help
의 brew bundle
섹션을 참조하십시오.
예제 Brewfile
:
# 'brew tap'
tap "homebrew/cask"
# 'brew tap' with custom Git URL
tap "user/tap-repo" , "https://[email protected]/user/homebrew-tap-repo.git"
# 'brew tap' with arguments
tap "user/tap-repo" , "https://[email protected]/user/homebrew-tap-repo.git" , force_auto_update : true
# set arguments for all 'brew install --cask' commands
cask_args appdir : "~/Applications" , require_sha : true
# 'brew install'
brew "imagemagick"
# 'brew install --with-rmtp', 'brew link --overwrite', 'brew services restart' on version changes
brew "denji/nginx/nginx-full" , link : :overwrite , args : [ "with-rmtp" ] , restart_service : :changed
# 'brew install', always 'brew services restart', 'brew link', 'brew unlink mysql' (if it is installed)
brew "[email protected]" , restart_service : true , link : true , conflicts_with : [ "mysql" ]
# install only on specified OS
brew "gnupg" if OS . mac?
brew "glibc" if OS . linux?
# 'brew install --cask'
cask "google-chrome"
# 'brew install --cask --appdir=~/my-apps/Applications'
cask "firefox" , args : { appdir : "~/my-apps/Applications" }
# bypass Gatekeeper protections (NOT RECOMMENDED)
cask "firefox" , args : { no_quarantine : true }
# always upgrade auto-updated or unversioned cask to latest version even if already installed
cask "opera" , greedy : true
# 'brew install --cask' only if '/usr/libexec/java_home --failfast' fails
cask "java" unless system "/usr/libexec/java_home" , "--failfast"
# 'mas install'
mas "1Password" , id : 443_987_910
# 'whalebrew install'
whalebrew "whalebrew/wget"
# 'vscode --install-extension'
vscode "GitHub.codespaces"
Homebrew는 롤링 릴리스 패키지 관리자이므로 임의의 이전 버전의 소프트웨어 설치를 지원하지 않습니다. 소프트웨어에 특정 고정 버전이 필요한 경우 Brewfile
에있는 whalebrew
라인을 고려하여 Docker 컨테이너를 설치하십시오.
성공적인 brew bundle
실행 된 후에는 Brewfile.lock.json
생성하여 환경을 기록합니다. 미래의 brew bundle
Run이 실패하면 Brewfile.lock.json
의 차이점을 디버그로 확인할 수 있습니다. 시스템마다 다른 로컬 환경 정보를 포함 할 수 있으므로 다중 사용자 리포지토리에서 버전 제어에 커밋 할 가치가 없습니다.
export HOMEBREW_BUNDLE_NO_LOCK=1
으로 환경 변수를 설정하거나 명령 줄 인수 brew bundle --no-lock
사용하여 Brewfile.lock.json
파일 생성을 비활성화하십시오.
brew bundle
현재 Homebrew, Homebrew Cask, Mac App Store, Whalebrew 및 Visual Studio Code를 지원합니다.
우리는 다른 설치자/체커/덤퍼에 대한 기여에 관심이 있지만 다음과 같습니다.
Brewfile
에 저장할 수있는 형식으로 덤프 할 수 있습니다.sudo
설치할 필요가 없습니다참고 : 이러한 기준을 바탕으로 우리는 예를 들어 Whalebrew를 받아들이지 않을 것입니다 (그러나 그것을 제거 할 계획은 없습니다.)
bundle install && bundle exec rspec
으로 테스트를 실행할 수 있습니다. 구문 라인은 brew style homebrew/bundle
과 함께 실행할 수 있습니다.
저작권 (C) Homebrew 관리자 및 Andrew Nesbitt. 자세한 내용은 라이센스를 참조하십시오.