Skip to content

Commit 842b53d

Browse files
fix(windows): resolve crash-on-launch and signing pipeline issues
- fix(media_keys): extract real HWND from Tauri main window for souvlaki SMTC registration; souvlaki panics (not errors) on Windows when hwnd is None, causing a 0xC0000409 FAST_FAIL_FATAL_APP_EXIT crash at startup - fix(build): replace ConvertTo-SecureString with .NET SecureString loop to avoid dependency on Microsoft.PowerShell.Security auto-loading - fix(build): set signCommand as {cmd, args} object with cmd /C wrapper; .cmd batch files cannot be launched directly via CreateProcess, and the object form is required to place %1 in args for Tauri path substitution - docs(builds): document scripts/build.ps1 local Windows build workflow Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 9b5d9ba commit 842b53d

6 files changed

Lines changed: 3350 additions & 18 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/mt-tauri/Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ default = ["mcp"]
7979
devtools = ["dep:tauri-plugin-devtools", "tauri/devtools"]
8080
mcp = ["dep:tauri-plugin-mcp-bridge"]
8181

82+
[target.'cfg(target_os = "windows")'.dependencies]
83+
# Required to extract the HWND from the Tauri window for souvlaki SMTC registration.
84+
# souvlaki panics on Windows if PlatformConfig.hwnd is None.
85+
raw-window-handle = "0.6"
86+
8287
[target.'cfg(target_os = "macos")'.dependencies]
8388
objc2 = "0.6"
8489
objc2-app-kit = { version = "0.3", features = ["NSOpenPanel", "NSSavePanel", "NSApplication", "NSRunningApplication"] }

0 commit comments

Comments
 (0)