Skip to content

Commit 4a33aa5

Browse files
committed
update:msbuild.yml
1 parent 47425c7 commit 4a33aa5

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

.github/workflows/msbuild.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -58,22 +58,14 @@ jobs:
5858
Write-Host "Latest Tag: $latest_tag"
5959
6060
$url = "https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_Windows_x86-32.zip"
61-
Write-Host "Url: $url"
62-
63-
try {
64-
# Download the ZIP file
65-
Invoke-WebRequest -Uri $url -OutFile "XEngine_Windows_x86-32.zip"
66-
Write-Host "File downloaded successfully."
67-
} catch {
68-
Write-Host "Download failed: $_"
69-
exit 1
70-
}
61+
Invoke-WebRequest -Uri $url -OutFile "XEngine_Windows_x86-32.zip"
7162
ls
72-
Expand-Archive -Path ./XEngine_Windows_x86-32.zip -DestinationPath ./XEngine_Windows_x86-32 -Force
73-
ls XEngine_Windows_x86-32
63+
Expand-Archive -Path ./XEngine_Windows_x86-32.zip -DestinationPath ./XEngine_Windows -Force
64+
ls XEngine_Windows/
65+
ls XEngine_Windows/XEngine_Include
7466

75-
echo "XENGINE_INCLUDE=${{ github.workspace }}/XEngine_Windows_x86-32" | Out-File -FilePath $env:GITHUB_ENV -Append
76-
echo "XENGINE_LIB32=${{ github.workspace }}/XEngine_Windows_x86-32/XEngine_Windows" | Out-File -FilePath $env:GITHUB_ENV -Append
67+
echo "XENGINE_INCLUDE=${{ github.workspace }}/XEngine_Windows" | Out-File -FilePath $env:GITHUB_ENV -Append
68+
echo "XENGINE_LIB32=${{ github.workspace }}/XEngine_Windows/XEngine_Windows" | Out-File -FilePath $env:GITHUB_ENV -Append
7769
shell: pwsh
7870

7971
# 配置 MSBuild 的路径,准备构建 VC++ 项目

0 commit comments

Comments
 (0)