From 253c1f2870943f82bfbdf395a3f5a906701b32a7 Mon Sep 17 00:00:00 2001 From: Julien Chaumond Date: Fri, 15 May 2026 21:21:05 +0200 Subject: [PATCH 1/4] fix(home): show PowerShell install command on Windows Detects Windows via navigator.userAgent on mount and swaps the install snippet (and copy handler) to `irm | iex`. Also switches the curl flags to `-LsSf`. Co-Authored-By: julien-agent --- src/routes/+page.svelte | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 460d3a6..b4b7f1c 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -52,9 +52,17 @@ ]; let copied = $state(false); + let isWindows = $state(false); + const installCommand = $derived( + isWindows ? 'irm https://llama.app/install.ps1 | iex' : 'curl -LsSf https://llama.app/install.sh | bash' + ); + + $effect(() => { + isWindows = navigator.userAgent.toLowerCase().includes('windows'); + }); async function handleCopy() { - navigator.clipboard.writeText('curl -fsSL https://llama.app/install.sh | bash'); + navigator.clipboard.writeText(installCommand); toast.success('Copied to clipboard!'); copied = true; setTimeout(() => { @@ -82,9 +90,7 @@
- curl -fsSL https://llama.app/install.sh | bash + {installCommand}