diff --git a/BUILD.ps1 b/BUILD.ps1 index a24ed5c0..ddb3cf4d 100644 --- a/BUILD.ps1 +++ b/BUILD.ps1 @@ -1,8 +1,6 @@ Write-Host 'Building' dotnet build -p:Configuration="Release" ` - -p:Platform="x64" ` - -p:SolutionDir="$pwd\" ` -restore ` Netch\Netch.csproj diff --git a/Netch/Netch.csproj b/Netch/Netch.csproj index 07b388df..d31d6c8e 100644 --- a/Netch/Netch.csproj +++ b/Netch/Netch.csproj @@ -11,6 +11,8 @@ Resources\Netch.ico x64 false + win-x64 + false latest false enable @@ -36,10 +38,6 @@ false - - - - @@ -62,8 +60,19 @@ + + true + false + false + false + + + + + true + @@ -96,14 +105,12 @@ Settings.Designer.cs + - - - diff --git a/Netch/PostBuild.bat b/Netch/PostBuild.bat deleted file mode 100644 index 4782bf4a..00000000 --- a/Netch/PostBuild.bat +++ /dev/null @@ -1,20 +0,0 @@ -if %Configuration%==Release if %TargetFramework%==net48 ( -:: Merge dlls -%ILMergeConsolePath% /wildcards /out:%TargetDir%Netch.exe ^ -/lib:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319" ^ -/targetplatform:v4,"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8" ^ -%TargetDir%Netch.exe ^ -%TargetDir%*.dll - -DEL /f %TargetDir%*.dll >NUL 2>&1 -) - -if %Configuration%==Release ( -DEL /f %TargetDir%*.config >NUL 2>&1 -DEL /f %TargetDir%*.pdb >NUL 2>&1 -) - -RD /s /Q %TargetDir%x86 >NUL 2>&1 -RD /s /Q %TargetDir%de %TargetDir%es %TargetDir%fr %TargetDir%it %TargetDir%pl %TargetDir%ru %TargetDir%zh-CN >NUL 2>&1 - -exit 0 \ No newline at end of file diff --git a/PUBLISH.ps1 b/PUBLISH.ps1 index 8df58b6e..89643b97 100644 --- a/PUBLISH.ps1 +++ b/PUBLISH.ps1 @@ -1,12 +1,7 @@ Write-Host 'Building' dotnet publish -c "Release" ` - -p:Platform="x64" ` - -p:PublishSingleFile=true ` - -p:RuntimeIdentifier=win-x64 ` - -p:SolutionDir="$pwd\" ` -o Netch\bin\Publish\ ` - --no-self-contained ` Netch\Netch.csproj if ($LASTEXITCODE) { exit $LASTEXITCODE }