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 cd src
dotnet publish -c Release -r win-x64 -o ..\publish\ -p:PublishSingleFile=true -p:PublishTrimmed=true -p:IncludeNativeLibrariesForSelfExtract=true --self-contained=true 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 Compress-Archive -Update -Path ..\publish\SourceGit.exe -DestinationPath ..\publish\SourceGit.zip
del /f /s /q ..\publish\SourceGit.exe
dotnet publish -c Release -r win-x64 -o ..\publish\ -p:PublishSingleFile=true --self-contained=false 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> <RepositoryUrl>https://gitee.com/sourcegit/SourceGit.git</RepositoryUrl>
<RepositoryType>Public</RepositoryType> <RepositoryType>Public</RepositoryType>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance> <PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
</PropertyGroup> <DebugType>embedded</DebugType>
<SatelliteResourceLanguages>none</SatelliteResourceLanguages>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DebugType>none</DebugType>
<DebugSymbols>false</DebugSymbols>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>