Skip to content
This repository has been archived by the owner on Feb 20, 2022. It is now read-only.

Commit

Permalink
Package files in build script
Browse files Browse the repository at this point in the history
  • Loading branch information
sandersaares committed Jan 28, 2020
1 parent 123af60 commit 5979116
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
Output

## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
##
Expand Down
11 changes: 10 additions & 1 deletion Build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,13 @@ if ($LASTEXITCODE -ne 0) {
dotnet publish -c Release -r win-x64
if ($LASTEXITCODE -ne 0) {
Write-Error "Build failed for win-64"
}
}

if (!(Test-Path ./Output/)) {
New-Item -ItemType Directory ./Output/ | Out-Null
}

Get-ChildItem ./Output/ | Remove-Item

Compress-Archive -Path ./TzspPacketStreamExporter/bin/Release/netcoreapp3.1/linux-x64/publish/* -DestinationPath ./Output/linux-x64.zip
Compress-Archive -Path ./TzspPacketStreamExporter/bin/Release/netcoreapp3.1/win-x64/publish/* -DestinationPath ./Output/win-x64.zip

0 comments on commit 5979116

Please sign in to comment.