Terminal interface to find, download, and stream movies, TV shows, and live TV using local media players.
feat(CI): support native Android aarch64 prebuilt releases via GitHub Actions
Samir Hossains2b988b0279a6
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 9916cfc..b6bb223 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -74,6 +74,8 @@ jobs:os: ubuntu-latest- target: aarch64-unknown-linux-muslos: ubuntu-latest+ - target: aarch64-linux-android+ os: ubuntu-latest- target: x86_64-apple-darwinos: macos-latest- target: aarch64-apple-darwin@@ -122,6 +124,8 @@ jobs:tar -czvf MovieBox_Linux_x64.tar.gz -C dist .elif [ "${{ matrix.target }}" == "aarch64-unknown-linux-musl" ]; thentar -czvf MovieBox_Linux_arm64.tar.gz -C dist .+ elif [ "${{ matrix.target }}" == "aarch64-linux-android" ]; then+ tar -czvf MovieBox_Termux_arm64.tar.gz -C dist .elsetar -czvf moviebox-tui-${{ matrix.target }}.tar.gz -C dist .fidiff --git a/Cargo.lock b/Cargo.lockindex 583d745..8e992df 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -47,6 +47,17 @@ dependencies = ["num-traits",]+[[package]]+name = "async-trait"+version = "0.1.91"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ae36dc4177970ef04fde5178d3e2429882def40e57a451f919c098f72baa6cec"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 3.0.3",+]+[[package]]name = "atomic"version = "0.6.1"@@ -323,6 +334,16 @@ dependencies = ["unicode-segmentation",]+[[package]]+name = "core-foundation"+version = "0.9.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f"+dependencies = [+ "core-foundation-sys",+ "libc",+]+[[package]]name = "core-foundation"version = "0.10.1"@@ -372,6 +393,15 @@ version = "1.2.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "790eea4361631c5e7d22598ecd5723ff611904e3344ce8720784c93e3d83d40b"+[[package]]+name = "crossbeam-channel"+version = "0.5.16"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d85363c37faeca707aef026efa9f3b34d077bce547e48f770770625c6013679e"+dependencies = [+ "crossbeam-utils",+]+[[package]]name = "crossbeam-deque"version = "0.8.7"@@ -520,6 +550,12 @@ dependencies = ["syn 3.0.3",]+[[package]]+name = "data-encoding"+version = "2.11.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4583a4551df46e2792f82ceeac45e850d2e2d5debba0b91f102385cda5b11f06"+[[package]]name = "deltae"version = "0.3.2"@@ -764,21 +800,6 @@ version = "0.2.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb"-[[package]]-name = "foreign-types"-version = "0.3.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1"-dependencies = [- "foreign-types-shared",-]--[[package]]-name = "foreign-types-shared"-version = "0.1.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b"-[[package]]name = "form_urlencoded"version = "1.2.2"@@ -980,6 +1001,76 @@ version = "0.4.3"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"+[[package]]+name = "hickory-net"+version = "0.26.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e2295ed2f9c31e471e1428a8f88a3f0e1f4b27c15049592138d1eebe9c35b183"+dependencies = [+ "async-trait",+ "cfg-if",+ "data-encoding",+ "futures-channel",+ "futures-io",+ "futures-util",+ "hickory-proto",+ "idna",+ "ipnet",+ "jni",+ "rand 0.10.2",+ "thiserror 2.0.20",+ "tinyvec",+ "tokio",+ "tracing",+ "url",+]++[[package]]+name = "hickory-proto"+version = "0.26.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0bab31817bfb44672a252e97fe81cd0c18d1b2cf892108922f6818820df8c643"+dependencies = [+ "data-encoding",+ "idna",+ "ipnet",+ "jni",+ "once_cell",+ "prefix-trie",+ "rand 0.10.2",+ "ring",+ "thiserror 2.0.20",+ "tinyvec",+ "tracing",+ "url",+]++[[package]]+name = "hickory-resolver"+version = "0.26.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f0d58d28879ceecde6607729660c2667a081ccdc082e082675042793960f178c"+dependencies = [+ "cfg-if",+ "futures-util",+ "hickory-net",+ "hickory-proto",+ "ipconfig",+ "ipnet",+ "jni",+ "moka",+ "ndk-context",+ "once_cell",+ "parking_lot",+ "rand 0.10.2",+ "resolv-conf",+ "smallvec",+ "system-configuration",+ "thiserror 2.0.20",+ "tokio",+ "tracing",+]+[[package]]name = "hmac"version = "0.13.0"@@ -1082,22 +1173,6 @@ dependencies = ["tower-service",]-[[package]]-name = "hyper-tls"-version = "0.6.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "70206fc6890eaca9fde8a0bf71caa2ddfc9fe045ac9e5c70df101a7dbde866e0"-dependencies = [- "bytes",- "http-body-util",- "hyper",- "hyper-util",- "native-tls",- "tokio",- "tokio-native-tls",- "tower-service",-]-[[package]]name = "hyper-util"version = "0.1.20"@@ -1312,11 +1387,27 @@ dependencies = ["syn 3.0.3",]+[[package]]+name = "ipconfig"+version = "0.3.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4d40460c0ce33d6ce4b0630ad68ff63d6661961c48b6dba35e5a4d81cfb48222"+dependencies = [+ "socket2",+ "widestring",+ "windows-registry",+ "windows-result 0.4.1",+ "windows-sys 0.61.2",+]+[[package]]name = "ipnet"version = "2.12.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "6a756c3fac73139e83f14c2d742155dd2b78d3ee56597b419a0579b7bdd6dd78"+dependencies = [+ "serde",+][[package]]name = "is-docker"@@ -1627,6 +1718,23 @@ dependencies = ["windows-sys 0.61.2",]+[[package]]+name = "moka"+version = "0.12.16"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4293f18e7567a1caf3c584855554377025c65e0aa445344d04171f5ad63d19b9"+dependencies = [+ "crossbeam-channel",+ "crossbeam-epoch",+ "crossbeam-utils",+ "equivalent",+ "parking_lot",+ "portable-atomic",+ "smallvec",+ "tagptr",+ "uuid",+]+[[package]]name = "moviebox-tui"version = "0.1.10"@@ -1671,21 +1779,10 @@ dependencies = [][[package]]-name = "native-tls"-version = "0.2.18"+name = "ndk-context"+version = "0.1.1"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "465500e14ea162429d264d44189adc38b199b62b1c21eea9f69e4b73cb03bbf2"-dependencies = [- "libc",- "log",- "openssl",- "openssl-probe",- "openssl-sys",- "schannel",- "security-framework",- "security-framework-sys",- "tempfile",-]+checksum = "27b02d87554356db9e9a873add8782d4ea6e3e58ea071a9adb9a2e8ddb884a8b"[[package]]name = "new_debug_unreachable"@@ -1766,6 +1863,10 @@ name = "once_cell"version = "1.21.4"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"+dependencies = [+ "critical-section",+ "portable-atomic",+][[package]]name = "open"@@ -1777,49 +1878,12 @@ dependencies = ["libc",]-[[package]]-name = "openssl"-version = "0.10.81"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "77823a27f0babb03091cb9ed9ef80af3b39dbc82f97e8fa530374b7dafd87a45"-dependencies = [- "bitflags 2.13.1",- "cfg-if",- "foreign-types",- "libc",- "openssl-macros",- "openssl-sys",-]--[[package]]-name = "openssl-macros"-version = "0.1.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c"-dependencies = [- "proc-macro2",- "quote",- "syn 2.0.119",-]-[[package]]name = "openssl-probe"version = "0.2.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe"-[[package]]-name = "openssl-sys"-version = "0.9.117"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b47e7e6bb2c38cd930d25a23b40fa52e068c10e85f3e03a7f5ba5aaca5713695"-dependencies = [- "cc",- "libc",- "pkg-config",- "vcpkg",-]-[[package]]name = "option-ext"version = "0.2.0"@@ -2121,6 +2185,17 @@ version = "0.1.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c"+[[package]]+name = "prefix-trie"+version = "0.8.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4cf6e3177f0684016a5c209b00882e15f8bdd3f3bb48f0491df10cd102d0c6e7"+dependencies = [+ "either",+ "ipnet",+ "num-traits",+]+[[package]]name = "proc-macro2"version = "1.0.107"@@ -2542,16 +2617,16 @@ dependencies = ["base64 0.22.1","bytes","futures-core",+ "hickory-resolver","http","http-body","http-body-util","hyper","hyper-rustls",- "hyper-tls","hyper-util","js-sys","log",- "native-tls",+ "once_cell","percent-encoding","pin-project-lite","quinn",@@ -2562,7 +2637,6 @@ dependencies = ["serde_json","sync_wrapper","tokio",- "tokio-native-tls","tokio-rustls","tower","tower-http",@@ -2573,6 +2647,12 @@ dependencies = ["web-sys",]+[[package]]+name = "resolv-conf"+version = "0.7.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1e061d1b48cb8d38042de4ae0a7a6401009d6143dc80d2e2d6f31f0bdd6470c7"+[[package]]name = "ring"version = "0.17.14"@@ -2671,7 +2751,7 @@ version = "0.7.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "26d1e2536ce4f35f4846aa13bff16bd0ff40157cdb14cc056c7b14ba41233ba0"dependencies = [- "core-foundation",+ "core-foundation 0.10.1","core-foundation-sys","jni","log",@@ -2771,7 +2851,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d"dependencies = ["bitflags 2.13.1",- "core-foundation",+ "core-foundation 0.10.1","core-foundation-sys","libc","security-framework-sys",@@ -3091,24 +3171,38 @@ dependencies = [][[package]]-name = "tap"-version = "1.0.1"+name = "system-configuration"+version = "0.7.0"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369"+checksum = "a13f3d0daba03132c0aa9767f98351b3488edc2c100cda2d2ec2b04f3d8d3c8b"+dependencies = [+ "bitflags 2.13.1",+ "core-foundation 0.9.4",+ "system-configuration-sys",+][[package]]-name = "tempfile"-version = "3.27.0"+name = "system-configuration-sys"+version = "0.6.0"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"+checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4"dependencies = [- "fastrand",- "getrandom 0.4.3",- "once_cell",- "rustix 1.1.4",- "windows-sys 0.61.2",+ "core-foundation-sys",+ "libc",]+[[package]]+name = "tagptr"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7b2093cf4c8eb1e67749a6762251bc9cd836b6fc171623bd0a9d324d37af2417"++[[package]]+name = "tap"+version = "1.0.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369"+[[package]]name = "tendril"version = "0.5.1"@@ -3306,16 +3400,6 @@ dependencies = ["syn 3.0.3",]-[[package]]-name = "tokio-native-tls"-version = "0.3.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2"-dependencies = [- "native-tls",- "tokio",-]-[[package]]name = "tokio-rustls"version = "0.26.4"@@ -3479,12 +3563,6 @@ dependencies = ["wasm-bindgen",]-[[package]]-name = "vcpkg"-version = "0.2.15"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"-[[package]]name = "version_check"version = "0.9.5"@@ -3718,6 +3796,12 @@ dependencies = ["safe_arch",]+[[package]]+name = "widestring"+version = "1.2.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "72069c3113ab32ab29e5584db3c6ec55d416895e60715417b5b883a357c3e471"+[[package]]name = "winapi"version = "0.3.9"@@ -3835,6 +3919,17 @@ version = "0.2.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"+[[package]]+name = "windows-registry"+version = "0.6.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "02752bf7fbdcce7f2a27a742f798510f3e5ad88dbe84871e5168e2120c3d5720"+dependencies = [+ "windows-link",+ "windows-result 0.4.1",+ "windows-strings 0.5.1",+]+[[package]]name = "windows-result"version = "0.2.0"diff --git a/Cargo.toml b/Cargo.tomlindex 8396ade..77dff45 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -61,5 +61,5 @@ strip = truereqwest = { version = "0.13.4", default-features = false, features = ["json", "rustls"] }[target.'cfg(target_os = "android")'.dependencies]-reqwest = { version = "0.13.4", default-features = false, features = ["json", "native-tls"] }+reqwest = { version = "0.13.4", default-features = false, features = ["json", "rustls", "hickory-dns"] }diff --git a/install.sh b/install.shindex a446906..7daa045 100755--- a/install.sh+++ b/install.sh@@ -6,10 +6,6 @@ log_success() { echo -e "\033[0;32m$1\033[0m"; }log_warn() { echo -e "\033[1;33mWARNING: $1\033[0m"; }log_err() { echo -e "\033[0;31mERROR: $1\033[0m"; exit 1; }-if [ -n "${PREFIX:-}" ] && [[ "$PREFIX" == *com.termux* ]]; then- log_err "Prebuilt binaries are not available for Termux yet. Please install via Cargo:\n\n pkg install rust openssl pkg-config\n cargo install moviebox-tui --locked\n"-fi-INSTALL_DIR="/usr/local/bin"BIN_NAME="moviebox-tui"@@ -45,6 +41,13 @@ ARCH="$(uname -m)"if [ "$OS" = "Darwin" ]; thenFILE="MovieBox_macOS_Universal.tar.gz"+elif [ -n "${PREFIX:-}" ] && [[ "$PREFIX" == *com.termux* ]]; then+ if [ "$ARCH" = "aarch64" ] || [ "$ARCH" = "arm64" ]; then+ FILE="MovieBox_Termux_arm64.tar.gz"+ INSTALL_DIR="$PREFIX/bin"+ else+ log_err "Unsupported Termux architecture ($ARCH). Only arm64/aarch64 is natively hosted. Please use cargo install."+ fielif [ "$OS" = "Linux" ]; thenif [ "$ARCH" = "x86_64" ]; thenFILE="MovieBox_Linux_x64.tar.gz"