Vince Grassia 45e4aaae30 [BRE-2407] fix(cli): Choose bw update asset by license type and CPU architecture (#24658)
`bw update` picked the first release zip whose URL contained `bw-<os>`.
It ignored which build was running and the CPU architecture, so OSS users
were sent the commercial build and arm64 users were sent the x64 build.

- Add `licenseType` to the CLI ServiceContainer ("oss"), overridden to
  "bit" in the Bitwarden-licensed container, and pass it to UpdateCommand.
- Build the exact asset name, bw-{license}-{os}[-arm64]-{version}.zip,
  from the license, process.platform, process.arch and the release tag,
  and match it against asset names.
- Fall back to the release page when no matching asset exists or the
  OS/architecture has no published build.
- Type the GitHub release response and remove @ts-strict-ignore.

Depends on the bw-bit-* asset rename (BRE-2408).
2026-11-11 10:22:40 -05:00
2024-01-30 06:50:54 -08:00
2022-03-15 15:39:14 -04:00

Bitwarden

GitHub Workflow browser build on main GitHub Workflow CLI build on main GitHub Workflow desktop build on main GitHub Workflow web build on main


Bitwarden Client Applications

This repository houses all Bitwarden client applications except the mobile applications (iOS | android).

Please refer to the Clients section of the Contributing Documentation for build instructions, recommended tooling, code style tips, and lots of other great information to get you started.

We're Hiring!

Interested in contributing in a big way? Consider joining our team! We're hiring for many positions. Please take a look at our Careers page to see what opportunities are currently open as well as what it's like to work at Bitwarden.

Contribute

Code contributions are welcome! Please commit any pull requests against the main branch. Learn more about how to contribute by reading the Contributing Guidelines. Check out the Contributing Documentation for how to get started with your first contribution.

Security audits and feedback are welcome. Please open an issue or email us privately if the report is sensitive in nature. You can read our security policy in the SECURITY.md file.

2026-11-04 21:38:55 +00:00
Languages
TypeScript 89.6%
HTML 4.6%
Rust 2.6%
SCSS 1.1%
MDX 0.9%
Other 1%