From 420c0c5da8429f2c3922e425478cea7705a4718b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 23 Mar 2026 18:54:53 +0000 Subject: [PATCH] Extract plist string literals to constants below BundleName Co-authored-by: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com> Agent-Logs-Url: https://github.com/Tyrrrz/DiscordChatExporter/sessions/263eabd9-7c0b-4cf2-9439-c3f057dc650e --- .../Publish-MacOSBundle.csx | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/DiscordChatExporter.Gui/Publish-MacOSBundle.csx b/DiscordChatExporter.Gui/Publish-MacOSBundle.csx index 11919e06..57215379 100644 --- a/DiscordChatExporter.Gui/Publish-MacOSBundle.csx +++ b/DiscordChatExporter.Gui/Publish-MacOSBundle.csx @@ -14,6 +14,11 @@ return await new CliApplicationBuilder() public class PublishMacOSBundleCommand : ICommand { private const string BundleName = "DiscordChatExporter.app"; + private const string AppName = "DiscordChatExporter"; + private const string AppCopyright = "© Oleksii Holub"; + private const string AppIdentifier = "me.Tyrrrz.DiscordChatExporter"; + private const string AppSpokenName = "Discord Chat Exporter"; + private const string AppIconName = "AppIcon"; [CommandOption("publish-dir", Description = "Path to the publish output directory.")] public required string PublishDirPath { get; init; } @@ -55,21 +60,21 @@ public class PublishMacOSBundleCommand : ICommand CFBundleDisplayName - DiscordChatExporter + {AppName} CFBundleName - DiscordChatExporter + {AppName} CFBundleExecutable - DiscordChatExporter + {AppName} NSHumanReadableCopyright - © Oleksii Holub + {AppCopyright} CFBundleIdentifier - me.Tyrrrz.DiscordChatExporter + {AppIdentifier} CFBundleSpokenName - Discord Chat Exporter + {AppSpokenName} CFBundleIconFile - AppIcon + {AppIconName} CFBundleIconName - AppIcon + {AppIconName} CFBundleVersion {FullVersion} CFBundleShortVersionString