Skip to content

Commit 434b0d3

Browse files
committed
Fix build script
1 parent 8f46f56 commit 434b0d3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/Build-WeChatFerry.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,22 +64,22 @@ jobs:
6464
.\vcpkg\bootstrap-vcpkg.bat
6565
6666
# 设置 VCPKG_ROOT 环境变量
67-
setx VCPKG_ROOT "C:/Tools/vcpkg" /M
6867
echo "VCPKG_ROOT=C:/Tools/vcpkg" >> $GITHUB_ENV
68+
$env:VCPKG_ROOT = 'C:/Tools/vcpkg'
69+
70+
# 将 vcpkg 与 Visual Studio 集成
71+
C:/Tools/vcpkg/vcpkg integrate install
6972
7073
# 返回到项目目录并安装依赖
7174
cd ${{ github.workspace }}
72-
vcpkg install --triplet x64-windows
73-
74-
# 将 vcpkg 与 Visual Studio 集成
75-
vcpkg integrate install
75+
C:/Tools/vcpkg/vcpkg install --triplet x64-windows-static
7676
7777
- name: 解析并构建配置
7878
run: |
7979
$configurations = "Release,Debug".Split(',')
8080
foreach ($config in $configurations) {
8181
Write-Host "Building configuration: $config"
82-
msbuild WeChatFerry/WeChatFerry.sln /p:Configuration=$config /p:Platform="x64" /verbosity:minimal
82+
msbuild WeChatFerry/WeChatFerry.sln /p:Configuration=$config /p:Platform="x64" /p:VcpkgTriplet="x64-windows-static" /p:VcpkgEnableManifest=true /verbosity:minimal
8383
}
8484
shell: pwsh
8585

0 commit comments

Comments
 (0)