From 9a01d63fb096f4b9cec42b785ea5d88f47e15b86 Mon Sep 17 00:00:00 2001 From: payetools <143715134+payetools@users.noreply.github.com> Date: Wed, 11 Sep 2024 15:48:31 +0200 Subject: [PATCH] build: repaired build scripts --- build.cmd | 1 - build/scripts/build.ps1 => build.ps1 | 9 ++++----- 2 files changed, 4 insertions(+), 6 deletions(-) rename build/scripts/build.ps1 => build.ps1 (90%) diff --git a/build.cmd b/build.cmd index 29b7ab4..6d78c42 100755 --- a/build.cmd +++ b/build.cmd @@ -4,5 +4,4 @@ :; exit $? @ECHO OFF - powershell -ExecutionPolicy ByPass -NoProfile -File "%~dp0build.ps1" %* diff --git a/build/scripts/build.ps1 b/build.ps1 similarity index 90% rename from build/scripts/build.ps1 rename to build.ps1 index 2fb61e3..3e94fae 100644 --- a/build/scripts/build.ps1 +++ b/build.ps1 @@ -8,16 +8,15 @@ Write-Output "PowerShell $($PSVersionTable.PSEdition) version $($PSVersionTable. Set-StrictMode -Version 2.0; $ErrorActionPreference = "Stop"; $ConfirmPreference = "None"; trap { Write-Error $_ -ErrorAction Continue; exit 1 } $PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent -$SolutionRoot = (Get-Item $PSScriptRoot).Parent.Parent.FullName -Write-Output $SolutionRoot + ########################################################################### # CONFIGURATION ########################################################################### -$BuildProjectFile = "$SolutionRoot\build\_build.csproj" -$TempDirectory = "$SolutionRoot\\.nuke\temp" +$BuildProjectFile = "$PSScriptRoot\build\_build.csproj" +$TempDirectory = "$PSScriptRoot\\.nuke\temp" -$DotNetGlobalFile = "$SolutionRoot\\global.json" +$DotNetGlobalFile = "$PSScriptRoot\\global.json" $DotNetInstallUrl = "https://dot.net/v1/dotnet-install.ps1" $DotNetChannel = "STS"