Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -399,3 +399,6 @@ FodyWeavers.xsd
# JetBrains Rider
*.sln.iml
/Server

# Plan files (local only)
plan.md
34 changes: 18 additions & 16 deletions BossNotifier.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
Expand All @@ -9,10 +8,12 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>BossNotifier</RootNamespace>
<AssemblyName>BossNotifier</AssemblyName>
<TargetFrameworkVersion>v4.7.1</TargetFrameworkVersion>
<TargetFramework>netstandard2.1</TargetFramework>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
<TargetFrameworkProfile />
<LangVersion>latest</LangVersion>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<DefaultItemExcludes>$(DefaultItemExcludes);Fika\**</DefaultItemExcludes>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand All @@ -36,10 +37,6 @@
<PropertyGroup>
<RunPostBuildEvent>Always</RunPostBuildEvent>
</PropertyGroup>
<ItemGroup>
<Compile Include="Plugin.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<Reference Include="0Harmony">
<HintPath>References\0Harmony.dll</HintPath>
Expand All @@ -56,22 +53,27 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>References\Comfort.dll</HintPath>
</Reference>
<Reference Include="Comfort.Unity">
<HintPath>References\Comfort.Unity.dll</HintPath>
</Reference>
<Reference Include="spt-reflection">
<HintPath>References\spt-reflection.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="UnityEngine">
<HintPath>References\UnityEngine.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.CoreModule">
<HintPath>References\UnityEngine.CoreModule.dll</HintPath>
</Reference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>mkdir $(TargetDir)BepInEx\plugins\
copy /Y "$(TargerDir)$(TargetFileName)" "C:\Games\SPT 3.10.3\BepInEx\plugins\$(TargetFileName)"
copy /Y "$(TargetDir)$(TargetFileName)" "$(TargetDir)BepInEx\plugins\$(TargetFileName)"
powershell.exe -command Compress-Archive -Force -Path BepInEx $(TargetName).zip</PostBuildEvent>
<SPTPath Condition="'$(SPTPath)' == ''">C:\SPT</SPTPath>
</PropertyGroup>
</Project>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="if not exist &quot;$(TargetDir)BepInEx\plugins\BossNotifier\&quot; mkdir &quot;$(TargetDir)BepInEx\plugins\BossNotifier\&quot;" />
<Exec Command="copy /Y &quot;$(TargetPath)&quot; &quot;$(TargetDir)BepInEx\plugins\BossNotifier\$(TargetFileName)&quot;" />
<Exec Command="if exist &quot;$(SPTPath)\BepInEx\plugins\&quot; if not exist &quot;$(SPTPath)\BepInEx\plugins\BossNotifier\&quot; mkdir &quot;$(SPTPath)\BepInEx\plugins\BossNotifier\&quot;" />
<Exec Command="if exist &quot;$(SPTPath)\BepInEx\plugins\&quot; copy /Y &quot;$(TargetPath)&quot; &quot;$(SPTPath)\BepInEx\plugins\BossNotifier\$(TargetFileName)&quot;" />
<Exec Command="powershell.exe -command &quot;Compress-Archive -Force -Path '$(TargetDir)BepInEx' -DestinationPath '$(TargetDir)$(TargetName).zip'&quot;" />
</Target>
</Project>
50 changes: 50 additions & 0 deletions Fika/BossNotifier.Fika.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<LangVersion>latest</LangVersion>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>

<ItemGroup>
<Reference Include="0Harmony">
<HintPath>..\References\0Harmony.dll</HintPath>
</Reference>
<Reference Include="Assembly-CSharp">
<HintPath>..\References\Assembly-CSharp.dll</HintPath>
</Reference>
<Reference Include="BepInEx">
<HintPath>..\References\BepInEx.dll</HintPath>
</Reference>
<Reference Include="Comfort">
<HintPath>..\References\Comfort.dll</HintPath>
</Reference>
<Reference Include="Comfort.Unity">
<HintPath>..\References\Comfort.Unity.dll</HintPath>
</Reference>
<Reference Include="Fika.Core">
<HintPath>..\References\Fika.Core.dll</HintPath>
</Reference>
<Reference Include="UnityEngine">
<HintPath>..\References\UnityEngine.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.CoreModule">
<HintPath>..\References\UnityEngine.CoreModule.dll</HintPath>
</Reference>
</ItemGroup>

<ItemGroup>
<Reference Include="BossNotifier">
<HintPath>..\bin\Release\netstandard2.1\BossNotifier.dll</HintPath>
</Reference>
</ItemGroup>

<PropertyGroup>
<SPTPath Condition="'$(SPTPath)' == ''">C:\SPT</SPTPath>
</PropertyGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="copy /Y &quot;$(TargetPath)&quot; &quot;$(TargetDir)BossNotifier.FikaOptional.dll.bin&quot;" />
<Exec Command="copy /Y &quot;$(TargetDir)BossNotifier.FikaOptional.dll.bin&quot; &quot;..\bin\Release\netstandard2.1\BepInEx\plugins\BossNotifier\BossNotifier.FikaOptional.dll.bin&quot;" />
<Exec Command="if exist &quot;$(SPTPath)\BepInEx\plugins\BossNotifier\&quot; copy /Y &quot;$(TargetDir)BossNotifier.FikaOptional.dll.bin&quot; &quot;$(SPTPath)\BepInEx\plugins\BossNotifier\BossNotifier.FikaOptional.dll.bin&quot;" />
</Target>
</Project>
Loading