From 49bd16c9a64f60b8fb36c0ffeb7812759cff314f Mon Sep 17 00:00:00 2001 From: A2va <49582555+A2va@users.noreply.github.com> Date: Tue, 10 Oct 2023 13:02:58 +0200 Subject: Improve powershell script and fix lua debug --- scripts/srcenv.ps1 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'scripts/srcenv.ps1') diff --git a/scripts/srcenv.ps1 b/scripts/srcenv.ps1 index 4c973ca51..944c6394c 100644 --- a/scripts/srcenv.ps1 +++ b/scripts/srcenv.ps1 @@ -1,5 +1,6 @@ -$script_dir = Split-Path $MyInvocation.MyCommand.Path -$env:PATH = "$script_dir\..\core\build;$pwd;$env:PATH" -$env:XMAKE_PROGRAM_DIR = "$script_dir\..\xmake" -Set-Location "$script_dir\.." +$xmake_root = (Split-Path $PSScriptRoot -Parent) +$env:PATH = "$xmake_root\core\build;$pwd;$env:PATH" +$env:XMAKE_PROGRAM_FILE = "$xmake_root\core\build\xmake.exe" +$env:XMAKE_PROGRAM_DIR = "$xmake_root\xmake" +Set-Location "$xmake_root" Start-Process powershell \ No newline at end of file -- cgit v1.3.1