Improve publish script
This commit is contained in:
parent
243d731ede
commit
36a9911a3a
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,4 +1,6 @@
|
||||
bin
|
||||
obj
|
||||
.vs
|
||||
Content/bin
|
||||
Content/bin
|
||||
Publish
|
||||
Properties/PublishProfiles/FolderProfile.pubxml.user
|
@ -32,6 +32,11 @@
|
||||
<PackageReference Include="MonoGame.Content.Builder.Task" Version="3.8.1.303" />
|
||||
<PackageReference Include="MonoGame.Framework.WindowsDX" Version="3.8.1.303" />
|
||||
<PackageReference Include="System.Resources.Extensions" Version="8.0.0" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Data\**">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
<PropertyGroup>
|
||||
<StartupObject>ProjectZ.Program</StartupObject>
|
||||
@ -44,4 +49,19 @@
|
||||
<Message Text="Restoring dotnet tools" Importance="High" />
|
||||
<Exec Command="dotnet tool restore" />
|
||||
</Target>
|
||||
<Target Name="RemovePreviousPublish" BeforeTargets="Build">
|
||||
<RemoveDir Directories="$(PublishDir)"></RemoveDir>
|
||||
</Target>
|
||||
<Target Name="CleanPublish" AfterTargets="Publish">
|
||||
<Delete Files="$(PublishDir)/assimp.dll" />
|
||||
<Delete Files="$(PublishDir)/ffmpeg.exe" />
|
||||
<Delete Files="$(PublishDir)/ffprobe.exe" />
|
||||
<Delete Files="$(PublishDir)/FreeImage.dll" />
|
||||
<Delete Files="$(PublishDir)/freetype6.dll" />
|
||||
<Delete Files="$(PublishDir)/libmojoshader_64.dll" />
|
||||
<Delete Files="$(PublishDir)/Link's Awakening DX HD.dll.config" />
|
||||
<Delete Files="$(PublishDir)/Link's Awakening DX HD.pdb" />
|
||||
<Delete Files="$(PublishDir)/nvtt.dll" />
|
||||
<Delete Files="$(PublishDir)/PVRTexLibWrapper.dll" />
|
||||
</Target>
|
||||
</Project>
|
@ -6,7 +6,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
<PropertyGroup>
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Any CPU</Platform>
|
||||
<PublishDir>bin\Release\net6.0-windows\publish\</PublishDir>
|
||||
<PublishDir>Publish</PublishDir>
|
||||
<PublishProtocol>FileSystem</PublishProtocol>
|
||||
<_TargetId>Folder</_TargetId>
|
||||
<TargetFramework>net6.0-windows</TargetFramework>
|
||||
|
@ -1,10 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
https://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
-->
|
||||
<Project>
|
||||
<PropertyGroup>
|
||||
<History>True|2023-12-14T16:20:38.8832609Z;</History>
|
||||
<LastFailureDetails />
|
||||
</PropertyGroup>
|
||||
</Project>
|
1
publish.bat
Normal file
1
publish.bat
Normal file
@ -0,0 +1 @@
|
||||
dotnet publish -c Release -p:"PublishProfile=FolderProfile"
|
Loading…
x
Reference in New Issue
Block a user