Skip to content

Masa v1.7.0 — online brew, casks & partial Flutter/Dart framework stubs

Choose a tag to compare

@ClausValcaTD ClausValcaTD released this 17 Nov 19:58
· 2 commits to main since this release

Masa v1.7.0 — online masa brew, Homebrew Casks and partial Flutter/Dart framework stubs

Milestone 17. Masa's Homebrew support goes online and the clean-room stub SDK
learns the macOS frameworks a Flutter/Dart desktop binary imports at load
time.

masa brew — casks, taps and verified downloads

masa brew now understands Homebrew Casks (cask "name" do ... end)
alongside formulas. masa brew lint auto-detects which one a .rb is and
checks a cask's required fields (version, sha256, url and an
app/pkg/binary artifact), warning (not failing) on a missing desc or
homepage.

Two new subcommands make the Homebrew support online:

  • masa brew tap <user/repo> clones (or fast-forwards)
    homebrew-<repo> into a local tap tree and lists the formulas and casks it
    ships. $MASA_BREW_TAPS sets the tree; $MASA_BREW_TAP_BASE overrides the
    https://github.com base (a mirror or an offline test).
  • masa brew fetch <formula_or_cask.rb> downloads the declared url and
    verifies it against the declared sha256, failing on a mismatch. A
    file:// URL is copied from the local filesystem, so fetch works and is
    fully testable offline; http(s) URLs are fetched with curl -fSL.

The digest check is backed by a new clean-room SHA-256 (src/sha256.c,
FIPS 180-4, no OpenSSL dependency), validated against the NIST ""/"abc"
vectors and a 120-byte message that exercises the padding edge case.

Partial macOS framework stubs — Metal, QuartzCore, Security, IOKit

The stub SDK now ships partial clean-room stubs for the frameworks a
Flutter/Dart-style desktop binary imports at load time — Metal,
QuartzCore, Security and IOKit — plus libz and libc++
(headers, .tbd files and a libc++.tbd symlink). Each advertises only the
symbols Danroot can satisfy, so a binary that links against them resolves
every import and runs.

Danroot shims the ones that matter:

  • CACurrentMediaTime maps to the host monotonic clock.
  • SecRandomCopyBytes fills its buffer from /dev/urandom.
  • MTLCreateSystemDefaultDevice / MTLCopyAllDevices return NULL cleanly —
    Metal is not emulated; a missing GPU is something every caller already
    handles, and Masa says so on stderr instead of crashing.

Everything else

  • All Milestone 1–16 capabilities are unchanged: masa cc / masa swiftc,
    masa run / masa danroot (Layers 1–5), masa xcode build, masa pack
    (.dmg/.ipa), masa sdk, masa shell, masa-term, masa doctor and
    make dist.

Verification

  • Core suite: 126 tests / 0 failed / 1 skipped (the Android NDK test skips
    when ANDROID_CC is absent), built with both gcc and clang under
    -Wall -Wextra -Werror -fsanitize=address — zero warnings, zero leaks.
  • GUI suite (SDL_VIDEODRIVER=dummy make test-gui): 41 tests / 0 failed /
    0 skipped
    , zero leaks.
  • MinGW-w64 (Windows) and, where an NDK is present, Android cross-builds are
    clean.
  • make dist produces the Linux and Windows archives below and
    sha256sum -c SHA256SUMS verifies every one.

Downloads

Artifact Platform
masa-1.7.0-linux-x86_64.tar.gz / .zip Linux x86_64
masa-1.7.0-windows-x86_64.tar.gz / .zip Windows x86_64
SHA256SUMS checksums for all of the above

An Android archive is produced automatically by CI (and by any make dist
run that has ANDROID_CC set) and is attached there.


This release description was written by an AI agent (OpenHands) on behalf of
the Masa maintainers.