Repository navigation
feat(packaging): unified GitHub release bundle and one-command PATH installer - #2
Merged
Conversation
…and one-command installer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem & Resulting Behavior
Previously, users had to manually clone/download
lastwaveand separately install and addmpv/yt-dlp/ JS runtime toPATH, andscripts/install.ps1failed withCannot bind argument to parameter 'Path' because it is an empty stringwhen piped viairm ... | iexin Windows PowerShell 5.1.This PR packages everything together on GitHub Releases and provides a single one-command installer that sets up and registers
lastwaveonPATH:.github/workflows/release.yml): Triggers onv*tags (andworkflow_dispatch), verifies SHA-256 checksums, bundlesyt-dlp+quickjs-ng(qjs) in each platform archive (plusmpv.exeonx86_64-pc-windows-msvc), and publishes the GitHub Release.crates/lastwave-audio/src/lib.rs,stream.rs,auth.rs,doctor.rs): Addslastwave_audio::program_pathsompv,yt-dlp, andqjsresolve next tolastwave(.exe)before falling back toPATH(and passes--js-runtimes quickjs:<path>when siblingqjsis present).lastwaveregistration (scripts/install.ps1,scripts/install.sh,README.md,docs/INSTALL.md):irm https://raw.githubusercontent.com/Pyrexus/LastWave-CLI/main/scripts/install.ps1 | iex— PS 5.1 safe (-UseBasicParsing, TLS 1.2, safe$PSScriptRootguard), installs from GitHub Release (or source checkout/clone fallback), ensuresmpv/yt-dlp/qjs, and registers%LOCALAPPDATA%\LastWave\binin UserPATH+App Paths\lastwave.exe.curl -fsSL https://raw.githubusercontent.com/Pyrexus/LastWave-CLI/main/scripts/install.sh | sh— installs release/source +mpv+~/.local/binshell registration + Linux desktop launcher.Validation (Windows 11 x86_64,
LASTWAVE_REQUIRE_MPV=1withmpv v0.42.0)[scriptblock]::Create((Get-Content scripts\install.ps1 -Raw)) -WhatIf(simulatingirm ... | iex) — passedsh -n scripts/install.sh— passedcargo fmt --all --check— passedcargo clippy --workspace --all-targets --locked -- -D warnings— passed (0 errors)cargo test --workspace --locked -- --test-threads=1— passed (includingtests::finds_sibling_tool_before_falling_back_to_name,lastwave-audio11 unit + 2 real-mpvfixtures, and all workspace crates)cargo check -p lastwave --no-default-features --locked— passed