S039: package script, install scripts, README, release notes 0.1.0, test file; builds smoke-tested, nothing in releases/
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
parent
c5ab0c68e7
commit
95658dfd8d
7 changed files with 122 additions and 5 deletions
|
|
@ -12,11 +12,11 @@ Builds that run on older distros without downloads (D-011), a clear repo page an
|
|||
- docs/FEATURES-CHECK.md, docs/CONNECTOR.md
|
||||
|
||||
## Steps
|
||||
- [ ] tar.gz with install and uninstall scripts for the user's home, desktop file, icons; AppImage with the appimagetool in ~/Projects/Mulberry/dist (copied to a temp folder), portable-mode support
|
||||
- [ ] glibc and library needs listed, lowest supported glibc stated; system libraries not bundled
|
||||
- [ ] Smoke test of both builds: launch hidden, download from the test server, status file and shots, looked at; yt-dlp and ffmpeg missing on PATH
|
||||
- [ ] README with shots from real runs, install, connector steps, limits and known bugs; no hype
|
||||
- [ ] Release notes in docs/releases/0.1.0.md; version set everywhere; checksums made, nothing in releases/ yet
|
||||
- [x] tar.gz with install and uninstall scripts for the user's home, desktop file, icons; AppImage with the appimagetool in ~/Projects/Mulberry/dist (copied to a temp folder), portable-mode support
|
||||
- [x] glibc and library needs listed, lowest supported glibc stated; system libraries not bundled
|
||||
- [x] Smoke test of both builds: launch hidden, download from the test server, status file and shots, looked at; yt-dlp and ffmpeg missing on PATH
|
||||
- [x] README with shots from real runs, install, connector steps, limits and known bugs; no hype
|
||||
- [x] Release notes in docs/releases/0.1.0.md; version set everywhere; checksums made, nothing in releases/ yet
|
||||
- [ ] 🧑 Version, contents, known bugs and the size of bundling yt-dlp and ffmpeg told to the user; wait for the yes
|
||||
- [ ] After the yes: files to releases/v0.1.0/, notes with hub-release, page checked
|
||||
- [ ] docs/STATUS.md, `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S039: …`, push
|
||||
|
|
|
|||
73
README.md
Normal file
73
README.md
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
# Medlar
|
||||
|
||||
A download manager for Linux, written in Rust with egui. Downloads are split into dynamic parts and can be paused, resumed
|
||||
and continued from a new link. The interface follows Material You (M3 Expressive). Version 0.1.0 is the first release.
|
||||
|
||||

|
||||

|
||||
|
||||
Both pictures come from a real run of the release build in a hidden session (software rendering).
|
||||
|
||||
## What it does
|
||||
|
||||
- HTTP and HTTPS in up to 16 dynamic parts, resume after a crash or restart, error recovery, mirrors, checksums.
|
||||
- FTP, FTPS and SFTP; HLS and DASH streams; Metalink.
|
||||
- Speed limits (global and per download), priorities, queues, a schedule and "when done" actions.
|
||||
- A local port, `127.0.0.1:17616`, that takes links from browsers (Nacre's JSON). See [docs/CONNECTOR.md](docs/CONNECTOR.md).
|
||||
- Video sites through `yt-dlp` (with `ffmpeg`), if both are installed.
|
||||
- Clipboard watcher, rules, tags and notes, tray icon, one running copy only.
|
||||
|
||||
The full list and its state: [docs/FEATURES.md](docs/FEATURES.md) and [docs/FEATURES-CHECK.md](docs/FEATURES-CHECK.md).
|
||||
|
||||
## Install
|
||||
|
||||
Needs a Linux x86_64 desktop with Wayland or X11, and glibc 2.44 or newer (see "Requirements").
|
||||
|
||||
**AppImage:** `chmod +x Medlar-0.1.0-x86_64.AppImage && ./Medlar-0.1.0-x86_64.AppImage`
|
||||
|
||||
**tar.gz:** `tar xzf Medlar-0.1.0-Linux-x86_64.tar.gz && cd medlar-0.1.0 && ./install.sh`
|
||||
installs into `~/.local` (binary, desktop file, icon; no root). `./uninstall.sh` removes it; `./uninstall.sh --purge` also
|
||||
removes settings and the download list (downloaded files stay).
|
||||
|
||||
Check the download against `SHA256SUMS-0.1.0`: `sha256sum -c SHA256SUMS-0.1.0`.
|
||||
|
||||
**Portable mode:** put a file called `portable` beside `bin/medlar` (tar.gz) or beside the `.AppImage`. Everything is then
|
||||
kept in a `medlar-data/` folder next to it. `MEDLAR_HOME=<dir>` sets the folder directly and wins over both.
|
||||
|
||||
## Requirements
|
||||
|
||||
- The binary links only `libc`, `libm` and `libgcc_s` (glibc). Nothing from the system is bundled.
|
||||
- It was built on Arch Linux with glibc 2.44, and it uses math functions that glibc added in 2.43 and 2.44. **Lowest
|
||||
supported glibc: 2.44.** It will not start on older distributions. A build for older systems needs an older build host.
|
||||
It was not tested on any other system.
|
||||
- Wayland or X11 and a GPU driver (OpenGL) or software rendering.
|
||||
- Optional: `yt-dlp` and `ffmpeg` on `PATH` for video sites. Medlar does not bundle them (that would add tens of MB and
|
||||
they go out of date quickly). Without them, everything else works and video links give a plain message.
|
||||
|
||||
## Browser steps
|
||||
|
||||
1. Start Medlar once and finish or skip the first-run pages. The port is `127.0.0.1:17616` (Settings, Browser).
|
||||
2. In Nacre (or any program that can POST JSON), set the download-manager address to `http://127.0.0.1:17616/`.
|
||||
3. Send a link. Medlar shows the Add dialog unless you turned that off.
|
||||
4. Test by hand: `curl -s -H 'Content-Type: application/json' -d '{"url":"https://example.com/a.zip"}' http://127.0.0.1:17616/`
|
||||
|
||||
Requests with a web `Origin` or a foreign `Host` are refused, and no CORS headers are sent.
|
||||
|
||||
## Limits and known gaps
|
||||
|
||||
Honest state of 0.1.0. The engine is tested hard (unit, integration, fuzz, a 20-minute fault soak with 606 files and no
|
||||
corrupt one). The interface is tested less.
|
||||
|
||||
- The hidden-window user journeys (pause, restart, expired link, schedule) were tested at engine level only, not by
|
||||
clicking through the window.
|
||||
- Many screen and motion checks were not run (the details panel, motion audit, drag and drop in the window).
|
||||
- Video: `yt-dlp` was tested against a stub, not against a real site. Browser cookies and the global speed limit are
|
||||
not passed to `yt-dlp`.
|
||||
- The Control sheet is clipped at 480x360 (no scroll).
|
||||
- The "when done" power call was not run against a fake logind.
|
||||
- Not built or tested for other CPUs or other libc. No Windows or macOS version.
|
||||
|
||||
## Build from source
|
||||
|
||||
`cargo build --release -p medlar` (Rust 1.99, edition 2024). `tools/package.sh` makes the tar.gz, the AppImage and the
|
||||
checksums in `dist/`. Tests: `cargo test --workspace -j 2`. Licence: MIT. Font: Rubik (OFL, `assets/Rubik-OFL.txt`).
|
||||
|
|
@ -257,3 +257,8 @@ Seen: boxes were ticked together after the tests, against rule 3.
|
|||
- Clipboard Ask works in hidden run C (release build); S037's KNOWN BUG is gone. Workspace suite green.
|
||||
- Video wired: Add dialog shows the yt-dlp page for web pages, tasks with `video` run yt-dlp (pause, resume, error kinds); stub tests and `add-video` shots pass. Frame with 50 active 3-4 ms (95 %, release).
|
||||
- Not done: hidden UI journeys (engine tests only, S037 box open); cookies and global limit not passed to yt-dlp. S024 14 used Nacre's body replayed.
|
||||
|
||||
## S039 package (steps up to checksums; publishing waits for the user)
|
||||
- Suite green after S044 (one flaky connector test fixed: waits for the arrival). `tools/package.sh`, `packaging/install.sh`, `uninstall.sh`; `dist/` has tar.gz, AppImage, `SHA256SUMS-0.1.0` (not in releases/).
|
||||
- Smoke of both builds, hidden, no yt-dlp/ffmpeg on PATH: first run, port POST, download, hash equal, idle CPU 0 %; tar.gz portable mode makes `medlar-data/`.
|
||||
- Needs glibc 2.44 (libm symbols 2.43/2.44), not older. README and docs/releases/0.1.0.md written. Not done: the user's yes, releases/, hub-release.
|
||||
|
|
|
|||
BIN
docs/img/add.png
Normal file
BIN
docs/img/add.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 72 KiB |
BIN
docs/img/main.png
Normal file
BIN
docs/img/main.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 49 KiB |
19
docs/releases/0.1.0.md
Normal file
19
docs/releases/0.1.0.md
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# Medlar 0.1.0
|
||||
|
||||
First release. Linux x86_64, glibc 2.44 or newer.
|
||||
|
||||
## Files
|
||||
- `Medlar-0.1.0-x86_64.AppImage`
|
||||
- `Medlar-0.1.0-Linux-x86_64.tar.gz` (install.sh and uninstall.sh for your home folder)
|
||||
- `SHA256SUMS-0.1.0`
|
||||
|
||||
## What is in it
|
||||
Segmented downloads with resume and recovery (HTTP, HTTPS, FTP, FTPS, SFTP, HLS, DASH, Metalink), limits, priorities,
|
||||
queues, schedule, "when done" actions, a local browser port on 127.0.0.1:17616, clipboard watcher, rules, tray, video
|
||||
sites through yt-dlp when it is installed, portable mode.
|
||||
|
||||
## Known gaps
|
||||
- Needs glibc 2.44 or newer; not tested on other systems.
|
||||
- Window journeys were tested at engine level only; many screen and motion checks were not run.
|
||||
- yt-dlp was tested against a stub only; cookies and the global limit are not passed to it.
|
||||
- yt-dlp and ffmpeg are not bundled.
|
||||
20
docs/tests/S039-package-release.md
Normal file
20
docs/tests/S039-package-release.md
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# S039 — Package and release: test file
|
||||
|
||||
Risk: HIGH = data loss, security, crash, wrong result · MED = feature broken · LOW = looks or comfort.
|
||||
|
||||
| # | Risk | Do this | Expect | Result |
|
||||
|---|---|---|---|---|
|
||||
| 1 | HIGH | `tools/package.sh`, then `sha256sum -c dist/SHA256SUMS-0.1.0` | tar.gz, AppImage, sums made; sums match | pass |
|
||||
| 2 | HIGH | Run the AppImage hidden (`tools/hidden.sh`, `MEDLAR_BIN`), yt-dlp and ffmpeg off PATH; skip first run, POST a 300 kB link to port 17616, click Download | File done, sha256 equals the server's, no crash | pass |
|
||||
| 3 | HIGH | Same with the binary from the tar.gz | Same | pass |
|
||||
| 4 | MED | tar.gz with a `portable` file beside `bin/medlar` | `bin/medlar-data/` holds config, data, state, cache | pass |
|
||||
| 5 | MED | `PREFIX=<tmp> ./install.sh`, then `./uninstall.sh` | Files appear, Exec points to the binary, all removed again | pass |
|
||||
| 6 | MED | Idle CPU 3 s after the download | 0 % | pass |
|
||||
| 7 | MED | AppImage next to a file `portable` | Data in `medlar-data/` beside the AppImage | not run: only the AppRun logic was written |
|
||||
| 8 | MED | Run on an older distribution | Starts if glibc >= 2.44; refuses below | not run: no older system here |
|
||||
| 9 | LOW | Install from the tar.gz on a desktop and open the launcher entry | Icon and entry show | not run |
|
||||
| 10 | LOW | README: every link and file name exists | No placeholder | pass by reading |
|
||||
|
||||
## Doubts
|
||||
- The binary needs glibc 2.44 (libm symbols). Build on an older host to support older distributions.
|
||||
- The AppImage was only started directly, not through FUSE mounting or `--appimage-extract-and-run`.
|
||||
Loading…
Reference in a new issue