Browse Source

chore: move OSX to use Brewfile

reviewable/pr6247/r1
sudden6 5 years ago
parent
commit
44008d11bb
No known key found for this signature in database
GPG Key ID: 279509B499E032B9
  1. 4
      .travis.yml
  2. 13
      .travis/build-osx.sh
  3. 24
      osx/Brewfile
  4. 17
      osx/qTox-Mac-Deployer-ULTIMATE.sh

4
.travis.yml

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

13
.travis/build-osx.sh

@ -20,18 +20,6 @@ set -eu -o pipefail @@ -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() { @@ -54,7 +42,6 @@ make_hash() {
}
main() {
install_ccache
build
check
make_hash

24
osx/Brewfile

@ -0,0 +1,24 @@ @@ -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"

17
osx/qTox-Mac-Deployer-ULTIMATE.sh

@ -129,10 +129,8 @@ install() { @@ -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() { @@ -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]}"

Loading…
Cancel
Save