misterdownloadmanager: The ultimate open-source, clean-room download manager written from scratch in pure Rust for Windows, Mac, and Linux
Rust bittorrent-clientdebriddownload-acceleratordownload-managerdownloadmanagereguifile-downloadergallery-dlidmidm-alternativeinternet-download-managerm3u8-downloadermagnetplaylist-downloaderreal-debridrusttorrent-clientvideo-downloaderyoutube-downloaderyt-dlp
Linux release files without "-experimental"; README without the Sponsors counter (#284)
Ahmed Nefzaoui071dd1b86f14
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 6223436b..1ab37131 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -1,7 +1,7 @@# Builds the downloads: Windows (tools/installer/build.ps1: installer, portable zip, plain zip),# the browser extensions (tools/extension/pack.ps1: Chromium zip, Firefox .xpi),-# and, experimental and not yet tested by us, Linux (build-linux.sh: AppImage, tar.gz, .deb,-# .rpm) and macOS (build-macos.sh: a .dmg for Apple Silicon, one for Intel).+# Linux (build-linux.sh: AppImage, tar.gz, .deb, .rpm) and, experimental and not yet tested by+# us, macOS (build-macos.sh: a .dmg for Apple Silicon, one for Intel; named "-experimental").# - A pushed tag vX.Y.Z (matching Cargo.toml's version) publishes a GitHub release with them and# SHA256SUMS.txt, its notes from CHANGELOG.md (Help -> Check for updates sees it at once). The# release waits for Windows and the extensions: a failed Linux or macOS build leaves those out.@@ -305,15 +305,15 @@ jobs:}# Notes: the version's section of CHANGELOG.md ("## [X.Y.Z]" up to the next "## "),# else GitHub's list of changes since the last tag; first, the invitation to try the- # macOS and Linux builds when they are there.+ # macOS builds when they are there (Linux's files are no longer "-experimental").$v = "${{ github.ref_name }}".TrimStart("v")$log = Get-Content CHANGELOG.md -Raw -ErrorAction SilentlyContinue$m = [regex]::Match("$log", "(?ms)^## \[$([regex]::Escape($v))\][^\n]*\n(.*?)(?=^## |\z)")$title = "Mister Download Manager ${{ github.ref_name }}"$invite = ""if ($files.Name -like "*-experimental*") {- $invite = "**New: macOS and Linux.** The ``-experimental`` files are fresh builds for Mac " +- "(Apple Silicon and Intel) and Linux that we haven't tried ourselves yet. Want to be among " ++ $invite = "**On a Mac?** The ``-experimental`` files are fresh builds for Mac " ++ "(Apple Silicon and Intel) that we haven't tried ourselves yet. Want to be among " +"the first? Give them a go and tell us how it went in an " +"[issue](https://github.com/${{ github.repository }}/issues).`n`n"}diff --git a/CHANGELOG.md b/CHANGELOG.mdindex e4d76a2d..aae09289 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -449,6 +449,10 @@ choose. And Linux, checked on a real desktop with every change.it carries the address of its updates, and each release has its `.AppImage.zsync`, soAppImageLauncher, Gear Lever and AppImageUpdate download only the parts that changed.**Update now** works as before.+- **The Linux files are named without `-experimental`**: the AppImage, .deb, .rpm and .tar.gz+ are `MisterDownloadManager-<version>-linux-x86_64.<ext>`, and the .deb's and .rpm's+ descriptions no longer call them an experimental build. Update now, the AppImage tools and the+ website find them by either name. The macOS .dmg files keep `-experimental`.#### The websitediff --git a/README.md b/README.mdindex 1ea4f85e..1c4c5b6b 100644--- a/README.md+++ b/README.md@@ -55,7 +55,6 @@<a href="https://github.com/anefzaoui/misterdownloadmanager/stargazers"><img src="https://img.shields.io/github/stars/anefzaoui/misterdownloadmanager?logo=github" alt="GitHub stars"></a><a href="https://addons.mozilla.org/firefox/addon/mister-download-manager/"><img src="https://img.shields.io/amo/v/mister-download-manager?logo=firefoxbrowser&label=Firefox%20add-on" alt="Firefox add-on"></a><a href="https://chromewebstore.google.com/detail/mister-download-manager/ejoleppdfgjdndddcjoehopknmlglojp"><img src="https://img.shields.io/chrome-web-store/v/ejoleppdfgjdndddcjoehopknmlglojp?logo=googlechrome&label=Chrome%20Web%20Store" alt="Chrome Web Store"></a>- <a href="https://github.com/sponsors/anefzaoui"><img src="https://img.shields.io/github/sponsors/anefzaoui?logo=githubsponsors&label=Sponsors" alt="GitHub Sponsors"></a><a href="LICENSE"><img src="https://img.shields.io/github/license/anefzaoui/misterdownloadmanager" alt="GPL-3.0 license"></a></p>@@ -116,15 +115,15 @@ one:MDM runs on Linux too, tested on Ubuntu 24.04, Debian 12 and Fedora with GNOME, KDE Plasma, Xfceand Cinnamon, on X11 and in Wayland sessions: the tray, dark mode, browser integration (Ubuntu'sSnap Firefox included) and the packages' installs. Not there yet: screen readers (Orca) don't-read its windows, and Flatpak browsers can't reach it. The files still carry `-experimental` in-their names ([more](docs/getting-started.md#on-linux)).+read its windows, and Flatpak browsers can't reach it ([more](docs/getting-started.md#on-linux)).+Up to version 0.2.4, the files' names end in `-experimental`.| File | For || --- | --- |-| `...-linux-x86_64-experimental.deb` | Ubuntu, Debian, Mint, Pop!_OS: `sudo apt install ./<file>.deb`. |-| `...-linux-x86_64-experimental.rpm` | Fedora, openSUSE, RHEL: `sudo dnf install ./<file>.rpm`. |-| `...-linux-x86_64-experimental.AppImage` | Any Linux. Make it executable and run it. |-| `...-linux-x86_64-experimental.tar.gz` | The plain programs, for any distribution. |+| `...-linux-x86_64.deb` | Ubuntu, Debian, Mint, Pop!_OS: `sudo apt install ./<file>.deb`. |+| `...-linux-x86_64.rpm` | Fedora, openSUSE, RHEL: `sudo dnf install ./<file>.rpm`. |+| `...-linux-x86_64.AppImage` | Any Linux. Make it executable and run it. |+| `...-linux-x86_64.tar.gz` | The plain programs, for any distribution. |<p align="center"><picture>diff --git a/ROADMAP.md b/ROADMAP.mdindex 8b6ac0a4..32b50139 100644--- a/ROADMAP.md+++ b/ROADMAP.md@@ -36,6 +36,8 @@ Everything below ships together, in the next release.[#264](https://github.com/anefzaoui/misterdownloadmanager/issues/264)- ✅ Update now finds the Linux and macOS release files whether or not their names end in"-experimental"+- ✅ The Linux release files are named without "-experimental" (`…-linux-x86_64.deb` and the+ others), in the packages' descriptions too; the macOS ones keep it- ✅ Linux packages checked in clean Ubuntu 24.04, Debian 12 and Fedora 45 systems: install, thecommand line, the window, the desktop entry and icon, browser integration and uninstall; the.deb and .rpm now bring the keyboard library MDM's window needs under X11 and the CA@@ -381,8 +383,8 @@ Everything below ships together, in the next release.titles on sway too); the .deb and .rpm installed in clean Ubuntu, Debian and Fedora systems, theAppImage and the tar.gz; the tray, Dark Mode support and Launch on startup on all four desktops;the Snap Firefox, Google Chrome and Brave reaching MDM- ([#164](https://github.com/anefzaoui/misterdownloadmanager/issues/164)). The release files keep- "-experimental" in their names for now+ ([#164](https://github.com/anefzaoui/misterdownloadmanager/issues/164)), and its release files+ named without "-experimental"- ✅ Every screenshot taken again on Windows and Linux (smaller files, WebP), and every page of thedocs, the README and the website brought up to date([#186](https://github.com/anefzaoui/misterdownloadmanager/issues/186))diff --git a/crates/tools/src/update.rs b/crates/tools/src/update.rsindex d6c8d652..dadd9d53 100644--- a/crates/tools/src/update.rs+++ b/crates/tools/src/update.rs@@ -109,9 +109,10 @@ impl Install {];/// The release files of `version` that replace this kind of copy (the names- /// tools/installer/*.sh and build.ps1 give them), the one to take first first. The Linux and- /// macOS files were named `…-experimental` up to 0.2.x; a release may name them either way,- /// so both are looked for, the plain name first. None for a build from source.+ /// tools/installer/*.sh and build.ps1 give them), the one to take first first. The Linux files+ /// are named without "-experimental" from the release after 0.2.4 (build-linux.sh), and the+ /// macOS ones may lose it too: the plain name is looked for first, then the `…-experimental`+ /// one of the releases before. None for a build from source.pub fn assets(self, version: &str) -> Vec<String> {let (tail, ext) = match self {Install::Installer => ("setup", ".exe"),@@ -457,6 +458,32 @@ Connection: closeassert_eq!(labels.len(), Install::ALL.len());}+ /// The Linux names looked for first are the ones tools/installer/build-linux.sh gives its+ /// files ("$name" plus the extension), so a release and Update now agree.+ #[test]+ fn the_linux_names_are_build_linux_sh_s() {+ let script = include_str!("../../../tools/installer/build-linux.sh").replace("\r\n", "\n");+ assert!(+ script.contains("\nname=\"MisterDownloadManager-$version-linux-x86_64\"\n"),+ "build-linux.sh names its files differently"+ );+ for (install, ext) in [+ (Install::TarGz, ".tar.gz"),+ (Install::AppImage, ".AppImage"),+ (Install::Deb, ".deb"),+ (Install::Rpm, ".rpm"),+ ] {+ assert!(+ script.contains(&format!("\"$dist/$name{ext}\"")),+ "build-linux.sh makes no {ext}"+ );+ assert_eq!(+ install.assets("1.0.0")[0],+ format!("MisterDownloadManager-1.0.0-linux-x86_64{ext}")+ );+ }+ }+/// Linux: the package manager that owns the program decides; the plain programs elsewhere.#[test]fn a_linux_copy_knows_its_package_manager() {diff --git a/docs/getting-started.md b/docs/getting-started.mdindex 5be0587d..c4003140 100644--- a/docs/getting-started.md+++ b/docs/getting-started.md@@ -18,15 +18,16 @@ Every version is on the [Releases](https://github.com/anefzaoui/misterdownloadma### On LinuxMDM runs on 64-bit Linux with a desktop session. It is tested on Ubuntu 24.04, Debian 12 and-Fedora, with GNOME, KDE Plasma, Xfce and Cinnamon, on X11 and in Wayland sessions. The release-files still carry `-experimental` in their names:+Fedora, with GNOME, KDE Plasma, Xfce and Cinnamon, on X11 and in Wayland sessions. Pick one+of these files (up to version 0.2.4, their names end in `-experimental`, as in+`...-linux-x86_64-experimental.deb`):| File | What it is ||---|---|-| `...-linux-x86_64-experimental.deb` | For Ubuntu, Debian, Mint and Pop!_OS: `sudo apt install ./<file>.deb`. It brings the libraries MDM needs. |-| `...-linux-x86_64-experimental.rpm` | For Fedora, openSUSE and RHEL: `sudo dnf install ./<file>.rpm`. It brings the libraries MDM needs. |-| `...-linux-x86_64-experimental.AppImage` | Runs on most distributions: make it executable (`chmod +x`) and run it. It updates itself in place (**Help → Check for updates**). |-| `...-linux-x86_64-experimental.tar.gz` | The plain programs, for any distribution. |+| `...-linux-x86_64.deb` | For Ubuntu, Debian, Mint and Pop!_OS: `sudo apt install ./<file>.deb`. It brings the libraries MDM needs. |+| `...-linux-x86_64.rpm` | For Fedora, openSUSE and RHEL: `sudo dnf install ./<file>.rpm`. It brings the libraries MDM needs. |+| `...-linux-x86_64.AppImage` | Runs on most distributions: make it executable (`chmod +x`) and run it. It updates itself in place (**Help → Check for updates**). |+| `...-linux-x86_64.tar.gz` | The plain programs, for any distribution. |*MDM on Ubuntu's GNOME desktop, with the desktop's own file icons.*diff --git a/tools/installer/build-linux.sh b/tools/installer/build-linux.shindex fa03c93a..2971462d 100755--- a/tools/installer/build-linux.sh+++ b/tools/installer/build-linux.sh@@ -1,10 +1,12 @@#!/usr/bin/env bash-# Builds the Linux release into target/dist/ (experimental: built by CI, not yet tested by us):-# MisterDownloadManager-<version>-linux-x86_64-experimental.AppImage runs on most distros-# MisterDownloadManager-<version>-linux-x86_64-experimental.AppImage.zsync its updates (AppImage tools)-# MisterDownloadManager-<version>-linux-x86_64-experimental.tar.gz the plain programs-# MisterDownloadManager-<version>-linux-x86_64-experimental.deb Debian, Ubuntu, Mint-# MisterDownloadManager-<version>-linux-x86_64-experimental.rpm Fedora, RHEL, openSUSE+# Builds the Linux release into target/dist/ (up to 0.2.4, each name ended in "-experimental"):+# MisterDownloadManager-<version>-linux-x86_64.AppImage runs on most distros+# MisterDownloadManager-<version>-linux-x86_64.AppImage.zsync its updates (AppImage tools)+# MisterDownloadManager-<version>-linux-x86_64.tar.gz the plain programs+# MisterDownloadManager-<version>-linux-x86_64.deb Debian, Ubuntu, Mint+# MisterDownloadManager-<version>-linux-x86_64.rpm Fedora, RHEL, openSUSE+# Update now (crates/tools/src/update.rs), the website (tools/website/build.py) and the docs+# look for these names, and still for the "-experimental" ones of older releases.# Needs: cargo, pwsh (the extension), python3 with Pillow (the icon), dpkg-deb, rpmbuild, curl (appimagetool is fetched),# and zsyncmake if the appimagetool fetched doesn't write the .zsync itself.# Build on the oldest Ubuntu you want to support: the programs need its glibc or newer.@@ -15,7 +17,7 @@ dist="$root/target/dist"bin="$root/target/release"version="$(sed -n 's/^version *= *"\([^"]*\)".*/\1/p' "$root/Cargo.toml" | head -1)"[ -n "$version" ] || { echo "no version in Cargo.toml" >&2; exit 1; }-name="MisterDownloadManager-$version-linux-x86_64-experimental"+name="MisterDownloadManager-$version-linux-x86_64"programs=(misterdownloadmanager misterdownloadmanager-nmhost misterdownloadmanager-cli misterdownloadmanager-mcp)if [ "${1:-}" != "--no-build" ]; then@@ -106,7 +108,7 @@ Depends: libc6 (>= $glibc), libgtk-3-0, libgl1, libegl1, libxkbcommon0, libxkbcoSection: netPriority: optionalHomepage: https://github.com/anefzaoui/misterdownloadmanager-Description: Download manager (experimental Linux build)+Description: Download managerSpeeds up downloads with several connections at once, resumes them, catches them from thebrowser, and downloads videos and torrents.EOF@@ -119,7 +121,7 @@ cat > "$rpm/SPECS/mdm.spec" <<EOFName: misterdownloadmanagerVersion: $versionRelease: 1-Summary: Download manager (experimental Linux build)+Summary: Download managerLicense: GPL-3.0-or-laterURL: https://github.com/anefzaoui/misterdownloadmanagerRequires: glibc >= $glibc, gtk3, mesa-libGL, mesa-libEGL, libxkbcommon, libxkbcommon-x11, ca-certificates@@ -160,7 +162,7 @@ curl -fsSL -o "$tool" \chmod +x "$tool"# Update information (#24): AppImageLauncher, Gear Lever and AppImageUpdate read it from the# AppImage, find the latest release's .zsync and download only the parts that changed. MDM's own-# Update now doesn't need it. The pattern also matches a later name without "-experimental".+# Update now doesn't need it. The pattern also matches the names up to 0.2.4, with "-experimental".update="gh-releases-zsync|anefzaoui|misterdownloadmanager|latest|MisterDownloadManager-*-linux-x86_64*.AppImage.zsync"# No FUSE on CI runners: the tool runs from its own extracted copy.# zstd at its strongest level (#25; unpacking is as fast): the tool's 128K blocks stay, as 1Mdiff --git a/tools/lab/update/upd-lin.sh b/tools/lab/update/upd-lin.shindex 426d4aaa..f7894619 100644--- a/tools/lab/update/upd-lin.sh+++ b/tools/lab/update/upd-lin.sh@@ -60,8 +60,8 @@ release() { # release <name> <kind targz|file> <asset> [mkrel args]--kind "$kind" --program "$bin/misterdownloadmanager" --program-name misterdownloadmanager "$@" |sed 's/^/ /' | tee -a "$work/log.txt"}-TGZ=MisterDownloadManager-9.9.9-linux-x86_64-experimental.tar.gz-APP=MisterDownloadManager-9.9.9-linux-x86_64-experimental.AppImage+TGZ=MisterDownloadManager-9.9.9-linux-x86_64.tar.gz+APP=MisterDownloadManager-9.9.9-linux-x86_64.AppImagelog "making the fake releases (throwaway keys in $keys)"release targz-good targz $TGZrelease targz-bad-hash targz $TGZ --sums baddiff --git a/tools/website/build.py b/tools/website/build.pyindex 01ad1377..e5da5c9e 100644--- a/tools/website/build.py+++ b/tools/website/build.py@@ -117,6 +117,16 @@ def mac_file(arch: str) -> str:return f"{RELEASE}-macos-{arch}-experimental.dmg"+def linux_file(ext: str) -> str:+ """The Linux file ending in `ext` (.AppImage, .deb, .rpm, .tar.gz): named without+ "-experimental" from the release after 0.2.4 (tools/installer/build-linux.sh), with it in a+ release from before."""+ old = f"MisterDownloadManager-{VERSION}-linux-x86_64-experimental{ext}"+ if any(a.get("name") == old for a in LATEST.get("assets", [])):+ return f"{RELEASE}-linux-x86_64-experimental{ext}"+ return f"{RELEASE}-linux-x86_64{ext}"++VERSION = published_version()SETUP_SIZE = setup_size()TODAY = datetime.date.today().isoformat()@@ -127,10 +137,10 @@ FILES = {"zip": f"{RELEASE}-x64.zip","dmg_arm64": mac_file("arm64"),"dmg_intel": mac_file("x86_64"),- "appimage": f"{RELEASE}-linux-x86_64-experimental.AppImage",- "deb": f"{RELEASE}-linux-x86_64-experimental.deb",- "rpm": f"{RELEASE}-linux-x86_64-experimental.rpm",- "tar": f"{RELEASE}-linux-x86_64-experimental.tar.gz",+ "appimage": linux_file(".AppImage"),+ "deb": linux_file(".deb"),+ "rpm": linux_file(".rpm"),+ "tar": linux_file(".tar.gz"),"chromium": f"{RELEASE}-extension-chromium.zip","firefox": f"{RELEASE}-extension-firefox.xpi","sums": f"{REPO}/releases/download/v{VERSION}/SHA256SUMS.txt",