Skip to content

Commit 828a8b7

Browse files
committed
Use version in JSON metadata dynamically based on project version
1 parent e5e346b commit 828a8b7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ ecm_qt_install_logging_categories(
1717
)
1818

1919

20+
configure_file(firefoxprofilerunner.json.in firefoxprofilerunner.json)
2021
kcoreaddons_add_plugin(firefoxprofilerunner SOURCES firefoxprofilerunner.cpp INSTALL_NAMESPACE "kf${QT_MAJOR_VERSION}/krunner")
2122
target_link_libraries(firefoxprofilerunner
2223
Qt::Core

src/firefoxprofilerunner.json renamed to src/firefoxprofilerunner.json.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"Icon": "firefox",
1212
"License": "GPLv3",
1313
"Name": "FirefoxProfileRunner",
14-
"Version": "2.0.0",
14+
"Version": "@CMAKE_PROJECT_VERSION@",
1515
"Website": "https://github.com/alex1701c/krunner-firefox"
1616
},
1717
"X-KDE-ConfigModule": "krunner/kcms/kcm_firefoxprofilerunner"

0 commit comments

Comments
 (0)