-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGilDelta.csproj
More file actions
45 lines (45 loc) · 2.1 KB
/
Copy pathGilDelta.csproj
File metadata and controls
45 lines (45 loc) · 2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Dalamud.NET.Sdk/15.0.0">
<PropertyGroup>
<Version>0.1.0.0</Version>
<Description>Track gil flow across self, retainers, and FC chest.</Description>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<IsPackable>false</IsPackable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<!-- SDK 15 defaults to bin/x64/Release/; pin the historical bin/Release/ layout
so Dev Plugin Locations and the GHA release workflow keep working. -->
<PlatformTarget>x64</PlatformTarget>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
<OutputPath>bin\$(Configuration)\</OutputPath>
</PropertyGroup>
<ItemGroup>
<Compile Remove="tests\**\*.cs" />
<None Remove="tests\**\*" />
<EmbeddedResource Remove="tests\**\*" />
</ItemGroup>
<ItemGroup>
<None Include="images\icon.png" Pack="true" Condition="Exists('images\icon.png')">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>images\icon.png</Link>
</None>
</ItemGroup>
<!-- DalamudPackager 15 (DefaultDalamudPackagerRelease target) stages files
into bin/Release/GilDelta/, zips them into latest.zip, and cleans up
the loose copies — including GilDelta.dll itself. That breaks Dalamud
Dev Plugin Locations, which expect a DLL on disk. Re-extract the zip
AFTER DalamudPackager runs so a loadable GilDelta.dll lives beside
latest.zip in the staged folder. -->
<Target Name="ExtractStagedZipForDevPlugin"
AfterTargets="Build"
DependsOnTargets="DefaultDalamudPackagerDebug;DefaultDalamudPackagerRelease">
<PropertyGroup>
<_StagedZip>$(OutputPath)$(MSBuildProjectName)\latest.zip</_StagedZip>
<_StagedDir>$(OutputPath)$(MSBuildProjectName)\</_StagedDir>
</PropertyGroup>
<Unzip Condition="Exists('$(_StagedZip)')"
SourceFiles="$(_StagedZip)"
DestinationFolder="$(_StagedDir)"
OverwriteReadOnlyFiles="true" />
</Target>
</Project>