Repository navigation
[Bitwarden] Add Windows support - #21940
Conversation
- Merge branch \'contributions/merge-1759449361682\' - Pull contributions - feat: windows support
|
Thank you for the update! 🎉 You can expect an initial review within five business days. |
|
Is this ready @jomifepe |
Not yet, I still haven't successfully tested it on Windows. It's also my first time using Raycast there 😁 |
|
Awesome, I'll await 😊 |
|
Any updates? I've been eagerly awaiting this since I've gotten access to the beta. |
Honestly, I've been struggling to test it, I even sent a message in slack to try to understand my issue, but I didn't get any answers. I haven't been able to run it there at all 😕
You could, yes, feel free to do so by following this guide: https://developers.raycast.com/basics/review-pullrequest |
|
I'm getting a "Error: Missing executable. You might need to build the extension." when trying to search, generate a password etc. |
fix: remove duplicate platforms
I was able to test it. I believe it was a matter of updating Raycast's dependencies. Give it a try if you can 🙏 |
feat: replace all cmd shortcuts with opt to avoid collisions
|
Yep, this works great for me, thanks! |
|
Should be ready @pernielsentikaer! |
There was a problem hiding this comment.
Greptile Overview
Summary
This PR adds Windows support to the Bitwarden extension, enabling it to run on both macOS and Windows platforms. The implementation includes:
Key Changes:
- Added Windows to the
platformsarray inpackage.json - Implemented platform-specific CLI binary download with Windows SHA256 hash
- Changed all keyboard shortcuts from
cmdtoopt(macOS) /alt(Windows) to avoid conflicts with Raycast shortcuts - Added Windows-specific PowerShell commands for bug report data collection
- Made system lock/sleep vault timeout features macOS-only (marked as experimental in preferences)
- Updated documentation and descriptions for cross-platform CLI paths
- Removed Homebrew-specific installation helpers
Issue Found:
- The platform detection utility assumes all non-macOS systems are Windows, which could cause runtime errors if someone attempts to run the extension on Linux (even though Linux isn't officially supported in
platforms)
Confidence Score: 4/5
- This PR is mostly safe to merge with one logical issue that should be addressed
- The implementation is thorough and well-structured with proper platform-specific handling throughout. However, the platform detection logic has a critical flaw that assumes non-macOS equals Windows, which could cause issues. The shortcut changes are breaking but justified to avoid conflicts. All Windows-specific features appear properly implemented.
- Pay close attention to
extensions/bitwarden/src/utils/platform.ts- the platform detection logic needs to handle edge cases better
Important Files Changed
File Analysis
| Filename | Score | Overview |
|---|---|---|
| extensions/bitwarden/src/utils/platform.ts | 2/5 | New platform detection utility - assumes non-macOS is Windows, which could cause issues on Linux |
| extensions/bitwarden/package.json | 4/5 | Added Windows to platforms array and updated CLI path descriptions for cross-platform support |
| extensions/bitwarden/src/api/bitwarden.ts | 4/5 | Implemented Windows CLI binary download support with platform-specific SHA256 hashes and paths |
| extensions/bitwarden/src/components/actions/BugReportCollectDataAction.tsx | 4/5 | Added Windows-specific PowerShell commands for system info collection in bug reports |
| extensions/bitwarden/src/context/session/session.tsx | 5/5 | Restricted system lock/sleep vault timeout features to macOS only |
29 files reviewed, 1 comment
| @@ -0,0 +1 @@ | |||
| export const platform = process.platform === "darwin" ? "macos" : "windows"; | |||
There was a problem hiding this comment.
logic: This assumes all non-macOS platforms are Windows, which will cause issues on Linux systems. While package.json only lists macOS and Windows in the platforms field, Raycast runs on Linux too. The extension will crash or behave incorrectly if someone tries to run it on Linux.
Consider using:
| export const platform = process.platform === "darwin" ? "macos" : "windows"; | |
| export const platform = process.platform === "darwin" ? "macos" : process.platform === "win32" ? "windows" : "linux"; |
And handle Linux appropriately in other parts of the code (CLI download URLs, shortcuts, commands, etc.), or ensure Linux is explicitly not supported everywhere this is used.
pernielsentikaer
left a comment
There was a problem hiding this comment.
Looks good to me, approved 🔥
|
Published to the Raycast Store: |
|
🎉 🎉 🎉 We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag. |
Description
#21338
Add support for Windows.
Changes:
BugReportCollectDataActionactionaltChecklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare placed outside of themetadatafolder