Improve publish script
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -2,3 +2,5 @@ bin
|
|||||||
obj
|
obj
|
||||||
.vs
|
.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.Content.Builder.Task" Version="3.8.1.303" />
|
||||||
<PackageReference Include="MonoGame.Framework.WindowsDX" Version="3.8.1.303" />
|
<PackageReference Include="MonoGame.Framework.WindowsDX" Version="3.8.1.303" />
|
||||||
<PackageReference Include="System.Resources.Extensions" Version="8.0.0" />
|
<PackageReference Include="System.Resources.Extensions" Version="8.0.0" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Content Include="Data\**">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<StartupObject>ProjectZ.Program</StartupObject>
|
<StartupObject>ProjectZ.Program</StartupObject>
|
||||||
@@ -44,4 +49,19 @@
|
|||||||
<Message Text="Restoring dotnet tools" Importance="High" />
|
<Message Text="Restoring dotnet tools" Importance="High" />
|
||||||
<Exec Command="dotnet tool restore" />
|
<Exec Command="dotnet tool restore" />
|
||||||
</Target>
|
</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>
|
</Project>
|
@@ -6,7 +6,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Configuration>Release</Configuration>
|
<Configuration>Release</Configuration>
|
||||||
<Platform>Any CPU</Platform>
|
<Platform>Any CPU</Platform>
|
||||||
<PublishDir>bin\Release\net6.0-windows\publish\</PublishDir>
|
<PublishDir>Publish</PublishDir>
|
||||||
<PublishProtocol>FileSystem</PublishProtocol>
|
<PublishProtocol>FileSystem</PublishProtocol>
|
||||||
<_TargetId>Folder</_TargetId>
|
<_TargetId>Folder</_TargetId>
|
||||||
<TargetFramework>net6.0-windows</TargetFramework>
|
<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"
|
Reference in New Issue
Block a user