mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-22 01:44:49 -05:00
Based on OBS plugin template build scripts with some minor adjustments: * Adjust format check scripts to exclude ./deps folder * Adjust release scripts to only draft releases * Always build installers * Always upload build artefacts * Build opencv for Mac and Windows releases
21 lines
580 B
Plaintext
Executable File
21 lines
580 B
Plaintext
Executable File
autoload -Uz is-at-least log_info log_error log_status read_codesign
|
|
|
|
local macos_version=$(sw_vers -productVersion)
|
|
|
|
log_info 'Checking macOS version...'
|
|
if ! is-at-least 11.0 "${macos_version}"; then
|
|
log_error "Minimum required macOS version is 11.0, but running on macOS ${macos_version}"
|
|
return 2
|
|
else
|
|
log_status "macOS ${macos_version} is recent"
|
|
fi
|
|
|
|
log_info 'Checking for Homebrew...'
|
|
if (( ! ${+commands[brew]} )) {
|
|
log_error 'No Homebrew command found. Please install Homebrew (https://brew.sh)'
|
|
return 2
|
|
}
|
|
|
|
brew bundle --file "${SCRIPT_HOME}/.Brewfile"
|
|
rehash
|