Terminal interface to find, download, and stream movies, TV shows, and live TV using local media players.
fix(release): harden installer error traps, validate release matrix, and update docs
Samir Hossains380d4879668e
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 47b3e1b..82a9ce9 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -224,6 +224,23 @@ jobs:echo "has_notes=false" >> $GITHUB_OUTPUTfi+ - name: Validate all expected release artifacts exist+ run: |+ EXPECTED=(+ "MovieBox_Linux_x64.tar.gz"+ "MovieBox_Linux_arm64.tar.gz"+ "MovieBox_macOS_Universal.tar.gz"+ "MovieBox_Windows_x64.zip"+ "MovieBox_Windows_arm64.zip"+ )+ for asset in "${EXPECTED[@]}"; do+ if ! find artifacts -type f -name "$asset" | grep -q .; then+ echo "::error::Required release artifact '$asset' was not produced."+ exit 1+ fi+ echo "✔ Found required artifact: $asset"+ done+- name: Generate checksumsrun: |find artifacts -type f \( -name 'MovieBox_*.tar.gz' -o -name 'MovieBox_*.zip' \) -print0 |diff --git a/CHANGELOG.md b/CHANGELOG.mdindex da0c5a6..a26df8f 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -4,7 +4,7 @@### Added- **Comprehensive QA & Regression Test Architecture**:- - Introduced a 31-test automated suite covering critical algorithmic boundaries, state reconciliation, crypto HMAC signing, download chunk arithmetic, and URL/stem security.+ - Introduced a 45-test automated suite covering critical algorithmic boundaries, state reconciliation, crypto HMAC signing, download chunk arithmetic, and URL/stem security.- Added structured integration tests in `tests/` (`history_reconciliation.rs`, `cache_lifecycle.rs`, `player_integration.rs`, `m3u_integration.rs`, `addons_manifest.rs`, `download_integration.rs`, `url_security.rs`) and test fixtures (`tests/fixtures/`).- Added [`docs/testing.md`](docs/testing.md) detailing test architecture, command references, and manual QA procedures.- **Playback Tracking & Watch History Progress**:diff --git a/README.md b/README.mdindex 57c1679..8d4dd15 100644--- a/README.md+++ b/README.md@@ -91,12 +91,14 @@ Or manual installation:### Android (Termux)-Using the automated installer (installs prebuilt ARM64 binary into `$PREFIX/bin`):+Using the automated installer (installs prebuilt static ARM64 binary into `$PREFIX/bin`):```bashcurl -fsSL https://raw.githubusercontent.com/mesamirh/MovieBox-Tui/main/install.sh -o install.sh && bash install.shtermux-setup-storage```+*(Or compile natively via Cargo: `pkg install rust && cargo install moviebox-tui --locked`)*+---<details>diff --git a/install.sh b/install.shindex d010543..ec44b6c 100755--- a/install.sh+++ b/install.sh@@ -301,10 +301,7 @@ if [ -n "${PREFIX:-}" ] && [[ "$PREFIX" == *com.termux* ]]; thenIS_TERMUX=1fi-if [ "$OS" = "Darwin" ]; then- FILE="MovieBox_macOS_Universal.tar.gz"- PLATFORM_NAME="macOS (Universal)"-elif [ "$IS_TERMUX" -eq 1 ]; then+if [ "$IS_TERMUX" -eq 1 ]; thenif [ "$ARCH" = "aarch64" ] || [ "$ARCH" = "arm64" ]; thenFILE="MovieBox_Linux_arm64.tar.gz"PLATFORM_NAME="Android Termux (arm64)"@@ -312,6 +309,9 @@ elif [ "$IS_TERMUX" -eq 1 ]; thenlog_error "Unsupported Termux architecture ($ARCH). Only arm64/aarch64 is hosted. Use 'cargo install moviebox-tui'."exit 1fi+elif [ "$OS" = "Darwin" ]; then+ FILE="MovieBox_macOS_Universal.tar.gz"+ PLATFORM_NAME="macOS (Universal)"elif [ "$OS" = "Linux" ]; thenif [ "$ARCH" = "x86_64" ]; thenFILE="MovieBox_Linux_x64.tar.gz"@@ -350,7 +350,7 @@ resolve_version() {printf "%s" "$tag" > "$TMP_VER_FILE"}-run_spinner "[1/4] Checking environment & resolving version" resolve_version+run_spinner "[1/4] Checking environment & resolving version" resolve_version || exit 1TARGET_VERSION=$(cat "$TMP_VER_FILE" 2>/dev/null || true)rm -f "$TMP_VER_FILE"@@ -421,7 +421,7 @@ download_files() {curl -fsSL "$CHECKSUM_URL" -o "$TMP_DIR/SHA256SUMS"}-run_spinner "[2/4] Downloading $FILE" download_files+run_spinner "[2/4] Downloading $FILE" download_files || exit 1log_success "[2/4] Downloaded $FILE"verify_checksum() {@@ -445,7 +445,7 @@ verify_checksum() {[ "$actual_sha" = "$expected_sha" ]}-run_spinner "[3/4] Verifying SHA256 checksum" verify_checksum+run_spinner "[3/4] Verifying SHA256 checksum" verify_checksum || exit 1log_success "[3/4] Cryptographic checksum verified"install_binary() {@@ -465,7 +465,7 @@ install_binary() {chmod 755 "$APP_PATH"}-run_spinner "[4/4] Installing binary to $INSTALL_DIR" install_binary+run_spinner "[4/4] Installing binary to $INSTALL_DIR" install_binary || exit 1log_success "[4/4] Binary installed to $APP_PATH"SHELL_MODIFIED=""