Skip to content

Commit b18b77d

Browse files
authored
Update build.yaml
1 parent be161cb commit b18b77d

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

.github/workflows/build.yaml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -126,18 +126,14 @@ jobs:
126126
with:
127127
python-version: '3.13'
128128

129-
- name: launcher wrapper
129+
- name: Create py.exe
130130
if: matrix.config.name == 'windows'
131131
shell: powershell
132132
run: |
133-
@'
134-
@echo off
135-
setlocal
136-
set "args=%*"
137-
set "args=%args:-3=%"
138-
python %args%
139-
'@ | Out-File -FilePath "$env:TEMP\py.cmd" -Encoding ASCII
140-
echo "$env:TEMP" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
133+
$pythonPath = (Get-Command python).Source
134+
$pyPath = Join-Path (Split-Path $pythonPath) "py.exe"
135+
Copy-Item $pythonPath $pyPath
136+
echo (Split-Path $pythonPath) | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
141137
142138
- name: Update submodule
143139
run: |

0 commit comments

Comments
 (0)