0
0
mirror of https://github.com/sp-tarkov/launcher.git synced 2025-02-12 17:30:42 -05:00

fix script to publish launcher before copying files

This commit is contained in:
CWXDEV 2024-02-16 19:41:21 +00:00
parent 2bfdb1eeea
commit 6c29416a2d
3 changed files with 7 additions and 11 deletions

View File

@ -2,17 +2,12 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<RuntimeIdentifier>win10-x64</RuntimeIdentifier>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Aki.ByteBanger\Aki.ByteBanger.csproj" />
<ProjectReference Include="..\Aki.Launcher.Base\Aki.Launcher.Base.csproj" />
<ProjectReference Include="..\Aki.Launcher\Aki.Launcher.csproj" />
</ItemGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="../build.bat" WorkingDirectory="$(ProjectDir)" />
<Exec Command="dotnet publish ..\Aki.Launcher\Aki.Launcher.csproj -c Release -f net6.0 -r win-x64 /p:IncludeNativeLibrariesForSelfExtract=true -p:PublishSingleFile=true --self-contained false"/>
<Exec Command="../build.bat" WorkingDirectory="$(ProjectDir)" />
</Target>
</Project>

View File

@ -2,7 +2,7 @@
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<RuntimeIdentifier>win10-x64</RuntimeIdentifier>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
<Nullable>enable</Nullable>
<ApplicationIcon>Assets\icon.ico</ApplicationIcon>

View File

@ -2,7 +2,8 @@
:: Set some Vars to use
set buildFolder=..\Build
set akiDataFolder=..\Build\Aki_Data
set projReleaseFolder=.\bin\Release\net6.0\win10-x64
set projReleaseFolder=.\bin\Release\net6.0\win-x64
set launcherExeFolder=..\Aki.Launcher\bin\Release\net6.0\win-x64\publish
set launcherAssetFolder=..\Aki.Launcher\Aki_Data
set licenseFile=..\..\LICENSE.md
@ -23,7 +24,7 @@ echo --------------- Done Creating Output Build Folders ---------------
echo --------------- Moving DLLs to %buildFolder% ---------------
:: Move DLLs/exe/json project's bin\Release folder to the build folder
xcopy "%projReleaseFolder%\Aki.Launcher.exe" %buildFolder%
xcopy "%launcherExeFolder%\Aki.Launcher.exe" %buildFolder%
xcopy "%launcherAssetFolder%" "%buildFolder%\Aki_Data" /s /e
:: If any new Dll's need to be copied, add here