-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.ps1
27 lines (19 loc) · 818 Bytes
/
build.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
dotnet restore
dotnet publish -c Release -o temp
# if error is not 0, exit in powershell
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
# create a folder if it doesn't exist named "build"
if (!(Test-Path build)) {
New-Item -ItemType Directory -Force -Path build
}
# remove existing files inside build
Remove-Item build/* -Recurse
Move-Item temp/OTD.EnhancedOutputMode.dll build/OTD.EnhancedOutputMode.dll
Move-Item temp/OTD.EnhancedOutputMode.pdb build/OTD.EnhancedOutputMode.pdb
Move-Item temp/OTD.EnhancedOutputMode.Lib.dll build/OTD.EnhancedOutputMode.Lib.dll
Move-Item temp/OTD.EnhancedOutputMode.Lib.pdb build/OTD.EnhancedOutputMode.Lib.pdb
Move-Item temp/VMulti.dll build/VMulti.dll
Move-Item temp/VMulti.pdb build/VMulti.pdb
Set-Location ./build
7z a -r OTD.EnhancedOutputMode.zip *
Set-Location ..