mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-04 10:02:40 +01:00
added poweshell script to package osx app
This commit is contained in:
parent
e1f33d2a47
commit
09138754cc
18
build.ps1
18
build.ps1
@ -2,6 +2,7 @@ $msBuild = 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe'
|
|||||||
$outputFolder = '.\_output'
|
$outputFolder = '.\_output'
|
||||||
$outputFolderMono = '.\_output_mono'
|
$outputFolderMono = '.\_output_mono'
|
||||||
$outputFolderOsx = '.\_output_osx'
|
$outputFolderOsx = '.\_output_osx'
|
||||||
|
$outputFolderOsxApp = '.\_output_osx_app'
|
||||||
$testPackageFolder = '.\_tests\'
|
$testPackageFolder = '.\_tests\'
|
||||||
$testSearchPattern = '*.Test\bin\x86\Release'
|
$testSearchPattern = '*.Test\bin\x86\Release'
|
||||||
$sourceFolder = '.\src'
|
$sourceFolder = '.\src'
|
||||||
@ -154,6 +155,22 @@ Function PackageOsx()
|
|||||||
Write-Host "##teamcity[progressFinish 'Creating OS X Package']"
|
Write-Host "##teamcity[progressFinish 'Creating OS X Package']"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Function PackageOsxApp()
|
||||||
|
{
|
||||||
|
Write-Host "##teamcity[progressStart 'Creating OS X App Package']"
|
||||||
|
|
||||||
|
if(Test-Path $outputFolderOsxApp)
|
||||||
|
{
|
||||||
|
Remove-Item -Recurse -Force $outputFolderOsxApp -ErrorAction Continue
|
||||||
|
}
|
||||||
|
|
||||||
|
Copy-Item .\osx-app $outputFolderOsxApp\ -recurse
|
||||||
|
Copy-Item $outputFolderOsx\* $outputFolderOsxApp\Sonarr.app\MacOS -recurse
|
||||||
|
|
||||||
|
Write-Host "##teamcity[progressFinish 'Creating OS X App Package']"
|
||||||
|
}
|
||||||
|
|
||||||
Function AddJsonNet()
|
Function AddJsonNet()
|
||||||
{
|
{
|
||||||
get-childitem $outputFolder -File -Filter Newtonsoft.Json.* -Recurse | foreach ($_) {remove-item $_.fullname}
|
get-childitem $outputFolder -File -Filter Newtonsoft.Json.* -Recurse | foreach ($_) {remove-item $_.fullname}
|
||||||
@ -235,5 +252,6 @@ Build
|
|||||||
RunGulp
|
RunGulp
|
||||||
PackageMono
|
PackageMono
|
||||||
PackageOsx
|
PackageOsx
|
||||||
|
PackageOsxApp
|
||||||
PackageTests
|
PackageTests
|
||||||
CleanupWindowsPackage
|
CleanupWindowsPackage
|
||||||
|
Loading…
Reference in New Issue
Block a user