Repository navigation
Expand file tree
/
Copy pathValhighm.csproj
More file actions
60 lines (54 loc) · 3.3 KB
/
Copy pathValhighm.csproj
File metadata and controls
60 lines (54 loc) · 3.3 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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net48</TargetFramework>
<AssemblyName>Valhighm</AssemblyName>
<RootNamespace>Valhighm</RootNamespace>
<Version>0.1.420</Version>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Deterministic>true</Deterministic>
<SolutionDir Condition="'$(SolutionDir)' == '' Or '$(SolutionDir)' == '*Undefined*'">$(MSBuildProjectDirectory)/</SolutionDir>
<MOD_DEPLOYPATH Condition="'$(MOD_DEPLOYPATH)' == ''">$(HOME)/.local/share/com.kesomannen.gale/valheim/profiles/Dev-Valhighm/BepInEx/plugins/Valhighm</MOD_DEPLOYPATH>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="JotunnLib" Version="2.30.2" />
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" PrivateAssets="all" />
<Reference Remove="UnityEngine.ProfilerModule" />
</ItemGroup>
<Target Name="DeployToGale" AfterTargets="Build" Condition="'$(MOD_DEPLOYPATH)' != '' And '$(SKIP_GALE_DEPLOY)' != 'true'">
<ItemGroup>
<AssetFiles Include="$(ProjectDir)Assets/**/*" />
</ItemGroup>
<MakeDir Directories="$(MOD_DEPLOYPATH)" />
<Copy SourceFiles="$(TargetDir)$(AssemblyName).dll" DestinationFolder="$(MOD_DEPLOYPATH)" OverwriteReadOnlyFiles="true" />
<Copy SourceFiles="@(AssetFiles)" DestinationFolder="$(MOD_DEPLOYPATH)/Assets/%(RecursiveDir)" OverwriteReadOnlyFiles="true" />
<Message Text="[Valhighm] Deployed $(AssemblyName).dll and Assets -> $(MOD_DEPLOYPATH)" Importance="High" />
</Target>
<Target Name="PackageThunderstoreRelease" AfterTargets="Build" Condition="'$(Configuration)' == 'Release'">
<PropertyGroup>
<ThunderstoreStageDir>$(BaseIntermediateOutputPath)thunderstore_stage</ThunderstoreStageDir>
<ThunderstorePluginDir>$(ThunderstoreStageDir)/plugins/$(AssemblyName)</ThunderstorePluginDir>
<ThunderstoreZipPath>$(ProjectDir)dist/$(AssemblyName)-$(Version).zip</ThunderstoreZipPath>
</PropertyGroup>
<ItemGroup>
<ReleaseAssetFiles Include="$(ProjectDir)Assets/**/*" />
</ItemGroup>
<RemoveDir Directories="$(ThunderstoreStageDir)" />
<MakeDir Directories="$(ThunderstorePluginDir);$(ProjectDir)dist" />
<Copy SourceFiles="$(ProjectDir)packaging/manifest.json;$(ProjectDir)packaging/icon.png;$(ProjectDir)README.md;$(ProjectDir)CHANGELOG.md" DestinationFolder="$(ThunderstoreStageDir)" OverwriteReadOnlyFiles="true" />
<Copy SourceFiles="$(TargetDir)$(AssemblyName).dll" DestinationFolder="$(ThunderstorePluginDir)" OverwriteReadOnlyFiles="true" />
<Copy SourceFiles="@(ReleaseAssetFiles)" DestinationFolder="$(ThunderstorePluginDir)/Assets/%(RecursiveDir)" OverwriteReadOnlyFiles="true" />
<ZipDirectory SourceDirectory="$(ThunderstoreStageDir)" DestinationFile="$(ThunderstoreZipPath)" Overwrite="true" />
<Message Text="[Valhighm] Packaged Thunderstore/Gale archive -> $(ThunderstoreZipPath)" Importance="High" />
</Target>
<ItemGroup>
<Compile Remove="tests/**;packaging/**;dist/**" />
<EmbeddedResource Remove="tests/**;packaging/**;dist/**" />
<None Remove="tests/**;packaging/**;dist/**" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Assets/Icons/*.png" />
<EmbeddedResource Include="Assets/Translations/**/*.json" />
</ItemGroup>
</Project>