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
This commit is contained in:
Jatin K Malik
2026-01-28 19:36:06 -08:00
committed by GitHub
parent 653007618b
commit 9bae706bbd
4 changed files with 13 additions and 13 deletions
+5 -5
View File
@@ -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`,
});