mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
creating powershell build and package script
This commit is contained in:
parent
a221994cd7
commit
3b22c087c6
22 changed files with 236 additions and 232 deletions
32
build.ps1
Normal file
32
build.ps1
Normal file
|
@ -0,0 +1,32 @@
|
|||
$msBuild = 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe'
|
||||
$outputFolder = '.\_output'
|
||||
|
||||
Function Build()
|
||||
{
|
||||
|
||||
|
||||
$clean = $msbuild + " nzbdrone.sln /t:Clean /m"
|
||||
$build = $msbuild + " nzbdrone.sln /p:Configuration=Release /p:Platform=x86 /t:Build"
|
||||
|
||||
if(Test-Path $outputFolder)
|
||||
{
|
||||
Remove-Item -Recurse -Force $outputFolder -ErrorAction Continue
|
||||
}
|
||||
|
||||
|
||||
Invoke-Expression $clean
|
||||
Invoke-Expression $build
|
||||
}
|
||||
|
||||
Function Package()
|
||||
{
|
||||
Write-Host Removing XMLDoc files
|
||||
get-childitem $outputFolder -include *.xml -recurse | foreach ($_) {remove-item $_.fullname}
|
||||
|
||||
Write-Host Removing FluentValidation.resources
|
||||
get-childitem $outputFolder -include FluentValidation.resources.dll -recurse | foreach ($_) {remove-item $_.fullname}
|
||||
}
|
||||
|
||||
|
||||
Build
|
||||
Package
|
Loading…
Add table
Add a link
Reference in a new issue