mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-06-22 22:39:52 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user