feat(proj): move files on build and SPT.Server launch
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -2,4 +2,5 @@ bin/
|
||||
obj/
|
||||
/packages/
|
||||
riderModule.iml
|
||||
/_ReSharper.Caches/
|
||||
/_ReSharper.Caches/
|
||||
Server/Server.csproj.user
|
||||
14
Server/Properties/launchSettings.json
Normal file
14
Server/Properties/launchSettings.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"$schema": "http://json.schemastore.org/launchsettings.json",
|
||||
"profiles": {
|
||||
"SPTarkov.Server": {
|
||||
"commandName": "Executable",
|
||||
"executablePath": "$(SPTPath)/SPT.Server.Linux",
|
||||
"commandLineArgs": "--disable-software-rasterizer",
|
||||
"workingDirectory": "$(SPTPath)",
|
||||
"environmentVariables": {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -9,7 +9,24 @@
|
||||
<AssemblyVersion>1.0.0</AssemblyVersion>
|
||||
<FileVersion>1.0.0</FileVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<None Include="$(MSBuildProjectFullPath).user" Condition="Exists('$(MSBuildProjectFullPath).user')" />
|
||||
</ItemGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<ModsDirectoryPath>$(SPTPath)user/mods/$(MSBuildProjectName)</ModsDirectoryPath>
|
||||
</PropertyGroup>
|
||||
|
||||
<Target Name="CopyToSPT" AfterTargets="AfterBuild" Condition="'$(SPTPath)' != ''">
|
||||
<Message Importance="high" Text="Copying mods to $(ModsDirectoryPath)" />
|
||||
<ItemGroup>
|
||||
<FilesToCopy Include="$(OutputPath)$(TargetName)$(TargetExt)" />
|
||||
<FilesToCopy Include="$(OutputPath)$(TargetName).pdb" />
|
||||
</ItemGroup>
|
||||
<Copy SourceFiles="@(FilesToCopy)" DestinationFolder="$(ModsDirectoryPath)" ContinueOnError="false" />
|
||||
<Message Text="Files copied" />
|
||||
</Target>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="SPTarkov.Server.Core" Version="4.0.3" />
|
||||
</ItemGroup>
|
||||
@@ -17,6 +34,7 @@
|
||||
<Content Include="bundles\**">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Server.csproj.user" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="bundles.json">
|
||||
|
||||
Reference in New Issue
Block a user