Skip to content

feat(packaging): unified GitHub release bundle and one-command PATH installer - #2

Merged
Pyrexus merged 1 commit into
Clash-Projects:mainfrom
ajisth69:feat/one-command-installer
Nov 29, 2026
Merged

Pyrexus merged 1 commit into
Clash-Projects:mainfrom
ajisth69:feat/one-command-installer

Conversation

@ajisth69

Copy link
Copy Markdown
Member

Problem & Resulting Behavior

Previously, users had to manually clone/download lastwave and separately install and add mpv / yt-dlp / JS runtime to PATH, and scripts/install.ps1 failed with Cannot bind argument to parameter 'Path' because it is an empty string when piped via irm ... | iex in Windows PowerShell 5.1.

This PR packages everything together on GitHub Releases and provides a single one-command installer that sets up and registers lastwave on PATH:

  • Unified GitHub Release bundle (.github/workflows/release.yml): Triggers on v* tags (and workflow_dispatch), verifies SHA-256 checksums, bundles yt-dlp + quickjs-ng (qjs) in each platform archive (plus mpv.exe on x86_64-pc-windows-msvc), and publishes the GitHub Release.
  • Sibling-binary resolution (crates/lastwave-audio/src/lib.rs, stream.rs, auth.rs, doctor.rs): Adds lastwave_audio::program_path so mpv, yt-dlp, and qjs resolve next to lastwave(.exe) before falling back to PATH (and passes --js-runtimes quickjs:<path> when sibling qjs is present).
  • One-command installers & lastwave registration (scripts/install.ps1, scripts/install.sh, README.md, docs/INSTALL.md):
    • Windows: irm https://raw.githubusercontent.com/Pyrexus/LastWave-CLI/main/scripts/install.ps1 | iex — PS 5.1 safe (-UseBasicParsing, TLS 1.2, safe $PSScriptRoot guard), installs from GitHub Release (or source checkout/clone fallback), ensures mpv/yt-dlp/qjs, and registers %LOCALAPPDATA%\LastWave\bin in User PATH + App Paths\lastwave.exe.
    • macOS/Linux: curl -fsSL https://raw.githubusercontent.com/Pyrexus/LastWave-CLI/main/scripts/install.sh | sh — installs release/source + mpv + ~/.local/bin shell registration + Linux desktop launcher.

Validation (Windows 11 x86_64, LASTWAVE_REQUIRE_MPV=1 with mpv v0.42.0)

  • Windows PowerShell 5.1 [scriptblock]::Create((Get-Content scripts\install.ps1 -Raw)) -WhatIf (simulating irm ... | iex) — passed
  • sh -n scripts/install.sh — passed
  • cargo fmt --all --check — passed
  • cargo clippy --workspace --all-targets --locked -- -D warnings — passed (0 errors)
  • cargo test --workspace --locked -- --test-threads=1 — passed (including tests::finds_sibling_tool_before_falling_back_to_name, lastwave-audio 11 unit + 2 real-mpv fixtures, and all workspace crates)
  • cargo check -p lastwave --no-default-features --locked — passed

@Pyrexus
Pyrexus merged commit c4b99ea into Clash-Projects:main Nov 29, 2026
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