-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbuild.ps1
More file actions
executable file
·14 lines (14 loc) · 778 Bytes
/
build.ps1
File metadata and controls
executable file
·14 lines (14 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Param([ValidateSet("x86","x64")][String] $Platform = "x64")
$ErrorActionPreference = "Stop"
& ${env:ProgramFiles(x86)}\Microsoft` Visual` Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe .\VS2019\pvr.epgstation.sln /t:Clean,Build /p:Configuration=Release /p:Platform=$Platform
New-Item dist -Force -ItemType Directory
Copy-Item -r .\template\pvr.epgstation .\dist\
Copy-Item .\ChangeLog.txt .\dist\pvr.epgstation
Copy-Item .\LICENSE .\dist\pvr.epgstation
If($Platform -eq "x86"){
Copy-Item .\VS2019\Release\pvr.epgstation-x32.dll .\dist\pvr.epgstation\
}Else{
Copy-Item .\VS2019\x64\Release\pvr.epgstation.dll .\dist\pvr.epgstation
}
Set-Location .\dist
Compress-Archive -Force -CompressionLevel NoCompression -Path .\pvr.epgstation -DestinationPath ..\pvr.epgstation.zip