Skip to content

fix(packaging): Linux Homebrew cask CLI and desktop entry - #14115

Open
Souravrajvi0 wants to merge 3 commits into
unslothai:mainfrom
Souravrajvi0:feat/homebrew-linux-cli-desktop-3a30
Open

Souravrajvi0 wants to merge 3 commits into
unslothai:mainfrom
Souravrajvi0:feat/homebrew-linux-cli-desktop-3a30

Conversation

@Souravrajvi0

@Souravrajvi0 Souravrajvi0 commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes #13943.

Documents and ships the canonical Homebrew cask in-repo. The user-facing fix lands in Homebrew/homebrew-cask via Homebrew/homebrew-cask#295163.

Changes

  • packaging/homebrew/Casks/unsloth.rb: Linux binary → unsloth, postflight .desktop entry, uninstall cleanup.
  • tests/sh/test_homebrew_cask_linux.sh: guard the Linux stanzas.
  • README: note Linux Homebrew behavior.

Test plan

  • tests/sh/test_homebrew_cask_linux.sh
  • After homebrew-cask merge: brew install --cask unsloth on Fedora/Bazzite

Add the canonical Homebrew cask with a PATH wrapper and .desktop file
for Linux AppImage installs. Fixes unslothai#13943; mirror to homebrew-cask.
@danielhanchen danielhanchen self-assigned this Oct 18, 2026
danielhanchen added a commit that referenced this pull request Oct 18, 2026
…pability picks (#14138)

## Summary

`Repo tests (CPU, studio)` fails on every PR whose base includes #14083,
with the same single test:

```
tests/studio/test_model_picker_contracts.py::test_diffusion_capability_labeled_image_video_gen
    assert '{ value: "diffusion", label: "Image/video gen" }' in _read("features/hub/lib/model-type-filter.ts")
```

Seen on #14097, #14106, #14112, #14115, #14122 and #14125 (bases
`72d0d2db`, `b4a4855e`, `4c5fb400`), and it reproduces on main at
`1e2cedde`.

## Cause

#14083 (Studio Hub: On Device filters and sort) moved the On Device list
onto Discover's capability picks, on purpose. `model-type-filter.ts` no
longer keeps its own `MODEL_TYPE_FILTER_OPTIONS` (which held `{ value:
"diffusion", label: "Image/video gen" }`). Its
`matchesInventoryCapabilities` now takes `HubCapabilityFilter` picks and
matches them with Discover's own `matchesHubCapability`, so the On
Device panel shows Discover's "Image gen" and "Video gen" tiles. The PR
describes this as change 2.

The product is right and the test is stale. What the test protects
(#11681) is that the diffusion capability is never presented as "Image
to text". That still holds: the only names now shown for it are
Discover's "Image gen" / "Video gen" options and the capability badge's
"Image gen" / "Video gen".

## Change

Test only, `test_diffusion_capability_labeled_image_video_gen`:

- **Kept as before:**
  - "Image to text" must not appear in the three hub files.
- Discover's options must be `{ value: "image-gen", label: "Image gen"
}` and `{ value: "video-gen", label: "Video gen" }`.
- **New:** the capability badge in `model-capabilities.ts` must name the
same two kinds.
- **Replaced** the literal from the deleted On Device list. Now, if
`model-type-filter.ts` has a `diffusion` option, it must still be
labeled "Image/video gen". Otherwise the file must match through
`matchesHubCapability`, so On Device cannot quietly grow a second,
unchecked set of names.

## Testing

- **This change:** `tests/studio/test_model_picker_contracts.py` gives
201 passed.
- **Before (main `1e2cedde`):** the same file gives 1 failed, 200
passed, the failure CI shows.
- **Each of these makes the test fail:**
  - Relabeling Discover's `image-gen` option "Image to text".
- Renaming `matchesHubCapability` out of `model-type-filter.ts`, so On
Device no longer shares Discover's matcher.
- Adding back an On Device `{ value: "diffusion", label: "Image to text"
}` option.
@Souravrajvi0

Copy link
Copy Markdown
Contributor Author

@danielhanchen Following up on #13943 / this PR:

  • Canonical cask lives in packaging/homebrew/Casks/unsloth.rb with tests/sh/test_homebrew_cask_linux.sh (4/4 passing locally).
  • Synced checksums to current release 0.1.910-beta on head 5ba430e01b.
  • Mirrored the Linux binary + .desktop postflight to Homebrew: reopened homebrew-cask#295163 (rebased on upstream master, PR template filled in).

Happy to adjust if you prefer keeping version bumps out of this PR until merge.

@Souravrajvi0

Copy link
Copy Markdown
Contributor Author

Update: Homebrew side is now homebrew-cask#297343 (rebased on upstream main, single commit). The old #295163 could not be reopened; superseded by #297343.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Linux homebrew install doesn't provide CLI or desktop launcher

2 participants