diff --git a/Build-Release.ps1 b/Build-Release.ps1 index af15195a..8fa7937d 100644 --- a/Build-Release.ps1 +++ b/Build-Release.ps1 @@ -17,6 +17,9 @@ try { # Link this invocation directly into private staging; never copy a generic cache EXE. & cargo rustc --release --locked --target x86_64-pc-windows-msvc --target-dir $TargetDirectory -p skate-game --bin skate3rust --no-default-features -- -C extra-filename= -o "$stage/skate3rust.exe" -C "link-arg=/PDB:$symbols/skate3rust.pdb" if ($LASTEXITCODE -ne 0) { throw 'Release compilation failed' } + # rustc also emits a dep-info file beside -o; it contains local source paths. + $depInfo = Join-Path $stage 'skate3rust.d' + if (Test-Path -LiteralPath $depInfo) { Remove-Item -LiteralPath $depInfo } New-Item -ItemType Directory -Path target/native -Force | Out-Null & rustc --edition 2024 --crate-type cdylib -C opt-level=3 -C panic=abort -C target-feature=+crt-static tools/asset_pipeline/refpack_native.rs -o target/native/refpack.dll if ($LASTEXITCODE -ne 0) { throw 'Native converter compilation failed' }