aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimofffee <krougz@live.ru>2021-09-03 15:50:44 +0400
committerFrancesco Abbate <francesco.bbt@gmail.com>2021-09-04 18:01:08 +0200
commitd42a9173fed7f5faf3effbbf0b19890b0d66bff3 (patch)
tree424190d22c51043cd83cd68cf004a14ae3452890
parent4732ba743ddb5d25dcb3c78e04eab6cc8485763b (diff)
downloadlite-xl-d42a9173fed7f5faf3effbbf0b19890b0d66bff3.tar.gz
lite-xl-d42a9173fed7f5faf3effbbf0b19890b0d66bff3.zip
Bring back info.plist with meson configuration
-rw-r--r--meson.build8
-rw-r--r--resources/macos/Info.plist.in (renamed from resources/macos/Info.plist)3
2 files changed, 9 insertions, 2 deletions
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
index 70d49a02..236a9a6c 100644
--- a/resources/macos/Info.plist
+++ b/resources/macos/Info.plist.in
@@ -19,8 +19,9 @@
<key>NSDesktopFolderUsageDescription</key><string>To access, edit and index your projects.</string>
<key>NSDownloadsFolderUsageDescription</key><string>To access, edit and index your projects.</string>
<key>CFBundleShortVersionString</key>
- <string>2.0</string>
+ <string>@PROJECT_VERSION@</string>
<key>NSHumanReadableCopyright</key>
<string>© 2019-2021 Francesco Abbate</string>
</dict>
</plist>
+