From e7adc0098fbe92a92d13c23a4f6adec238d4cd49 Mon Sep 17 00:00:00 2001 From: Aaron Raimist Date: Sat, 5 Jan 2019 17:06:09 -0600 Subject: [PATCH] Make macOS .dmg use correct build number, take 2 --- .travis.yml | 5 ++++- BUILD.md | 5 +++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index e9720a2..d029f53 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,8 @@ language: cpp +git: + depth: false + matrix: include: - os: osx @@ -17,7 +20,7 @@ script: before_deploy: - mv ${DEPLOY_DIR}/bin/spectral.dmg ./ -- sed -i -e "s/TRAVIS_BUILD_NUMBER/${TRAVIS_BUILD_NUMBER}/g" .ci/bintray-release.json +- sed -i -e "s/TRAVIS_BUILD_NUMBER/$(git rev-list --count HEAD)/g" .ci/bintray-release.json deploy: - provider: bintray diff --git a/BUILD.md b/BUILD.md index 874234e..04083a0 100644 --- a/BUILD.md +++ b/BUILD.md @@ -3,6 +3,7 @@ 1. Update Qt to v5.10+ brew install qt5 + brew link qt5 --force 2. Download Spectral source @@ -16,8 +17,8 @@ 4. Build Spectral - /usr/local/Cellar/qt5/5.10.1/bin/qmake - make + qmake ../spectral.pro + make -j4 5. Open Spectral