mirror of
https://github.com/sp-tarkov/launcher.git
synced 2025-02-12 22:10:44 -05:00
fix script to publish launcher before copying files
This commit is contained in:
parent
2bfdb1eeea
commit
6c29416a2d
@ -2,17 +2,12 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net6.0</TargetFramework>
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
<RuntimeIdentifier>win10-x64</RuntimeIdentifier>
|
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
||||||
</PropertyGroup>
|
</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">
|
<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>
|
</Target>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>WinExe</OutputType>
|
<OutputType>WinExe</OutputType>
|
||||||
<TargetFramework>net6.0</TargetFramework>
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
<RuntimeIdentifier>win10-x64</RuntimeIdentifier>
|
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
||||||
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
|
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<ApplicationIcon>Assets\icon.ico</ApplicationIcon>
|
<ApplicationIcon>Assets\icon.ico</ApplicationIcon>
|
||||||
|
@ -2,7 +2,8 @@
|
|||||||
:: Set some Vars to use
|
:: Set some Vars to use
|
||||||
set buildFolder=..\Build
|
set buildFolder=..\Build
|
||||||
set akiDataFolder=..\Build\Aki_Data
|
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 launcherAssetFolder=..\Aki.Launcher\Aki_Data
|
||||||
set licenseFile=..\..\LICENSE.md
|
set licenseFile=..\..\LICENSE.md
|
||||||
|
|
||||||
@ -23,7 +24,7 @@ echo --------------- Done Creating Output Build Folders ---------------
|
|||||||
echo --------------- Moving DLLs to %buildFolder% ---------------
|
echo --------------- Moving DLLs to %buildFolder% ---------------
|
||||||
|
|
||||||
:: Move DLLs/exe/json project's bin\Release folder to the build folder
|
:: 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
|
xcopy "%launcherAssetFolder%" "%buildFolder%\Aki_Data" /s /e
|
||||||
|
|
||||||
:: If any new Dll's need to be copied, add here
|
:: If any new Dll's need to be copied, add here
|
||||||
|
Loading…
x
Reference in New Issue
Block a user