diff --git a/meson.build b/meson.build
index 3d5f9da9..7e9b4ab1 100644
--- a/meson.build
+++ b/meson.build
@@ -83,7 +83,13 @@ elif get_option('bundle') and host_machine.system() == 'darwin'
lite_docdir = 'Contents/Resources'
lite_datadir = 'Contents/Resources'
install_data('resources/icons/icon.icns', install_dir : 'Contents/Resources')
- install_data('resources/macos/Info.plist', install_dir : 'Contents')
+ configure_file(
+ input : 'resources/macos/Info.plist.in',
+ output : 'Info.plist',
+ configuration : conf_data,
+ install : true,
+ install_dir : 'Contents'
+ )
else
lite_bindir = 'bin'
lite_docdir = 'share/doc/lite-xl'
diff --git a/resources/macos/Info.plist b/resources/macos/Info.plist.in
similarity index 96%
rename from resources/macos/Info.plist
rename to resources/macos/Info.plist.in
index 70d49a02..236a9a6c 100644
--- a/resources/macos/Info.plist
+++ b/resources/macos/Info.plist.in
@@ -19,8 +19,9 @@
NSDesktopFolderUsageDescriptionTo access, edit and index your projects.
NSDownloadsFolderUsageDescriptionTo access, edit and index your projects.
CFBundleShortVersionString
- 2.0
+ @PROJECT_VERSION@
NSHumanReadableCopyright
© 2019-2021 Francesco Abbate
+