-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to .NET 8 and upgraded the MailKit package. Extended the build script to do both builds, create the zip packages, and fix an issue with trimming and the DragonFruit package.
- Loading branch information
Showing
4 changed files
with
50 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,44 @@ | ||
$version = "2.0.1" | ||
|
||
Write-Host "`n*** Building self-contained winx64 exectable. ***`n" -ForegroundColor Cyan | ||
|
||
pushd | ||
|
||
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 | ||
Write-Host "Run regular build...." -ForegroundColor Cyan | ||
dotnet publish | ||
|
||
Write-Host "Run self-contained build..." -ForegroundColor Cyan | ||
dotnet publish -p:PublishSingleFile=true -r win-x64 -c Release --self-contained true -p:PublishTrimmed=true -p:TrimMode=partial | ||
|
||
|
||
Write-Host "Create archive regular build..." -ForegroundColor Cyan | ||
pushd | ||
cd bin\Release\net8.0\publish\ | ||
7z a "ImapCleanup-$version.zip" *.* | ||
|
||
Write-Host "Smoke test" -ForegroundColor Cyan | ||
|
||
# Run the exe, see if it shows the help info. | ||
.\ImapCleanup.exe /? | ||
.\ImapCleanup.exe --version | ||
|
||
popd | ||
|
||
Write-Host "Create archive for self contained build..." -ForegroundColor Cyan | ||
pushd | ||
cd bin\Release\net8.0\win-x64\publish | ||
7z a "ImapCleanup-$version-Windowsx64-self-contained.zip" ImapCleanup.exe | ||
|
||
Write-Host "Smoke test" -ForegroundColor Cyan | ||
|
||
# Run the exe, see if it shows the help info. | ||
.\ImapCleanup.exe /? | ||
.\ImapCleanup.exe --version | ||
|
||
popd | ||
|
||
ls *.exe | ||
popd | ||
Write-Host "Moving archives to current directory..." -ForegroundColor Cyan | ||
ls *.zip -r | % { move $_ . } |