Skip to content

Update prism-launcher - #22801

Merged
raycastbot merged 6 commits into
raycast:mainfrom
TakenMC:ext/prism-launcher
Nov 11, 2025
Merged

raycastbot merged 6 commits into
raycast:mainfrom
TakenMC:ext/prism-launcher

Conversation

@TakenMC

@TakenMC TakenMC commented Nov 11, 2025

Copy link
Copy Markdown
Contributor

Description

  • Added windows support

Screencast

Checklist

@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: prism-launcher Issues related to the prism-launcher extension platform: macOS platform: Windows labels Nov 11, 2025
@raycastbot

ghost commented Nov 11, 2025 •

Copy link
Copy Markdown
Collaborator

Thank you for your contribution! 🎉

🔔 @lockieluke @tomjpeg @pernielsentikaer you might want to have a look.

You can use this guide to learn how to check out the Pull Request locally in order to test it.

Due to our current reduced availability, the initial review may take up to 10 business days.

@greptile-apps

ghost commented Nov 11, 2025

Copy link
Copy Markdown
Contributor

Greptile Overview

Greptile Summary

This PR adds Windows support to the prism-launcher extension, which previously only worked on macOS. The changes implement cross-platform compatibility by creating platform-specific utility functions and path handling. A new utils/instance.ts file contains three utility functions (joinServer, launchInstance, showInstance) that detect the operating system and execute appropriate commands - using direct executable paths on Windows and the open command with bundle identifiers on macOS. The existing utils/prism.ts file was updated to handle different PrismLauncher installation paths and instance directories for each platform. All command files were refactored to use these centralized utility functions instead of inline macOS-specific commands, improving code maintainability and eliminating duplication. The extension is now configured to support both Windows and macOS platforms in package.json.

Important Files Changed

Filename Score Overview
extensions/prism-launcher/src/utils/instance.ts 3/5 New file adding Windows support with platform-specific utility functions but uses unsanitized string interpolation
extensions/prism-launcher/src/commands/favorite-servers.tsx 4/5 Refactored to use centralized joinServer utility function, removing code duplication
extensions/prism-launcher/src/commands/manage-instances.tsx 4/5 Updated to use utility functions and improved error handling with Raycast's built-in APIs
extensions/prism-launcher/src/commands/join-server.tsx 3/5 Mostly refactored to use utilities but has inconsistent implementation on line 199
extensions/prism-launcher/src/utils/prism.ts 4/5 Added cross-platform path handling and platform detection for Windows support
extensions/prism-launcher/package.json 5/5 Added Windows platform support and new contributor
extensions/prism-launcher/CHANGELOG.md 5/5 Properly formatted changelog entry documenting Windows support addition

Confidence score: 3/5

  • This PR requires careful review due to potential security issues and incomplete refactoring in one file
  • Score lowered due to unsanitized string interpolation in shell commands (security risk) and inconsistent implementation in join-server.tsx where one instance still uses hardcoded macOS commands
  • Pay close attention to extensions/prism-launcher/src/utils/instance.ts and extensions/prism-launcher/src/commands/join-server.tsx

ghost left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional Comments (1)

  1. extensions/prism-launcher/src/commands/join-server.tsx, line 199 (link)

    logic: This still uses the old macOS-specific command directly. Should use launchInstance(instance.id) for consistency and Windows compatibility.

7 files reviewed, 2 comments

Edit Code Review Agent Settings | Greptile

@tomjpeg

ghost commented Nov 11, 2025

Copy link
Copy Markdown
Contributor

Hey @TakenMC!
Thanks for your contribution.

It looks great to me. I tested it on the Windows VM, and it works as intended.
@pernielsentikaer, could you also give it a try on Windows?

Please keep in mind that I primarily use macOS, so I can't always test specific features on Windows when considering future integrations. Generally, with the current setup of the extension, it should work because Prism has the same CLI on both macOS and Windows, but some things might be broken. Do you have time to test it in the future?

@pernielsentikaer you suggested in the last PR that I could be the main maintainer of the extension, and @lockieluke agreed. Could you update that in the repo?

@raycast-extensions-bot raycast-extensions-bot Bot added the Approved Approved by a user label Nov 11, 2025
@pernielsentikaer pernielsentikaer self-assigned this Nov 11, 2025

ghost left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, approved 🔥

@raycastbot
raycastbot merged commit fae2c29 into raycast:main Nov 11, 2025
@github-actions

ghost commented Nov 11, 2025

Copy link
Copy Markdown
Contributor

@raycastbot

ghost commented Nov 11, 2025

Copy link
Copy Markdown
Collaborator

🎉 🎉 🎉

We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag.

@TakenMC
TakenMC deleted the ext/prism-launcher branch November 11, 2025 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Approved Approved by a user extension fix / improvement Label for PRs with extension's fix improvements extension: prism-launcher Issues related to the prism-launcher extension platform: macOS platform: Windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants