mirror of
https://github.com/Radarr/Radarr.git
synced 2024-10-05 15:47:20 +02:00
Fixed: Pin cake and addin versions
This commit is contained in:
parent
59a176f03b
commit
731c9acd94
5
.gitignore
vendored
5
.gitignore
vendored
@ -148,8 +148,9 @@ _temp_*/**/*
|
|||||||
Thumbs.db
|
Thumbs.db
|
||||||
|
|
||||||
# AppVeyor
|
# AppVeyor
|
||||||
/tools-cake/
|
/tools/cake/
|
||||||
/_artifacts/
|
/_artifacts/
|
||||||
|
|
||||||
# Cake
|
# Cake
|
||||||
/tools/Addins/*
|
/tools/Addins/*
|
||||||
|
packages.config.md5sum
|
@ -1,6 +1,6 @@
|
|||||||
#addin "Cake.Npm"
|
#addin nuget:?package=Cake.Npm&version=0.12.1
|
||||||
#addin "SharpZipLib"
|
#addin nuget:?package=SharpZipLib&version=0.86.0
|
||||||
#addin "Cake.Compression"
|
#addin nuget:?package=Cake.Compression&version=0.1.4
|
||||||
|
|
||||||
// Build variables
|
// Build variables
|
||||||
var outputFolder = "./_output";
|
var outputFolder = "./_output";
|
||||||
|
@ -81,8 +81,8 @@ if(!$PSScriptRoot){
|
|||||||
$PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent
|
$PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent
|
||||||
}
|
}
|
||||||
|
|
||||||
$TOOLS_DIR = Join-Path $PSScriptRoot "tools-cake"
|
$TOOLS_DIR = Join-Path $PSScriptRoot "tools"
|
||||||
$NUGET_EXE = Join-Path $TOOLS_DIR "nuget.exe"
|
$NUGET_EXE = Join-Path $TOOLS_DIR "nuget/nuget.exe"
|
||||||
$CAKE_EXE = Join-Path $TOOLS_DIR "Cake/Cake.exe"
|
$CAKE_EXE = Join-Path $TOOLS_DIR "Cake/Cake.exe"
|
||||||
$NUGET_URL = "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe"
|
$NUGET_URL = "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe"
|
||||||
$PACKAGES_CONFIG = Join-Path $TOOLS_DIR "packages.config"
|
$PACKAGES_CONFIG = Join-Path $TOOLS_DIR "packages.config"
|
||||||
@ -156,7 +156,12 @@ if(-Not $SkipToolPackageRestore.IsPresent) {
|
|||||||
if((!(Test-Path $PACKAGES_CONFIG_MD5)) -Or
|
if((!(Test-Path $PACKAGES_CONFIG_MD5)) -Or
|
||||||
($md5Hash -ne (Get-Content $PACKAGES_CONFIG_MD5 ))) {
|
($md5Hash -ne (Get-Content $PACKAGES_CONFIG_MD5 ))) {
|
||||||
Write-Verbose -Message "Missing or changed package.config hash..."
|
Write-Verbose -Message "Missing or changed package.config hash..."
|
||||||
Remove-Item * -Recurse -Exclude packages.config,nuget.exe
|
Get-ChildItem -Path $TOOLS_DIR -Recurse -Exclude packages.config |
|
||||||
|
Select -ExpandProperty FullName |
|
||||||
|
Where {$_ -notlike (Join-Path $TOOLS_DIR "pdb2mdb*")} |
|
||||||
|
Where {$_ -notlike (Join-Path $TOOLS_DIR "nuget*")} |
|
||||||
|
sort length -Descending |
|
||||||
|
Remove-Item -Recurse
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Verbose -Message "Restoring tools from NuGet..."
|
Write-Verbose -Message "Restoring tools from NuGet..."
|
||||||
@ -180,5 +185,5 @@ if (!(Test-Path $CAKE_EXE)) {
|
|||||||
|
|
||||||
# Start Cake
|
# Start Cake
|
||||||
Write-Host "Running build script..."
|
Write-Host "Running build script..."
|
||||||
Invoke-Expression "& `"$CAKE_EXE`" `"$Script`" -settings_skipverification=true -target=`"$Target`" -configuration=`"$Configuration`" -verbosity=`"$Verbosity`" $UseMono $UseDryRun $UseExperimental $ScriptArgs"
|
Invoke-Expression "& `"$CAKE_EXE`" `"$Script`" -target=`"$Target`" -configuration=`"$Configuration`" -verbosity=`"$Verbosity`" $UseMono $UseDryRun $UseExperimental $ScriptArgs"
|
||||||
exit $LASTEXITCODE
|
exit $LASTEXITCODE
|
||||||
|
4
tools/packages.config
Normal file
4
tools/packages.config
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<packages>
|
||||||
|
<package id="Cake" version="0.25.0" />
|
||||||
|
</packages>
|
Loading…
Reference in New Issue
Block a user