mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Add version string for non tag builds
Used to build binaries for the release, will be reverted afterwards.
This commit is contained in:
@@ -95,6 +95,7 @@ install:
|
||||
before_build:
|
||||
# Define GC version string, only for tagged builds
|
||||
- if %APPVEYOR_REPO_TAG% == "true" (echo DEFINES+=GC_VERSION=VERSION_STRING >> src/gcconfig.pri)
|
||||
- echo DEFINES+=GC_VERSION=VERSION_STRING >> src/gcconfig.pri
|
||||
|
||||
# Enable CloudDB
|
||||
- echo CloudDB=active >> src\gcconfig.pri
|
||||
|
||||
@@ -6,6 +6,7 @@ cp qwt/qwtconfig.pri.in qwt/qwtconfig.pri
|
||||
cp src/gcconfig.pri.in src/gcconfig.pri
|
||||
# Define GC version string, only for tagged builds
|
||||
if [ -n "$TRAVIS_TAG" ]; then echo DEFINES += GC_VERSION=VERSION_STRING >> src/gcconfig.pri; fi
|
||||
echo DEFINES += GC_VERSION=VERSION_STRING >> src/gcconfig.pri
|
||||
# user WEBENGINE
|
||||
echo DEFINES += NOWEBKIT >> src/gcconfig.pri
|
||||
# Trusty needs C99 mode to enable declarations in for loops
|
||||
|
||||
@@ -23,6 +23,9 @@ cp qwt/qwtconfig.pri.in qwt/qwtconfig.pri
|
||||
cp src/gcconfig.pri.in src/gcconfig.pri
|
||||
# Define GC version string, only for tagged builds
|
||||
if [ -n "$TRAVIS_TAG" ]; then echo DEFINES += GC_VERSION=VERSION_STRING >> src/gcconfig.pri; fi
|
||||
# Temporary hack to have a non tag build with version string
|
||||
echo DEFINES += GC_VERSION=VERSION_STRING >> src/gcconfig.pri
|
||||
|
||||
echo DEFINES += NOWEBKIT >> src/gcconfig.pri
|
||||
sed -i "" "s|#\(CONFIG += release.*\)|\1 static |" src/gcconfig.pri
|
||||
sed -i "" "s|#\(QMAKE_LRELEASE\).*|\1 += /usr/local/opt/qt5/bin/lrelease|" src/gcconfig.pri
|
||||
|
||||
Reference in New Issue
Block a user