From 71bbd9d36903703005f709fd1a8506c89edb053f Mon Sep 17 00:00:00 2001 From: n3wjack Date: Tue, 5 Jul 2022 20:55:58 +0200 Subject: [PATCH] Switch build script to Powershell. --- ImapCleanup.sln | 1 + build.cmd | 9 --------- build.ps1 | 8 ++++++++ 3 files changed, 9 insertions(+), 9 deletions(-) delete mode 100644 build.cmd create mode 100644 build.ps1 diff --git a/ImapCleanup.sln b/ImapCleanup.sln index 172c424..2f99ed8 100644 --- a/ImapCleanup.sln +++ b/ImapCleanup.sln @@ -5,6 +5,7 @@ VisualStudioVersion = 17.2.32616.157 MinimumVisualStudioVersion = 10.0.40219.1 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{55A440C3-3218-433A-BD4F-820D0B5E2F7B}" ProjectSection(SolutionItems) = preProject + build.ps1 = build.ps1 LICENSE.txt = LICENSE.txt Readme.md = Readme.md EndProjectSection diff --git a/build.cmd b/build.cmd deleted file mode 100644 index e7d4e45..0000000 --- a/build.cmd +++ /dev/null @@ -1,9 +0,0 @@ -@echo off - -echo. -echo **** Building self-contained winx64 exectable. **** -echo. - -dotnet publish -p:PublishSingleFile=true -r win-x64 -c Release --self-contained true -p:PublishTrimmed=true - -echo **** Executable can be found in \bin\Release\net6.0\win-x64\publish\ **** diff --git a/build.ps1 b/build.ps1 new file mode 100644 index 0000000..f53200c --- /dev/null +++ b/build.ps1 @@ -0,0 +1,8 @@ +Write-Host "`n*** Building self-contained winx64 exectable. ***`n" -ForegroundColor Cyan + +cd ImapCleanup +dotnet publish -p:PublishSingleFile=true -r win-x64 -c Release --self-contained true -p:PublishTrimmed=true + +cd bin\Release\net6.0\win-x64\publish + +ls *.exe