fleet/it-and-security/lib
Jordan Montgomery 10c73cb110
Fix homebrew wine install (#32505)
Fixes #32504 

Homebrew has removed the ability to install via a local .rb file. For
context see the PR here: https://github.com/Homebrew/brew/pull/20414 .
Also the long list of PRs and commits referencing can give you some idea
of how others are solving this

We have a few different options we can take.

We can use the usual homebrew method of doing an install
wine-stable@[version] but this does not support us installing a version
referenced by a commit SHA, rather we just get to choose a specific
semver.

We can set EVs normally intended for use only by homebrew developers.
The actual Homebrew developers have strongly cautioned against this as
it has more side effects than simply allowing local package installs.

Finally, we can take the method suggested by the Homebrew developers,
which I have done here, of creating a local tap containing our specified
Wine version's cask file and installing from it. This works well in
local testing and I think has the fewest downsides while maintaining the
reference to a specific immutable version.

# Checklist for submitter
## Testing

- [x] QA'd all new/changed functionality manually

Fixed CI run here:
https://github.com/fleetdm/fleet/actions/runs/17407514780/job/49415787748
2025-09-02 11:05:46 -04:00
..
all Update Noah's hostname (#32200) 2025-08-22 08:24:52 -05:00
ios Updated profile names for better readability in Fleet UI (#29796) 2025-06-06 11:27:33 -05:00
ipados Updated profile names for better readability in Fleet UI (#29796) 2025-06-06 11:27:33 -05:00
linux 30259 - fix linux uninstall script (#30488) 2025-07-01 17:50:47 -05:00
macos Fix homebrew wine install (#32505) 2025-09-02 11:05:46 -04:00
windows Updating Windows installers (#31076) 2025-07-20 00:30:12 -05:00