Skip to content

Build improvements - #39

Merged
iharhl merged 3 commits into
masterfrom
feature/build-improvements
Nov 17, 2026
Merged

iharhl merged 3 commits into
masterfrom
feature/build-improvements

Conversation

@iharhl

@iharhl iharhl commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

Moves the build setup into the workspace, pins the Rust toolchain, and adds Linux to the release, with per-platform release files and checksums.

Build system

  • Clippy lints live in [workspace.lints] of the root Cargo.toml, so ./run.sh check, CI and the IDE use the same set. The #![warn(...)] block in main.rs and the flag lists in run.sh / CI are gone
  • version, edition, license and rust-version come from the workspace, so a release bumps the version in one place
  • Release profile uses LTO, one codegen unit and stripped binaries (the old [profile.bench] is dropped)
  • cargo packager --release builds the app itself via before-packaging-command, no separate cargo build needed
  • Window icon is decoded at runtime from the 128x128 PNGs instead of pre-converted .rgba files (removed, along with their step in make_icons.sh)
  • build.rs only reruns when it or icon.ico changes

Toolchain and CI

  • rust-toolchain.toml pins the compiler (1.100, with rustfmt and clippy). CI and release install it with rustup toolchain install instead of dtolnay/rust-toolchain@stable, so the same tag always builds with the same compiler
  • rust-version = "1.95" documents the minimum supported Rust
  • All CI and release cargo commands use --locked

Release

  • New Linux build on ubuntu-22.04 (oldest available runner, for older glibc): .deb and AppImage
  • Per-platform files instead of one ZIP per OS: installers keep cargo-packager's names, the CLI is hexcli_<version>_<platform> (.tar.gz on macOS / Linux so it stays executable, .zip on Windows)
  • SHA256SUMS.txt for all files is attached to the release
  • Release workflow can be run manually as a dry run: it builds and packages everything, skips the version check and the release, and the files are attached to the run
  • A fresh packaging output folder keeps leftovers from cached builds out of the release

Packaging

  • Windows installer is per user (%LOCALAPPDATA%\Hexalyzer), no admin rights needed. Releases up to v0.3.0 installed into C:\Program Files\Hexalyzer
  • macOS About window shows just Version 0.3.0, without cargo-packager's build timestamp (via assets/Info.plist)
  • Copyright with license in the bundle metadata, DeveloperTool category
  • Linux app id hexalyzer, so the desktop shows the right icon and name for the window
  • In-app About window shows the license

@iharhl iharhl changed the title Build improvements: workspace lints, pinned toolchain and Linux release Build improvements Nov 17, 2026
@iharhl
iharhl merged commit 49a3ac5 into master Nov 17, 2026
5 checks passed
@iharhl
iharhl deleted the feature/build-improvements branch November 17, 2026 23:07
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