fix(windows): improve Windows build setup and DLL handling

- Add .exe extension to target-suffixed daemon binary on Windows
- Auto-copy DLLs from apps/.deps/bin to target/debug and target/release
- Add PATH env var for Windows in dev-with-daemon.ts so daemon finds DLLs
- Run cargo xtask setup automatically at end of setup.ps1

These changes fix DLL_NOT_FOUND errors when running the Tauri app or
daemon on Windows by ensuring native dependency DLLs are discoverable.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Jamie Pine
2025-12-29 07:48:45 -08:00
parent 544f4ef063
commit a45490acf2
3 changed files with 59 additions and 5 deletions

View File

@@ -256,6 +256,17 @@ if ($LASTEXITCODE -ne 0) {
Exit-WithError "Something went wrong, exit code: $LASTEXITCODE"
}
# Run xtask setup to download native dependencies and configure cargo
if (-not $env:CI) {
Write-Host
Write-Host 'Running cargo xtask setup to download native dependencies...' -ForegroundColor Yellow
Set-Location $projectRoot
cargo xtask setup
if ($LASTEXITCODE -ne 0) {
Exit-WithError 'Failed to run cargo xtask setup'
}
}
if (-not $env:CI) {
Write-Host
Write-Host 'Your machine has been setup for Spacedrive development!' -ForegroundColor Green