From 9bae706bbd49948453bc0a2a33c8387e5a028583 Mon Sep 17 00:00:00 2001 From: Jatin K Malik Date: Wed, 28 Jan 2026 19:36:06 -0800 Subject: [PATCH] fix: download install.sh from main to get --tag support (#78) The v0.3.0-alpha release was created before the --tag feature was added to install.sh, so installing from that tag fails with "Unknown option: --tag=v0.3.0-alpha". Solution: Always download install.sh from main (which has --tag support) and pass the release tag as a parameter. This ensures users get a working installer that can install the specific stable release. Changes: - web/src/app/page.tsx: Download from main instead of ${latestRelease} - README.md: Update install commands to download from main - docs/INSTALL.md: Update install command - .github/workflows/release.yml: Update release notes --- .github/workflows/release.yml | 2 +- README.md | 10 +++++----- docs/INSTALL.md | 4 ++-- web/src/app/page.tsx | 10 +++++----- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0cfa7dc..b3a0e93 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -74,7 +74,7 @@ jobs: ### Quick Install (Recommended) ```bash - curl -fsSL https://raw.githubusercontent.com/jatinkrmalik/vocalinux/${{ github.ref_name }}/install.sh | bash + curl -fsSL https://raw.githubusercontent.com/jatinkrmalik/vocalinux/main/install.sh | bash -s -- --tag=${{ github.ref_name }} ``` ### From Source diff --git a/README.md b/README.md index 594e12d..cbad032 100644 --- a/README.md +++ b/README.md @@ -51,10 +51,10 @@ ### One-liner Installation (Recommended) ```bash -curl -fsSL https://raw.githubusercontent.com/jatinkrmalik/vocalinux/v0.3.0-alpha/install.sh | bash +curl -fsSL https://raw.githubusercontent.com/jatinkrmalik/vocalinux/main/install.sh | bash -s -- --tag=v0.3.0-alpha ``` -> **Note**: Installs the latest stable release. For the most recent version, check [GitHub Releases](https://github.com/jatinkrmalik/vocalinux/releases). +> **Note**: Installs the latest stable release (v0.3.0-alpha). For the most recent version, check [GitHub Releases](https://github.com/jatinkrmalik/vocalinux/releases). This will: - Clone the repository to `~/.local/share/vocalinux-install` @@ -70,13 +70,13 @@ This will: **Whisper with CPU-only PyTorch (no NVIDIA GPU needed):** ```bash -curl -fsSL https://raw.githubusercontent.com/jatinkrmalik/vocalinux/v0.3.0-alpha/install.sh | bash -s -- --whisper-cpu +curl -fsSL https://raw.githubusercontent.com/jatinkrmalik/vocalinux/main/install.sh | bash -s -- --tag=v0.3.0-alpha --whisper-cpu ``` This installs Whisper with CPU-only PyTorch (~200MB instead of ~2.3GB). Works great for systems without NVIDIA GPU. **For low-RAM systems (8GB or less) - VOSK only:** ```bash -curl -fsSL https://raw.githubusercontent.com/jatinkrmalik/vocalinux/v0.3.0-alpha/install.sh | bash -s -- --no-whisper +curl -fsSL https://raw.githubusercontent.com/jatinkrmalik/vocalinux/main/install.sh | bash -s -- --tag=v0.3.0-alpha --no-whisper ``` This skips Whisper installation entirely and configures VOSK as the default engine. @@ -116,7 +116,7 @@ Or launch it from your application menu! ```bash # If installed via curl: -curl -fsSL https://raw.githubusercontent.com/jatinkrmalik/vocalinux/v0.3.0-alpha/uninstall.sh | bash +curl -fsSL https://raw.githubusercontent.com/jatinkrmalik/vocalinux/main/uninstall.sh | bash # If installed from source: ./uninstall.sh diff --git a/docs/INSTALL.md b/docs/INSTALL.md index 9126aff..69556a1 100644 --- a/docs/INSTALL.md +++ b/docs/INSTALL.md @@ -7,10 +7,10 @@ This guide provides detailed instructions for installing Vocalinux on Linux syst ### One-liner Installation (Recommended) ```bash -curl -fsSL https://raw.githubusercontent.com/jatinkrmalik/vocalinux/v0.3.0-alpha/install.sh | bash +curl -fsSL https://raw.githubusercontent.com/jatinkrmalik/vocalinux/main/install.sh | bash -s -- --tag=v0.3.0-alpha ``` -> **Note**: Installs the latest stable release. For the most recent version, check [GitHub Releases](https://github.com/jatinkrmalik/vocalinux/releases). +> **Note**: Installs the latest stable release (v0.3.0-alpha). For the most recent version, check [GitHub Releases](https://github.com/jatinkrmalik/vocalinux/releases). That's it! The installer handles everything automatically, including Whisper AI support. diff --git a/web/src/app/page.tsx b/web/src/app/page.tsx index 7bb37e9..c4803b0 100644 --- a/web/src/app/page.tsx +++ b/web/src/app/page.tsx @@ -39,22 +39,22 @@ import { atomOneDark } from "react-syntax-highlighter/dist/esm/styles/hljs"; import { useInView } from "react-intersection-observer"; // The one-liner install command (split into three lines for display) -// Uses the latest stable release tag and passes it to the script +// Downloads install.sh from main (which has --tag support) and passes the latest release tag const getInstallCommands = (latestRelease: string) => ({ oneClickInstallCommand: `curl \\ - -fsSL https://raw.githubusercontent.com/jatinkrmalik/vocalinux/${latestRelease}/install.sh \\ + -fsSL https://raw.githubusercontent.com/jatinkrmalik/vocalinux/main/install.sh \\ | bash -s -- --tag=${latestRelease}`, oneClickInstallWhisperCpu: `curl \\ - -fsSL https://raw.githubusercontent.com/jatinkrmalik/vocalinux/${latestRelease}/install.sh \\ + -fsSL https://raw.githubusercontent.com/jatinkrmalik/vocalinux/main/install.sh \\ | bash -s -- --tag=${latestRelease} --whisper-cpu`, oneClickInstallNoWhisper: `curl \\ - -fsSL https://raw.githubusercontent.com/jatinkrmalik/vocalinux/${latestRelease}/install.sh \\ + -fsSL https://raw.githubusercontent.com/jatinkrmalik/vocalinux/main/install.sh \\ | bash -s -- --tag=${latestRelease} --no-whisper`, uninstallCommand: `curl -fsSL \\ - https://raw.githubusercontent.com/jatinkrmalik/vocalinux/${latestRelease}/uninstall.sh \\ + https://raw.githubusercontent.com/jatinkrmalik/vocalinux/main/uninstall.sh \\ | bash`, });