-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBuiltInBrowser.csproj
More file actions
79 lines (68 loc) · 3.29 KB
/
BuiltInBrowser.csproj
File metadata and controls
79 lines (68 loc) · 3.29 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<Project Sdk="Godot.NET.Sdk/4.5.1">
<Import Project="local.props" Condition="Exists('local.props')" />
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<RootNamespace>BuiltInBrowser</RootNamespace>
<ImplicitUsings>true</ImplicitUsings>
<LangVersion>12.0</LangVersion>
<Nullable>enable</Nullable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<DefaultItemExcludes>$(DefaultItemExcludes);packages/**</DefaultItemExcludes>
<AppOutputBase>$(MSBuildProjectDirectory)\</AppOutputBase>
<Sts2Dir Condition="'$(Sts2Dir)' == '' and '$(Sts2Path)' != ''">$(Sts2Path)</Sts2Dir>
<GodotExe Condition="'$(GodotExe)' == '' and '$(GodotPath)' != ''">$(GodotPath)</GodotExe>
<Sts2DataDir Condition="'$(Sts2DataDir)' == '' and '$(Sts2Dir)' != ''">$(Sts2Dir)/data_sts2_windows_x86_64</Sts2DataDir>
</PropertyGroup>
<ItemGroup>
<WryFiles Include="addons/godot_wry/**/*.*"
Exclude="addons/godot_wry/**/*.uid;addons/godot_wry/**/*.import" />
</ItemGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
<Optimize>false</Optimize>
<DebugType>portable</DebugType>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<Optimize>true</Optimize>
<DebugType>none</DebugType>
<PathMap>$(AppOutputBase)=.\</PathMap>
</PropertyGroup>
<ItemGroup>
<Reference Include="sts2">
<HintPath>$(Sts2DataDir)/sts2.dll</HintPath>
<Private>false</Private>
</Reference>
<Reference Include="0Harmony">
<HintPath>$(Sts2DataDir)/0Harmony.dll</HintPath>
<Private>false</Private>
</Reference>
<PackageReference Include="Krafs.Publicizer" Version="2.3.0" PrivateAssets="All" />
</ItemGroup>
<ItemGroup>
<Compile Remove="OptionalDeps/**/*.cs" />
<EmbeddedResource Remove="OptionalDeps/**" />
<EmbeddedResource Remove="docs/**" />
<None Remove="OptionalDeps/**" />
<Content Remove="OptionalDeps/**" />
<Content Remove="docs/**" />
</ItemGroup>
<ItemGroup>
<Publicize Include="sts2" IncludeVirtualMembers="false" IncludeCompilerGeneratedMembers="false" />
</ItemGroup>
<!-- -->
<Target Name="Copy Mod" AfterTargets="PostBuildEvent">
<Message Text="Copying mod to Slay the Spire 2 mods folder..." Importance="high" />
<MakeDir Directories="$(Sts2Dir)/mods/" />
<Copy SourceFiles="$(TargetPath)" DestinationFolder="$(Sts2Dir)/mods/$(MSBuildProjectName)/" />
<!-- <Copy SourceFiles="$(TargetDir)$(TargetName).pdb"
DestinationFolder="$(Sts2Dir)/mods/$(MSBuildProjectName)/"
Condition="Exists('$(TargetDir)$(TargetName).pdb')" /> -->
<Copy SourceFiles="$(MSBuildProjectName).json" DestinationFolder="$(Sts2Dir)/mods/$(MSBuildProjectName)/" />
<Copy SourceFiles="@(WryFiles)" DestinationFiles="@(WryFiles->'$(Sts2Dir)/mods/$(MSBuildProjectName)/%(Identity)')" SkipUnchangedFiles="true" />
</Target>
<Target Name="ExportPck">
<Message Text="Copying PCK to Slay the Spire 2 mods folder..." Importance="high" />
<Exec Command=""$(GodotExe)" --headless --export-pack "Windows Desktop" "$(Sts2Dir)/mods/$(MSBuildProjectName)/$(MSBuildProjectName).pck""
EnvironmentVariables="IsInnerGodotExport=true;MSBUILDDISABLENODEREUSE=1"
ContinueOnError="WarnAndContinue" />
</Target>
</Project>