fix(ci): use sln_platform (x86/x64) for OffsetFinder exe output path

The vcxproj has no custom OutDir so MSBuild uses the default: Platform\Config\.
When building via .sln with /p:Platform=x86 the platform value propagated to
the vcxproj is 'x86' (the CLI override wins over the solution's Win32 mapping),
so the exe lands in x86\Release\, not Win32\Release\.

- build-offsetfinder.yml: finder_plat: Win32 -> x86
- build-and-release.yml: exeSrc path uses SlnPlatform (x86) not Platform (Win32)

Zydis.vcxproj is still invoked directly with Platform=Win32 - unchanged.
pull/4062/head
Simon Jackson 1 month ago
parent 32c9200216
commit 2ab4868136

@ -132,8 +132,9 @@ jobs:
/v:minimal /v:minimal
$arch = $cfg.Arch $arch = $cfg.Arch
# .sln build outputs to SolutionDir/<Platform>/Release/ (not <ProjectDir>/<Platform>/Release/) # .sln build outputs to SolutionDir/<SlnPlatform>/Release/ where SlnPlatform is x86/x64
$exeSrc = "src-csharp/RDPOffsetFinder/$($cfg.Platform)/Release/RDPWrapOffsetFinder.exe" # (solution GlobalSection maps x86->Win32 internally, but $(Platform) seen by vcxproj is x86)
$exeSrc = "src-csharp/RDPOffsetFinder/$($cfg.SlnPlatform)/Release/RDPWrapOffsetFinder.exe"
$dllSrc = "src-csharp/RDPOffsetFinder/zydis/msvc/bin/$($cfg.ZydisBin)/Zydis.dll" $dllSrc = "src-csharp/RDPOffsetFinder/zydis/msvc/bin/$($cfg.ZydisBin)/Zydis.dll"
Copy-Item $exeSrc ".\RDPWrapOffsetFinder_$arch.exe" Copy-Item $exeSrc ".\RDPWrapOffsetFinder_$arch.exe"
Copy-Item $dllSrc ".\Zydis_$arch.dll" Copy-Item $dllSrc ".\Zydis_$arch.dll"

@ -34,7 +34,7 @@ jobs:
sln_platform: x86 sln_platform: x86
zydis_cfg: "Release MD DLL" zydis_cfg: "Release MD DLL"
zydis_bin: ReleaseX86 zydis_bin: ReleaseX86
finder_plat: Win32 finder_plat: x86
steps: steps:
- name: Checkout repository (with submodules) - name: Checkout repository (with submodules)

Loading…
Cancel
Save