diff --git a/Cargo.lock b/Cargo.lock index 9d04dc1..1b4df4c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2812,7 +2812,7 @@ checksum = "7ebb8d8732c6a6df3d8f032a82911cfc747e00efb95cc46e8d0acd5b5b88570c" [[package]] name = "medlar" -version = "0.1.1" +version = "0.1.2" dependencies = [ "arboard", "chrono", @@ -2837,14 +2837,14 @@ dependencies = [ [[package]] name = "medlar-cli" -version = "0.1.1" +version = "0.1.2" dependencies = [ "medlar-core", ] [[package]] name = "medlar-core" -version = "0.1.1" +version = "0.1.2" dependencies = [ "aes", "arc-swap", @@ -2888,7 +2888,7 @@ dependencies = [ [[package]] name = "medlar-testserver" -version = "0.1.1" +version = "0.1.2" dependencies = [ "md-5", "rcgen", diff --git a/Cargo.toml b/Cargo.toml index f438da7..74206be 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ members = ["crates/*"] resolver = "3" [workspace.package] -version = "0.1.1" +version = "0.1.2" edition = "2024" license = "MIT" diff --git a/docs/releases/0.1.2.md b/docs/releases/0.1.2.md new file mode 100644 index 0000000..cf9a896 --- /dev/null +++ b/docs/releases/0.1.2.md @@ -0,0 +1,49 @@ +# Medlar 0.1.2 + +Fixes and small changes after 0.1.0 (0.1.2 is replaced by this release). Linux x86_64, glibc 2.44 or newer. + +## Files +- `Medlar-0.1.2-x86_64.AppImage` +- `Medlar-0.1.2-Linux-x86_64.tar.gz` (install.sh and uninstall.sh for your home folder) +- `Medlar-0.1.2-arch-x86_64.pkg.tar.zst` (package `medlar-bin`) +- `SHA256SUMS-0.1.2` + +## What changed +- **Names from the server.** A download sent by the browser extension with a placeholder name (`output.bin`, `download`, + no extension) now takes the real name from the server (Content-Disposition, redirect or URL). A name you typed stays. +- **Window raised on arrival.** A link from the browser or the command line shows the window, un-minimises it and asks + for attention (Wayland does not allow stealing focus). +- **Copy and select all in text fields.** Ctrl+C, Ctrl+A, Ctrl+V, Ctrl+X and Ctrl+Z work in a focused field and no + longer trigger app shortcuts. +- **Readable speed.** The speed shown is a 2 second average and changes at most once per second; big jumps show at once. + The drop target uses the same value. The tray tooltip is not smoothed. +- **Progress bar setting.** Settings, Look: "One bar" or "One per part" (default, as before). The Parts tab map stays. +- **Snail mode.** The cap is now 8 kB/s (was 32 kB/s). A saved 32 kB/s moves to 8 kB/s; a value you changed is kept. + A round snail button at the bottom right of the main window turns it on and off; its tooltip shows the shortcut. + +- **Server farms.** Links served by several servers behind one address (for example romsgames.net), which answer with + the same file but their own dates and tags, no longer fail with "File changed on the server". When a reply has other + dates but the same size, Medlar compares 64 KiB of bytes it already has, or that a known server sent, before writing + anything. The same bytes: the download goes on in parts and remembers the farm across restarts. Other bytes or another + size: it still stops with "File changed", and what is already downloaded is kept. Two files are never mixed. +- **Close to the tray on Wayland.** Closing the window (also with the compositor's close, such as Win+Q on niri) now + leaves Medlar running in the tray when "Close to tray" is on and the desktop shows tray icons: downloads, the browser + port and the tray keep going, and the window comes back from the tray, a second start or a link from the browser. + Without a tray, closing quits as before. Ctrl+Q and the tray's Quit always quit. Starting with `--minimised` opens no + window when there is a tray. +- **Start in the tray at login.** With "Start at login" and "Start in the tray" on, Medlar no longer opens its window + when it starts before the desktop's tray: it waits, and its icon shows once the tray is up. Closing never quits it. + On a desktop with no tray at all it stays hidden; starting Medlar again opens the window. + +- **Paste works.** 0.1.0 was built without clipboard support, so no field could paste or copy. Now every field can, and + Ctrl+V on the download list (no field focused) opens the Add window with the copied link. +- **Brought forward on niri.** When a download arrives, Medlar asks niri to focus its window (Settings, Notifications: + "Bring Medlar forward"; on by default). Other desktops get the attention request instead. + +## Known gaps +- The wait for the tray at login was tested only with the tray already up, not across a real login. +- Needs glibc 2.44 or newer; not tested on other systems. +- The snail button can cover the right edge of the last row in a very small window (480x360). +- The snail crawl motion and the raise on a real Wayland desktop were not watched live. +- yt-dlp and ffmpeg are not bundled. +- The farm fix was tested against a local server that imitates one, not against a real farm. diff --git a/packaging/arch/PKGBUILD b/packaging/arch/PKGBUILD index 404fb82..88ca320 100644 --- a/packaging/arch/PKGBUILD +++ b/packaging/arch/PKGBUILD @@ -1,6 +1,6 @@ # Maintainer: astar76 pkgname=medlar-bin -pkgver=0.1.1 +pkgver=0.1.2 pkgrel=1 pkgdesc='Download manager with dynamic parts, queues, video sites and a Material You interface' arch=('x86_64') @@ -15,7 +15,7 @@ conflicts=('medlar') options=('!strip' '!debug') # MEDLAR_TARBALL points at a local copy (offline build); default is the release download. source=("Medlar-$pkgver-Linux-x86_64.tar.gz::${MEDLAR_TARBALL:-$url/releases/download/v$pkgver/Medlar-$pkgver-Linux-x86_64.tar.gz}") -sha256sums=('c585f3bb2646a9115b6850533afa362b70863e676e0b2e98ceb9ca459e22671b') +sha256sums=('3208fcfcbf04f28409c07d5d018f2dcea1ddcb2de5ddc3bd8cd45f4a860e1d30') package() { cd "$srcdir/medlar-$pkgver" @@ -25,7 +25,7 @@ package() { install -Dm644 share/medlar.metainfo.xml "$pkgdir/usr/share/metainfo/medlar.metainfo.xml" install -Dm644 share/Rubik-OFL.txt "$pkgdir/usr/share/licenses/$pkgname/Rubik-OFL.txt" # Medlar's own licence: MIT (Cargo.toml); the project has no LICENSE file yet. - printf 'MIT License\n\nMedlar, 0.1.1. Licensed under the MIT licence.\nThe Rubik font is under the SIL OFL (Rubik-OFL.txt).\n' \ + printf 'MIT License\n\nMedlar, 0.1.2. Licensed under the MIT licence.\nThe Rubik font is under the SIL OFL (Rubik-OFL.txt).\n' \ > "$pkgdir/usr/share/licenses/$pkgname/LICENSE" install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md" }