From 81d3c9ca6bc3493aa9bed31dc7fdf7e1e6fcc030 Mon Sep 17 00:00:00 2001 From: JonKazama-Hellion Date: Fri, 1 May 2026 23:35:19 +0200 Subject: [PATCH] Pack the plugin icon into the release ZIP MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit DalamudPackager's default targets do not enable the HandleImages / ImagesPath flags, so the images/ directory was silently excluded from the build output even after the .csproj started copying icon.png next to the DLL. The local Dalamud plugin loader then fell back to the placeholder question-mark icon because there was nothing to load at /images/icon.png. Override the default by dropping a DalamudPackager.targets next to the csproj — its presence disables the SDK's default target, which is guarded on `!Exists($(PackagerTargetFile))`. The override mirrors the SDK property list verbatim and adds HandleImages=true plus ImagesPath=$(ProjectDir)images so the packager actually walks the images directory and copies its contents into both the dev plugin output and the release ZIP. Verified: latest.zip now contains images/icon.png at the expected path; both dev plugins and Custom-Repo installs will render the Hellion logo locally without depending on the remote IconUrl. --- ChatTwo/ChatTwo.csproj | 11 +++++ ChatTwo/DalamudPackager.targets | 76 +++++++++++++++++++++++++++++++++ 2 files changed, 87 insertions(+) create mode 100644 ChatTwo/DalamudPackager.targets diff --git a/ChatTwo/ChatTwo.csproj b/ChatTwo/ChatTwo.csproj index 2443349..c36a986 100755 --- a/ChatTwo/ChatTwo.csproj +++ b/ChatTwo/ChatTwo.csproj @@ -62,6 +62,17 @@ + + + + PreserveNewest + + + diff --git a/ChatTwo/DalamudPackager.targets b/ChatTwo/DalamudPackager.targets new file mode 100644 index 0000000..6d0d1ce --- /dev/null +++ b/ChatTwo/DalamudPackager.targets @@ -0,0 +1,76 @@ + + + + + + + + + + +