发布

  • fix(release): unbreak Windows build + harden Linux apt step

    frostbyte_neo 发布于 2026-05-05 08:04:17 +00:00

    PR #646 imported MessageBeep from windows::Win32::UI::WindowsAndMessaging,
    but in windows crate 0.60 the function lives at
    windows::Win32::System::Diagnostics::Debug::MessageBeep and now takes a
    typed MESSAGEBOX_STYLE returning Result<()>. The wrong import broke
    every Windows build (Test, npm wrapper smoke, and the windows-msvc release
    matrix entry). Fix the import path, enable the Win32_System_Diagnostics_Debug
    feature, pass MESSAGEBOX_STYLE(0) for MB_OK, and discard the Result.

    The v0.8.12 release also tripped on a transient apt-get update mirror
    sync error on the ubuntu-24.04-arm runner, cascading via fail-fast. Wrap
    every apt-get update in CI/release with a 5-attempt retry so flaky
    ports.ubuntu.com mirrors no longer take down the binary matrix.

    Verified: cargo check --target x86_64-pc-windows-gnu compiles cleanly.

    Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

    下载附件