update<Build>: change publish batch command

This commit is contained in:
leo 2020-12-14 10:47:55 +08:00
parent d69db0289e
commit 3f7f180694
4 changed files with 8 additions and 7 deletions

View file

@ -7,7 +7,7 @@
[发行版](https://gitee.com/sourcegit/SourceGit/releases/) [发行版](https://gitee.com/sourcegit/SourceGit/releases/)
1. `SourceGit.exe`为不包含`.NET 5.0`运行时的可执行文件。如果本机已有`.NET 5.0`可下载使用 1. `SourceGit.exe`为不包含`.NET 5.0`运行时的可执行文件。如果本机已有`.NET 5.0`可下载使用
2. `SourceGit.zip`为`self-contained`包。包含了`.NET 5.0`运行时。 2. `SourceGit.tar.gz`为`self-contained`包。包含了`.NET 5.0`运行时。
## 预览 ## 预览

View file

@ -5,4 +5,7 @@ cd src
dotnet publish -c Release -r win-x64 -o ..\publish\SourceGit\ -p:PublishSingleFile=true --self-contained=true dotnet publish -c Release -r win-x64 -o ..\publish\SourceGit\ -p:PublishSingleFile=true --self-contained=true
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
tar -C ..\publish -czvf ..\publish\SourceGit.tar.gz SourceGit\*.*
rmdir /S /Q ..\publish\SourceGit
pause pause

View file

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<AppContextSwitchOverrides value="Switch.System.Windows.DoNotScaleForDpiChanges=false" />
</runtime>
</configuration>

View file

@ -16,4 +16,8 @@
<RepositoryType>Public</RepositoryType> <RepositoryType>Public</RepositoryType>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance> <PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DebugType>none</DebugType>
<DebugSymbols>false</DebugSymbols>
</PropertyGroup>
</Project> </Project>