diff options
| author | A2va <[email protected]> | 2023-10-10 13:02:58 +0200 |
|---|---|---|
| committer | A2va <[email protected]> | 2023-10-10 13:02:58 +0200 |
| commit | 49bd16c9a64f60b8fb36c0ffeb7812759cff314f (patch) | |
| tree | 8c3be80390cc888f4304f0042cd6b26ed95dc8f2 /scripts/srcenv.ps1 | |
| parent | 09998f98aa1fc8d5d2c3ce9762400c309b51b972 (diff) | |
Improve powershell script and fix lua debug
Diffstat (limited to 'scripts/srcenv.ps1')
| -rw-r--r-- | scripts/srcenv.ps1 | 9 |
1 files changed, 5 insertions, 4 deletions
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 |
