Skip to content

Commit

Permalink
feat: add linux install options json
Browse files Browse the repository at this point in the history
  • Loading branch information
thewh1teagle committed Dec 17, 2024
1 parent 308ff39 commit 4ca2c07
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
17 changes: 7 additions & 10 deletions landing/src/components/Cta.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import GithubIcon from '~/icons/Github.svelte'
import ChipIcon from '~/icons/Chip.svelte'
import latestRelease from '$lib/latest_release.json'
import linuxInstallOptions from '$lib/linux_install_options.json'
import mobile from 'is-mobile'
let asset = latestRelease.assets.find((a) => a.platform?.toLowerCase() === 'macos') // default to macos
Expand Down Expand Up @@ -107,16 +108,12 @@
<dialog id="linux_download_model" class="modal">
<div class="modal-box w-11/12 max-w-5xl">
<h3 class="text-3xl font-bold">Install Vibe on Linux</h3>
<div class="mt-5">
<div class="mb-2 text-3xl text-primary opacity-80">Quick Install</div>
<code class="min-w-[700px] flex bg-[#2b2b2b] p-2 rounded-sm"
>curl -sSf https://thewh1teagle.github.io/vibe/installer.sh | sh -s {latestRelease.version}</code>
</div>

<div class="mt-5">
<div class="mb-2 text-3xl text-primary">Arch Linux</div>
<code class="min-w-[700px] flex bg-[#2b2b2b] p-2 rounded-sm">pacman -S vibe-bin</code>
</div>
{#each linuxInstallOptions as installOption}
<div class="mt-5">
<div class="mb-2 text-3xl text-primary opacity-80">{installOption.title}</div>
<code class="min-w-[700px] flex bg-[#2b2b2b] p-2 rounded-sm">{installOption.command.replace('{tag}', latestRelease.version)}</code>
</div>
{/each}
</div>
<form method="dialog" class="modal-backdrop">
<button>close</button>
Expand Down
10 changes: 10 additions & 0 deletions landing/src/lib/linux_install_options.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{
"title": "Quick Install",
"command": "curl -sSf https://thewh1teagle.github.io/vibe/installer.sh | sh -s {tag}"
},
{
"title": "Arch Linux",
"command": "pacman -S vibe-bin"
}
]

0 comments on commit 4ca2c07

Please sign in to comment.