update<Build>: use SatelliteResourceLanguages to trim language cultures

This commit is contained in:
leo 2020-12-14 13:02:22 +08:00
parent 81d82630ba
commit c6c9f62bdb
2 changed files with 3 additions and 7 deletions

View file

@ -1,7 +1,6 @@
cd src
dotnet publish -c Release -r win-x64 -o ..\publish\ -p:PublishSingleFile=true -p:PublishTrimmed=true -p:IncludeNativeLibrariesForSelfExtract=true --self-contained=true
Compress-Archive -Path ..\publish\SourceGit.exe -DestinationPath ..\publish\SourceGit.zip
del /f /s /q ..\publish\SourceGit.exe
Compress-Archive -Update -Path ..\publish\SourceGit.exe -DestinationPath ..\publish\SourceGit.zip
dotnet publish -c Release -r win-x64 -o ..\publish\ -p:PublishSingleFile=true --self-contained=false

View file

@ -15,11 +15,8 @@
<RepositoryUrl>https://gitee.com/sourcegit/SourceGit.git</RepositoryUrl>
<RepositoryType>Public</RepositoryType>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DebugType>none</DebugType>
<DebugSymbols>false</DebugSymbols>
<DebugType>embedded</DebugType>
<SatelliteResourceLanguages>none</SatelliteResourceLanguages>
</PropertyGroup>
<ItemGroup>