1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

chore: move OSX to use Brewfile

This commit is contained in:
sudden6 2020-11-06 20:45:36 +01:00
parent aca94300c8
commit 44008d11bb
No known key found for this signature in database
GPG Key ID: 279509B499E032B9
4 changed files with 29 additions and 29 deletions

View File

@ -152,6 +152,10 @@ jobs:
ccache: true
directories:
- $HOME/Library/Caches/Homebrew
addons:
homebrew:
brewfile: ./osx/Brewfile
update: true
before_cache:
- brew cleanup
script:

View File

@ -20,18 +20,6 @@ set -eu -o pipefail
readonly BIN_NAME="qTox.dmg"
# accelerate builds with ccache
install_ccache() {
# manually update even though `install` will already update, due to bug:
# Please don't worry, you likely hit a bug auto-updating from an old version.
# Rerun your command, everything is up-to-date and fine now.
echo "Updating brew..."
brew update
echo "Installing ccache..."
brew install ccache
brew --cache
}
# Build OSX
build() {
bash ./osx/qTox-Mac-Deployer-ULTIMATE.sh -i
@ -54,7 +42,6 @@ make_hash() {
}
main() {
install_ccache
build
check
make_hash

24
osx/Brewfile Normal file
View File

@ -0,0 +1,24 @@
brew "git"
brew "wget"
brew "libtool"
brew "cmake"
brew "pkgconfig"
brew "check"
brew "libvpx"
brew "opus"
brew "libsodium"
brew "cmake"
brew "ffmpeg"
brew "libexif"
brew "qrencode"
brew "qt5"
brew "sqlcipher"
brew "openal-soft"
# accelerate builds with ccache
brew "ccache"
# brew install #kf5-sonnet
# needed for kf5-sonnet
# brew tap kde-mac/kde https://invent.kde.org/packaging/homebrew-kde.git
# brew "kf5-sonnet"

View File

@ -129,10 +129,8 @@ install() {
fcho "Getting home brew formulas ..."
if [[ $TRAVIS != true ]]
then
sleep 3
brew install git wget libtool cmake pkgconfig
brew bundle install -f ./osx/Brewfile
fi
brew install check libvpx opus libsodium
fcho "Starting git repo checks ..."
@ -178,19 +176,6 @@ install() {
fi
fi
if [[ $TRAVIS = true ]]
then
fcho "Updating brew formulas ..."
brew update > /dev/null
else
brew install cmake
fi
# needed for kf5-sonnet
brew tap kde-mac/kde https://invent.kde.org/packaging/homebrew-kde.git
brew install ffmpeg libexif qrencode qt5 sqlcipher openal-soft #kf5-sonnet
QT_VER=($(ls ${QT_DIR} | sed -n -e 's/^\([0-9]*\.([0-9]*\.([0-9]*\).*/\1/' -e '1p;$p'))
QT_DIR_VER="${QT_DIR}/${QT_VER[1]}"