Skip to content

Commit

Permalink
Use DEV_BUILD define instead of env
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkanovikov committed Apr 24, 2022
1 parent a4e1bea commit 95b69bb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build_starc_app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,11 @@ jobs:
shell: bash
run: |
cd src
qmake starc.pro
qmake starc.pro DEFINES+="DEV_BUILD=$DEV_BUILD"
- name: Build
shell: bash
run: |
export DEV_BUILD=${{env.DEV_BUILD}}
cd src
make -j$(nproc)
Expand Down Expand Up @@ -127,7 +126,7 @@ jobs:
shell: bash
run: |
cd src
qmake starc.pro CONFIG+=release
qmake starc.pro CONFIG+=release DEFINES+="DEV_BUILD=$DEV_BUILD"
- name: Build
run: |
Expand Down Expand Up @@ -236,7 +235,7 @@ jobs:
shell: bash
run: |
cd src
qmake starc.pro CONFIG+=release
qmake starc.pro CONFIG+=release DEFINES+="DEV_BUILD=$DEV_BUILD"
- name: Build
run: |
Expand Down Expand Up @@ -335,7 +334,7 @@ jobs:
shell: bash
run: |
cd src
qmake starc.pro
qmake starc.pro DEFINES+="DEV_BUILD=$DEV_BUILD"
- name: Build
shell: bash
Expand Down
6 changes: 3 additions & 3 deletions src/core/management_layer/application_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1414,9 +1414,9 @@ ApplicationManager::ApplicationManager(QObject* _parent)


QString applicationVersion = "0.1.5";
if (auto devBuild = qgetenv("DEV_BUILD"); !devBuild.isEmpty()) {
applicationVersion += QString(" dev %1").arg(devBuild.constData());
}
#if defined(DEV_BUILD) && DEV_BUILD > 0
applicationVersion += QString(" dev %1").arg(DEV_BUILD);
#endif
QApplication::setApplicationVersion(applicationVersion);
QApplication::setStyle(new ApplicationStyle(QStyleFactory::create("Fusion")));

Expand Down

0 comments on commit 95b69bb

Please sign in to comment.