Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use lang: powershell on windows #1040

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

divanshu-go
Copy link
Contributor


name: pull request
about: submit changes to the project
title: "[pr] "
labels: ''
assignees: ''


description

Earlier , we were showing the commands on windows as "bash". But know it shows powershell on windows which is the expected behavior because User might think that we do not support powershell or the given command can only be executed on bash.

related issue: #1039

how to test

add a few steps to test the pr in the most time efficient way.

if relevant add screenshots or screen captures to prove that this PR works to save us time.

if you think it can take more than 30 mins for us to review, we will pay between $20 and $200 for someone to review it for us, just ask in the pr.

Copy link

vercel bot commented Dec 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
screenpipe ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 23, 2024 3:46pm

@@ -138,7 +139,10 @@ export function CliCommandDialog({ settings }: CliCommandDialogProps) {
</DialogDescription>
</DialogHeader>
<div className="overflow-x-auto">
<CodeBlock language="bash" value={generateCliCommand()} />
<CodeBlock
language={platform() === "windows" ? "powershell" : "bash"}
Copy link
Collaborator

Choose a reason for hiding this comment

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

nice!

can you do bun tauri build

usually you cannot use platform() like this - build crash

because nextjs does not know tauri APIs

so you need to put it in a function or useeffect

maybe it would make sense to create a hook because we have useeffect for this everywhere - kinda dirty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants