Add version string for non tag builds

Used to build binaries for the release, will be reverted afterwards.
This commit is contained in:
Ale Martinez
2020-05-02 15:15:50 -03:00
parent cc11f1fa2d
commit 7d06cd5ad1
3 changed files with 5 additions and 0 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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