diff options
| author | ruki <[email protected]> | 2023-10-10 19:51:19 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-10-10 19:51:19 +0800 |
| commit | cfb5ce758e5ffd7bcc41d09fafa9d5be3604c7a8 (patch) | |
| tree | 04588d8f6116fb8a08fd01972e8c4961adc15e37 | |
| parent | c6cf794999692c3b826ceca808bfc68d9251fba9 (diff) | |
| parent | 49bd16c9a64f60b8fb36c0ffeb7812759cff314f (diff) | |
Merge pull request #4272 from A2va/improve-ps-script
Improve powershell script and fix lua debug
| -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 |
