Skip to content

Commit 16c4cb7

Browse files
committed
feat: update application versioning to use dynamic project version
1 parent 0d2cf3b commit 16c4cb7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/app/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
juce_add_gui_app(reTunerApp
33
COMPANY_NAME "Kushview"
44
PRODUCT_NAME "reTuner"
5-
VERSION "1.0.0"
65
BUNDLE_ID "net.kushview.reTunerApp"
76
ICON_BIG "retuner-icon.png"
87
)
@@ -55,7 +54,8 @@ target_link_libraries(reTunerApp PRIVATE
5554
)
5655

5756
target_compile_definitions(reTunerApp PRIVATE
58-
"RETUNER_APP=1"
57+
RETUNER_APP=1
58+
RETUNER_VERSION=\"${PROJECT_VERSION}\"
5959
${RETUNER_JUCE_OPTIONS}
6060
)
6161

src/app/application.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class Application : public juce::JUCEApplication {
7676
Application() = default;
7777

7878
const juce::String getApplicationName() override { return "reTuner"; }
79-
const juce::String getApplicationVersion() override { return "1.0.0"; }
79+
const juce::String getApplicationVersion() override { return RETUNER_VERSION; }
8080
bool moreThanOneInstanceAllowed() override { return true; }
8181

8282
void initialise (const juce::String& commandLine) override;

0 commit comments

Comments
 (0)