Skip to content

fix(desktop): sync release-pipeline fixes into main - #38

Merged
huyplb merged 3 commits into
mainfrom
release/v0.1.0
Jul 6, 2026
Merged

fix(desktop): sync release-pipeline fixes into main#38
huyplb merged 3 commits into
mainfrom
release/v0.1.0

Conversation

@huyplb

@huyplb huyplb commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Summary

PR #37 merged this branch partway through — before the last two fixes landed. main currently still has both bugs that broke the v0.1.0 desktop build on every platform:

  • apps/desktop/src-tauri/src/lib.rs: still calls rand::thread_rng() / imports rand::RngCore, which don't exist in the rand 0.10.x that's now pinned (including the separate Dependabot bump to 0.10.2 that merged via chore(deps): Bump rand from 0.10.1 to 0.10.2 in /apps/desktop/src-tauri #30). Fixed to use rand::rng() + the RngExt trait's .fill().
  • apps/desktop/package.json: build:frontend set an env var with POSIX-only syntax (VITE_EDITION=community vite build ...), which fails on Windows (cmd.exe can't parse it). Wrapped with cross-env.

Both are exactly what made the actual v0.1.0 release (tag pushed separately, already published) fail to build on every platform until fixed. Without this PR, the next tagged release from main would hit the identical failures.

Test plan

  • cargo check and a full local cargo build --release against the actual resolved rand version — clean.
  • npm run build:frontend locally — builds correctly with cross-env.
  • Confirmed via the real CI run for v0.1.0: Windows, Ubuntu, and macOS (both archs) all built successfully once these fixes were in place.

huyplb and others added 3 commits July 6, 2026 12:58
A prior dependabot bump (ff189ac) took rand 0.8.6 -> 0.10.1 in
Cargo.toml without updating the two call sites, silently breaking the
desktop build on every platform (never caught because no tagged
release had actually run desktop-release.yml until now). rand 0.10
renamed thread_rng() -> rng() and no longer re-exports RngCore at the
crate root — filling a byte slice now goes through the RngExt trait's
fill() method instead. Verified with `cargo check` and a release build
against the exact resolved 0.10.1 source.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
VITE_EDITION=community vite build ... is POSIX inline-env-var syntax —
Windows cmd.exe can't parse it ('VITE_EDITION' is not recognized...),
so tauri-action's beforeBuildCommand failed on windows-latest before
even reaching the Rust compile. Wrapped with cross-env, which every
other package manager script in this monorepo already avoids needing
because none of them set an inline env var like this one does.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@huyplb
huyplb merged commit 20e2a2b into main Jul 6, 2026
5 of 6 checks passed
@huyplb
huyplb deleted the release/v0.1.0 branch July 7, 2026 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant