forked from shaynevanasperen/Quarks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pt.bat
21 lines (21 loc) · 931 Bytes
/
pt.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
@echo off
powershell -NoProfile -ExecutionPolicy Unrestricted -Command ^
$ErrorActionPreference = 'Stop'; ^
if (!(Get-Command NuGet -ErrorAction SilentlyContinue) -and !(Test-Path '.\.nuget\NuGet.exe')) { ^
Write-Host 'Downloading NuGet.exe'; ^
(New-Object system.net.WebClient).DownloadFile('https://www.nuget.org/nuget.exe', '.nuget\NuGet.exe'); ^
} ^
if (Test-Path '.\.nuget\NuGet.exe') { ^
Set-Alias NuGet (Resolve-Path .nuget\NuGet.exe); ^
} ^
Write-Host 'Restoring NuGet packages'; ^
NuGet restore; ^
. '.\packages\PowerTasks.1.0.0\Functions.ps1'; ^
$basePath = Resolve-Path .; ^
Set-Location '.\Quarks'; ^
$basePath = Split-Path (Split-Path (Resolve-Path $basePath -Relative)); ^
$projectName = 'Quarks'; ^
$packagesPath = '..\packages'; ^
$invokeBuildPath = Get-RequiredPackagePath Invoke-Build $basePath\.nuget; ^
& $invokeBuildPath\tools\Invoke-Build.ps1 %* -File .Tasks.ps1;
exit /b %ERRORLEVEL%