From d42a9173fed7f5faf3effbbf0b19890b0d66bff3 Mon Sep 17 00:00:00 2001 From: Timofffee Date: Fri, 3 Sep 2021 15:50:44 +0400 Subject: [PATCH] Bring back info.plist with meson configuration --- meson.build | 8 +++++++- resources/macos/{Info.plist => Info.plist.in} | 3 ++- 2 files changed, 9 insertions(+), 2 deletions(-) rename resources/macos/{Info.plist => Info.plist.in} (96%) 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 +