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

Commit 5979116

Browse files
committed
Package files in build script
1 parent 123af60 commit 5979116

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
Output
2+
13
## Ignore Visual Studio temporary files, build results, and
24
## files generated by popular Visual Studio add-ons.
35
##

Build.ps1

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,13 @@ if ($LASTEXITCODE -ne 0) {
88
dotnet publish -c Release -r win-x64
99
if ($LASTEXITCODE -ne 0) {
1010
Write-Error "Build failed for win-64"
11-
}
11+
}
12+
13+
if (!(Test-Path ./Output/)) {
14+
New-Item -ItemType Directory ./Output/ | Out-Null
15+
}
16+
17+
Get-ChildItem ./Output/ | Remove-Item
18+
19+
Compress-Archive -Path ./TzspPacketStreamExporter/bin/Release/netcoreapp3.1/linux-x64/publish/* -DestinationPath ./Output/linux-x64.zip
20+
Compress-Archive -Path ./TzspPacketStreamExporter/bin/Release/netcoreapp3.1/win-x64/publish/* -DestinationPath ./Output/win-x64.zip

0 commit comments

Comments
 (0)