Skip to content

feat(dist): configure cargo-dist for cross-platform releases and inst… - #4

Merged
Shantodotdev merged 1 commit into
mainfrom
feat/cargo-dist-packaging
Sep 8, 2026
Merged

Shantodotdev merged 1 commit into
mainfrom
feat/cargo-dist-packaging

Conversation

@Shantodotdev

@Shantodotdev Shantodotdev commented Sep 8, 2026

Copy link
Copy Markdown
Owner

Overview

Configures cargo-dist (v0.32.0) to automate cross-platform binary packaging, GitHub Releases artifact generation, and user-friendly installers across macOS, Linux, and Windows.


What Changes

1. Target Platforms & Architectures

Configured native builds for all major target architectures in dist-workspace.toml:

  • x86_64-unknown-linux-gnu (Linux x86_64)
  • aarch64-unknown-linux-gnu (Linux ARM64)
  • x86_64-apple-darwin (macOS Intel)
  • aarch64-apple-darwin (macOS Apple Silicon)
  • x86_64-pc-windows-msvc (Windows x64)

2. Multi-Platform Installers

  • Shell installer (sh): Universal one-liner for Linux & macOS (curl --proto '=https' --tlsv1.2 -sSf ... | sh).
  • PowerShell installer (ps1): Native one-liner for Windows (irm ... | iex).
  • Homebrew Tap: Automated formula publishing to Shantodotdev/homebrew-tap (brew install Shantodotdev/tap/seolens).
  • Windows MSI Installer (msi): Full WiX toolset configuration (wix/main.wxs) with GUID-based upgrade paths and system PATH integration.

3. Release Automation & Workspace Tuning

  • Added .github/workflows/release.yml for automated release orchestration when pushing version tags (v*).
  • Tuned Cargo.toml with a dedicated [profile.dist] inheriting release optimizations with thin LTO.
  • Added [package.metadata.dist] dist = false to src-tauri/Cargo.toml to isolate CLI binary distribution from the desktop shell.

Verification

  • Cleanly rebased onto latest main.
  • cargo fmt --all -- --check verified.
  • cargo clippy --workspace --all-targets -- -D warnings passed with 0 warnings.
  • Workspace test suite passing.

@coderabbitai

coderabbitai Bot commented Sep 8, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 50 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: e7b6963f-3f95-4789-b7f8-9a755a41b757

📥 Commits

Reviewing files that changed from the base of the PR and between 40a40ae and 389ccc4.

📒 Files selected for processing (5)
  • .github/workflows/release.yml
  • Cargo.toml
  • dist-workspace.toml
  • src-tauri/Cargo.toml
  • wix/main.wxs

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Shantodotdev
Shantodotdev merged commit 135e1c0 into main Sep 8, 2026
7 of 10 checks passed
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