From 646b43bd3711bbf9983d75a1456c9ef24e890a09 Mon Sep 17 00:00:00 2001
From: Takase <20792268+takase1121@users.noreply.github.com>
Date: Tue, 18 Jun 2024 21:00:14 +0800
Subject: [PATCH] Update macOS copyright notice (#1815)
* resources: update copyright in info.plist
* meson.build: dynamically generate current year
"present" may be misleading.
* resources/macos: remove unecessary newlines
---
meson.build | 4 ++++
resources/macos/Info.plist.in | 4 +++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/meson.build b/meson.build
index fc43e20e..023507ec 100644
--- a/meson.build
+++ b/meson.build
@@ -192,6 +192,10 @@ elif get_option('bundle') and host_machine.system() == 'darwin'
lite_bindir = 'Contents/MacOS'
lite_docdir = 'Contents/Resources'
lite_datadir = 'Contents/Resources'
+ conf_data.set(
+ 'CURRENT_YEAR',
+ run_command('date', '+%Y', capture: true).stdout().strip()
+ )
install_data('resources/icons/icon.icns', install_dir : 'Contents/Resources')
configure_file(
input : 'resources/macos/Info.plist.in',
diff --git a/resources/macos/Info.plist.in b/resources/macos/Info.plist.in
index 6fe6b751..a23d2a79 100644
--- a/resources/macos/Info.plist.in
+++ b/resources/macos/Info.plist.in
@@ -27,7 +27,9 @@
CFBundleShortVersionString
@PROJECT_VERSION@
NSHumanReadableCopyright
- © 2019-2022 Lite XL Team
+ © 2020 rxi
+© 2020-2022 Francesco Abbate
+© 2022-@CURRENT_YEAR@ Lite XL Team