diff --git a/AGENTS.md b/AGENTS.md index 2c081bc..ccb508f 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,4 +1,4 @@ -# PDF Presenter +# Deckstride Standalone Rust application foundation for multiscreen PDF presentation. Read `AGENT_DOCUMENTATION.md` and `docs/development/plan.md` before implementing behavior. @@ -8,12 +8,12 @@ Physical display, performance, sleep and clean-machine acceptance remain open. ## Structure and intended architecture -- `crates/pdf-presenter/src/lib.rs`: tested, UI-independent presentation state. +- `crates/deckstride/src/lib.rs`: tested, UI-independent presentation state. - `src/main.rs` in that crate: CLI/native entry point. `native.rs` owns windows, `presenter_ui.rs` controls, `studio.rs` shared state, `document.rs` rendering, `worker.rs` supervised jobs, `output.rs` independent host/leases, `settings.rs` persistence. `desktop.rs`/`poc.rs`/`paint.rs` retain the display diagnostic. -- `crates/pdf-presenter/tests/`: meaningful behavior tests, including boundary cases. -- `crates/pdf-presenter/assets/`: generated app artwork and provenance. +- `crates/deckstride/tests/`: meaningful behavior tests, including boundary cases. +- `crates/deckstride/assets/`: generated app artwork and provenance. - `scripts/`, `tests/`, `Jenkinsfile`: standalone validation and badge publication. - `docs/development/`: architecture decisions, implementation plan and CI setup. - `docs/interfaces/`: persistent-format contracts when formats are introduced. @@ -85,7 +85,7 @@ for Windows/macOS artifacts do not authorize rebuilding them on every later task Report platform validation that was not run accurately; do not imply it passed. CI uses `rust_no_docker`; it archives exactly three badge SVGs and only main/non-PR -builds publish to `/mnt/assets/coverage/idle-org/pdf-presenter/main/`. No automatic +builds publish to `/mnt/assets/coverage/idle-org/deckstride/main/`. No automatic releases, binaries or manual publication. Jenkins job creation is external setup. Never modify another tool's badges or the shared manuals root. diff --git a/Cargo.lock b/Cargo.lock index 1c7221b..2bd15c8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -668,6 +668,37 @@ dependencies = [ "syn 2.0.119", ] +[[package]] +name = "deckstride" +version = "0.1.96" +dependencies = [ + "bytemuck", + "chrono", + "directories", + "egui", + "egui-winit", + "egui_software_backend", + "font8x8", + "hayro", + "image", + "keepawake", + "libc", + "rfd", + "serde", + "serde_json", + "sha2", + "softbuffer", + "sys-locale", + "sysinfo", + "tempfile", + "toml 0.8.23", + "wayland-client", + "wayland-protocols", + "winit", + "winresource", + "x11-dl", +] + [[package]] name = "derive_builder" version = "0.20.2" @@ -2243,37 +2274,6 @@ dependencies = [ "windows-link 0.2.1", ] -[[package]] -name = "pdf-presenter" -version = "0.1.95" -dependencies = [ - "bytemuck", - "chrono", - "directories", - "egui", - "egui-winit", - "egui_software_backend", - "font8x8", - "hayro", - "image", - "keepawake", - "libc", - "rfd", - "serde", - "serde_json", - "sha2", - "softbuffer", - "sys-locale", - "sysinfo", - "tempfile", - "toml 0.8.23", - "wayland-client", - "wayland-protocols", - "winit", - "winresource", - "x11-dl", -] - [[package]] name = "peniko" version = "0.6.1" diff --git a/Cargo.toml b/Cargo.toml index 85b910d..045aa61 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,13 +1,13 @@ [workspace] -members = ["crates/pdf-presenter"] -default-members = ["crates/pdf-presenter"] +members = ["crates/deckstride"] +default-members = ["crates/deckstride"] resolver = "3" [workspace.package] -version = "0.1.95" +version = "0.1.96" edition = "2024" license = "MIT" -repository = "https://proxy.dandaedre.com/gitea/idle-org/pdf-presenter" +repository = "https://proxy.dandaedre.com/gitea/idle-org/deckstride" [profile.dev] debug = 0 diff --git a/Jenkinsfile b/Jenkinsfile index 1b353f3..89044d6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -12,7 +12,7 @@ pipeline { PYTHONUNBUFFERED = '1' PYTHONDONTWRITEBYTECODE = '1' NO_COLOR = '1' - PDF_PRESENTER_HEADLESS_CI = '1' + DECKSTRIDE_HEADLESS_CI = '1' CARGO_TERM_COLOR = 'never' BADGE_ROOT = '/mnt/assets/coverage' } @@ -60,7 +60,7 @@ pipeline { sh ''' set -eu uv run --no-project --python ">=3.11" python -m unittest discover -s tests -v - unset PDF_PRESENTER_GUI_TESTS + unset DECKSTRIDE_GUI_TESTS cargo test --locked --workspace --all-features cargo build --locked --workspace --all-features uv run --no-project --python ">=3.11" python scripts/ci.py tests-passed @@ -72,7 +72,7 @@ pipeline { steps { sh ''' set -eu - unset PDF_PRESENTER_GUI_TESTS + unset DECKSTRIDE_GUI_TESTS uv run --no-project --python ">=3.11" python scripts/ci.py coverage ''' } diff --git a/README.md b/README.md index 049f195..cdca7fa 100644 --- a/README.md +++ b/README.md @@ -1,23 +1,23 @@
-
+
A fast, portable presenter for PDFs and picture folders.
Fullscreen slides for the room. Notes, previews and controls for you.
- Download PDF Presenter · + Download Deckstride · User guide · - Report an issue + Report an issue
-PDF Presenter gives each connected screen a job: **Presenter**, **Slides**, or +Deckstride gives each connected screen a job: **Presenter**, **Slides**, or **Unused**. Keep the current slide, next slide, notes and timers in front of you while one or more other screens show only the presentation. You can also mirror the Presenter view, rehearse on one monitor, or change the arrangement during a session. @@ -43,7 +43,7 @@ slow document operation does not have to freeze navigation. | **Shared zoom** | Opt in to zoom, pan or fit a page to width from Presenter or Slides. Both views stay on the same part of the page. | | **Safe slide browsing** | Browse resizable thumbnails without changing the live slide. Double-click to preview, or enable **Change on click** when direct switching is useful. | | **Notes that belong to the presentation** | Read notes from a sidecar or the PDF, import TXT/Markdown, and double-click the notes pane to edit the current slide. Notes automatically fit the available space. | -| **Presentation-aware desktop behavior** | PDF Presenter asks supported operating systems to keep the display awake and reports whether protection is active. Closing Presenter also closes its Slides windows. | +| **Presentation-aware desktop behavior** | Deckstride asks supported operating systems to keep the display awake and reports whether protection is active. Closing Presenter also closes its Slides windows. | | **Portable by design** | The release binaries include the PDF renderer and application dependencies. Keep the extracted folder anywhere convenient; no Rust or separate PDF software is required. | | **Themes and languages** | Choose from 20 built-in palettes and English, French, Spanish, Japanese, Simplified Chinese, German or Brazilian Portuguese. System language detection stays offline. | @@ -54,32 +54,28 @@ on the machines that will run the show. ## Download and run -Open the [release page](https://proxy.dandaedre.com/gitea/idle-org/pdf-presenter/releases) +Open the [release page](https://proxy.dandaedre.com/gitea/idle-org/deckstride/releases) and download the archive for your computer. -| Platform | Recommended download | Start after extracting | -| --- | --- | --- | -| Windows x86_64 | `pdf-presenter-portable-x86_64-pc-windows-gnu-v….zip` | `pdf-presenter.exe` | -| Linux x86_64 | `pdf-presenter-portable-x86_64-unknown-linux-gnu-v….tgz` | `./pdf-presenter` | -| Linux ARM64 | `pdf-presenter-portable-aarch64-unknown-linux-musl-v….tgz` | `./pdf-presenter` | -| Apple Silicon macOS 13+ | `pdf-presenter-portable-aarch64-apple-darwin-v….tgz` | Follow the release-page macOS instructions | -| Intel macOS 13+ | `pdf-presenter-portable-x86_64-apple-darwin-v….tgz` | Follow the release-page macOS instructions | +| Platform | Recommended download | +| --- | --- | +| Windows x86_64 | Portable Windows ZIP | +| Linux x86_64 | Portable Linux x86_64 tarball | +| Linux ARM64 | Portable Linux ARM64 tarball | +| Apple Silicon macOS 13+ | Portable Apple Silicon tarball | +| Intel macOS 13+ | Portable Intel tarball | + +Existing releases remain unchanged and therefore retain the filenames shown on +their release pages. Future packages use the Deckstride executable and archive name. Windows and macOS builds are currently unsigned. Releases are ready for normal use; test the actual computer, adapters and display arrangement before a live event. macOS artifacts are cross-built on Linux and have not yet had native Mac runtime testing. [Installation and update details →](docs/user-guide.md#install-and-update) -If you already have [cargo-binstall](https://github.com/cargo-bins/cargo-binstall) -installed, you can install a prebuilt release directly: - -```sh -cargo binstall pdf-presenter --git https://proxy.dandaedre.com/gitea/idle-org/pdf-presenter --version 0.1.91 --strategies crate-meta-data -``` - -Replace `0.1.91` with the published version you want from the release page. This -uses the repository's release archives and requires an available build for your -platform. Then run `pdf-presenter`. +New Deckstride releases will also support installation with +[cargo-binstall](https://github.com/cargo-bins/cargo-binstall). Until one is +published, use the unchanged portable packages from the release page. ## Set up a show @@ -92,7 +88,7 @@ platform. Then run `pdf-presenter`. 4. **Present.** Use Left/Right, Page Up/Page Down or Space. Type a slide number and press Enter to jump directly to it. Press B to blank or restore Slides. -PDF Presenter shows Slides by default after a document opens. Entering or leaving +Deckstride shows Slides by default after a document opens. Entering or leaving fullscreen and changing screen assignments preserve that choice. Header and footer controls can auto-hide; move the pointer near their edge or right-click to recover them. @@ -145,7 +141,7 @@ Useful controls: ## Open source -PDF Presenter is independent open-source software under the [MIT license](LICENSE). +Deckstride is independent open-source software under the [MIT license](LICENSE). Development includes LLM-generated or LLM-assisted work with human review. The project is used in professional settings, while physical acceptance work remains documented rather than hidden. diff --git a/THIRD_PARTY_NOTICES.txt b/THIRD_PARTY_NOTICES.txt index bc9505c..98abe1f 100644 --- a/THIRD_PARTY_NOTICES.txt +++ b/THIRD_PARTY_NOTICES.txt @@ -1,4 +1,4 @@ -PDF Presenter — locked dependency and font notices +Deckstride — locked dependency and font notices Generated by scripts/notices.py. Includes target/build-only dependencies; the presence of a package here does not mean it is linked on every OS. Unmodified source packages are available at https://crates.io. diff --git a/crates/pdf-presenter/Cargo.toml b/crates/deckstride/Cargo.toml similarity index 98% rename from crates/pdf-presenter/Cargo.toml rename to crates/deckstride/Cargo.toml index 4f94fff..4c57273 100644 --- a/crates/pdf-presenter/Cargo.toml +++ b/crates/deckstride/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "pdf-presenter" +name = "deckstride" version.workspace = true edition.workspace = true license.workspace = true diff --git a/crates/pdf-presenter/assets/README.md b/crates/deckstride/assets/README.md similarity index 100% rename from crates/pdf-presenter/assets/README.md rename to crates/deckstride/assets/README.md diff --git a/crates/pdf-presenter/assets/app-icon.ico b/crates/deckstride/assets/app-icon.ico similarity index 100% rename from crates/pdf-presenter/assets/app-icon.ico rename to crates/deckstride/assets/app-icon.ico diff --git a/crates/pdf-presenter/assets/app-icon.png b/crates/deckstride/assets/app-icon.png similarity index 100% rename from crates/pdf-presenter/assets/app-icon.png rename to crates/deckstride/assets/app-icon.png diff --git a/crates/pdf-presenter/assets/fonts/NotoSansCJK-Regular.ttc b/crates/deckstride/assets/fonts/NotoSansCJK-Regular.ttc similarity index 100% rename from crates/pdf-presenter/assets/fonts/NotoSansCJK-Regular.ttc rename to crates/deckstride/assets/fonts/NotoSansCJK-Regular.ttc diff --git a/crates/pdf-presenter/assets/fonts/OFL.txt b/crates/deckstride/assets/fonts/OFL.txt similarity index 100% rename from crates/pdf-presenter/assets/fonts/OFL.txt rename to crates/deckstride/assets/fonts/OFL.txt diff --git a/crates/pdf-presenter/assets/fonts/README.md b/crates/deckstride/assets/fonts/README.md similarity index 88% rename from crates/pdf-presenter/assets/fonts/README.md rename to crates/deckstride/assets/fonts/README.md index bded8ea..a786562 100644 --- a/crates/pdf-presenter/assets/fonts/README.md +++ b/crates/deckstride/assets/fonts/README.md @@ -6,7 +6,7 @@ Canvas Pilot, under the included [SIL Open Font License 1.1](OFL.txt). Upstream: SHA-256: `b76b0433203017ca80401b2ee0dd69350349871c4b19d504c34dbdd80541690a`. -PDF Presenter uses collection index 0 for Japanese and index 2 for Simplified +Deckstride uses collection index 0 for Japanese and index 2 for Simplified Chinese. The collection is embedded in the executable; no runtime font lookup or download occurs. Font definitions are installed only when a CJK interface language is active and only when the language selection changes. Other interface languages diff --git a/crates/pdf-presenter/assets/window-icon.png b/crates/deckstride/assets/window-icon.png similarity index 100% rename from crates/pdf-presenter/assets/window-icon.png rename to crates/deckstride/assets/window-icon.png diff --git a/crates/pdf-presenter/build.rs b/crates/deckstride/build.rs similarity index 100% rename from crates/pdf-presenter/build.rs rename to crates/deckstride/build.rs diff --git a/crates/pdf-presenter/src/artwork.rs b/crates/deckstride/src/artwork.rs similarity index 85% rename from crates/pdf-presenter/src/artwork.rs rename to crates/deckstride/src/artwork.rs index c89d1de..8913d8a 100644 --- a/crates/pdf-presenter/src/artwork.rs +++ b/crates/deckstride/src/artwork.rs @@ -16,8 +16,8 @@ pub(crate) fn window_attributes() -> WindowAttributes { let attributes = { use winit::platform::{wayland::WindowAttributesExtWayland, x11::WindowAttributesExtX11}; let attributes = - WindowAttributesExtWayland::with_name(attributes, "pdf-presenter", "pdf-presenter"); - WindowAttributesExtX11::with_name(attributes, "pdf-presenter", "pdf-presenter") + WindowAttributesExtWayland::with_name(attributes, "deckstride", "deckstride"); + WindowAttributesExtX11::with_name(attributes, "deckstride", "deckstride") }; attributes } diff --git a/crates/pdf-presenter/src/blank.rs b/crates/deckstride/src/blank.rs similarity index 100% rename from crates/pdf-presenter/src/blank.rs rename to crates/deckstride/src/blank.rs diff --git a/crates/pdf-presenter/src/cache.rs b/crates/deckstride/src/cache.rs similarity index 100% rename from crates/pdf-presenter/src/cache.rs rename to crates/deckstride/src/cache.rs diff --git a/crates/pdf-presenter/src/desktop.rs b/crates/deckstride/src/desktop.rs similarity index 99% rename from crates/pdf-presenter/src/desktop.rs rename to crates/deckstride/src/desktop.rs index 45d001d..53e6c2a 100644 --- a/crates/pdf-presenter/src/desktop.rs +++ b/crates/deckstride/src/desktop.rs @@ -210,13 +210,13 @@ impl App { if self.presenter.is_none() { self.presenter = Some(NativeWindow::create( event_loop, - "PDF Presenter - presenter controls", + "Deckstride - presenter controls", )?); } if self.audience.is_none() { self.audience = Some(NativeWindow::create( event_loop, - "PDF Presenter - mock audience output", + "Deckstride - mock audience output", )?); } self.place(); diff --git a/crates/pdf-presenter/src/document.rs b/crates/deckstride/src/document.rs similarity index 100% rename from crates/pdf-presenter/src/document.rs rename to crates/deckstride/src/document.rs diff --git a/crates/pdf-presenter/src/lib.rs b/crates/deckstride/src/lib.rs similarity index 100% rename from crates/pdf-presenter/src/lib.rs rename to crates/deckstride/src/lib.rs diff --git a/crates/pdf-presenter/src/localization.rs b/crates/deckstride/src/localization.rs similarity index 99% rename from crates/pdf-presenter/src/localization.rs rename to crates/deckstride/src/localization.rs index 33b8acd..a2a6941 100644 --- a/crates/pdf-presenter/src/localization.rs +++ b/crates/deckstride/src/localization.rs @@ -65,7 +65,7 @@ enum ResolvedLanguage { } fn language_id() -> egui::Id { - egui::Id::new("pdf-presenter-language") + egui::Id::new("deckstride-language") } fn resolve_system_locale(locale: Option<&str>) -> ResolvedLanguage { @@ -347,8 +347,8 @@ fn fr(text: &str) -> &str { "Slides" => "Diapositives", "Single screen" => "Écran unique", "Use single-screen mode?" => "Utiliser le mode écran unique ?", - "PDF Presenter is intended for a presenter setup with separate Presenter and Slides screens." => { - "PDF Presenter est conçu pour une présentation avec des écrans Présentateur et Diapositives séparés." + "Deckstride is intended for a presenter setup with separate Presenter and Slides screens." => { + "Deckstride est conçu pour une présentation avec des écrans Présentateur et Diapositives séparés." } "Only one screen was connected at startup. Single-screen mode shows slides with controls revealed at the top and bottom edges." => { "Un seul écran était connecté au démarrage. Le mode écran unique affiche les diapositives avec des commandes apparaissant aux bords supérieur et inférieur." @@ -476,12 +476,12 @@ fn fr(text: &str) -> &str { "Une copie est conservée et ajustée à tous les écrans de diapositives, sur fond noir." } "Default PDF application" => "Application PDF par défaut", - "Register PDF Presenter and its icon for PDF files in your Windows account." => { - "Enregistre PDF Presenter et son icône pour les fichiers PDF de votre compte Windows." + "Register Deckstride and its icon for PDF files in your Windows account." => { + "Enregistre Deckstride et son icône pour les fichiers PDF de votre compte Windows." } "Set as default PDF app…" => "Définir comme application PDF par défaut…", - "Windows will open Default Apps; select PDF Presenter for .pdf to confirm." => { - "Windows ouvrira Applications par défaut : sélectionnez PDF Presenter pour .pdf afin de confirmer." + "Windows will open Default Apps; select Deckstride for .pdf to confirm." => { + "Windows ouvrira Applications par défaut : sélectionnez Deckstride pour .pdf afin de confirmer." } "Processed slides" => "Diapositives préparées", "Theme" => "Thème", diff --git a/crates/pdf-presenter/src/main.rs b/crates/deckstride/src/main.rs similarity index 81% rename from crates/pdf-presenter/src/main.rs rename to crates/deckstride/src/main.rs index 5349077..3dd80f1 100644 --- a/crates/pdf-presenter/src/main.rs +++ b/crates/deckstride/src/main.rs @@ -3,7 +3,7 @@ windows_subsystem = "windows" )] -use pdf_presenter::{native, poc::Options}; +use deckstride::{native, poc::Options}; fn main() { if std::env::args().nth(1).as_deref() == Some("--licenses") { @@ -11,7 +11,7 @@ fn main() { return; } if std::env::args().nth(1).as_deref() == Some("--worker") { - if let Err(e) = pdf_presenter::worker::run() { + if let Err(e) = deckstride::worker::run() { eprintln!("{e}"); std::process::exit(1); } @@ -25,7 +25,7 @@ fn main() { return; } if std::env::args().nth(1).as_deref() == Some("--keep-awake") { - let _ = pdf_presenter::output::keep_awake(); + let _ = deckstride::output::keep_awake(); return; } let mut args = std::env::args().skip(1).collect::Windowed by default. Monitor selection is simulated in this HTML prototype.
@@ -53,7 +53,7 @@ document.querySelectorAll('.previews .slide').forEach(slide=>{const stage=docume const layoutDefaults={previous:{show:true,size:60},current:{show:true,size:130},next:{show:true,size:75},notes:{show:true,size:28},elapsed:{show:true,size:28},clock:{show:true,size:28},chrome:{header:true,footer:true}}; let layout=structuredClone(layoutDefaults); const layoutSpecs=[['previous','Previous slide',30,160,'weight'],['current','Current slide',60,200,'weight'],['next','Next slide',30,160,'weight'],['notes','Notes',12,65,'%'],['elapsed','Elapsed time',16,72,'px'],['clock','Time · HH:MM',16,72,'px']]; -const layoutStorageKey='pdf-presenter.menu-layouts.v1'; +const layoutStorageKey='deckstride.menu-layouts.v1'; let projectId='ideas'; const emptyLayouts=()=>({version:1,global:null,projects:{}}); function validateLayout(value){ @@ -168,7 +168,7 @@ function selectThumbnail(index){gallery.selected=index;if(gallery.changeOnClick) function openGallery(){ closeMenu();if(galleryWindow&&!galleryWindow.closed){galleryWindow.focus();return;} gallery.selected=page;gallery.changeOnClick=false; - galleryWindow=window.open('','pdf-presenter-slide-browser',`popup=yes,width=1000,height=700,left=${window.screenX+60},top=${window.screenY+60}`); + galleryWindow=window.open('','deckstride-slide-browser',`popup=yes,width=1000,height=700,left=${window.screenX+60},top=${window.screenY+60}`); if(!galleryWindow){message('Slide browser was blocked. Allow popups for this page, then click All slides again.');return;} const doc=galleryWindow.document;doc.open();doc.write($('galleryTemplate').innerHTML);doc.close(); const grid=doc.getElementById('galleryGrid');grid.style.setProperty('--thumb',gallery.size+'px'); diff --git a/docs/development/README.md b/docs/development/README.md index 462cb20..8853d51 100644 --- a/docs/development/README.md +++ b/docs/development/README.md @@ -11,7 +11,7 @@ dual-screen, startup and responsiveness requirements. - [Persistent interfaces](../interfaces/README.md) - [Changelog](../changelog.md) -Run `cargo run --locked -p pdf-presenter` for the native mock-window test. +Run `cargo run --locked -p deckstride` for the native mock-window test. See the [dual-screen proof guide](dual-screen-poc.md) for controls, limits and the physical acceptance still required. PDF loading and release bundles remain pending. diff --git a/docs/development/ci.md b/docs/development/ci.md index a1c086a..e80f388 100644 --- a/docs/development/ci.md +++ b/docs/development/ci.md @@ -1,6 +1,6 @@ # CI and Jenkins setup -Create a Jenkins Multibranch Pipeline for `idle-org/pdf-presenter`, using the root +Create a Jenkins Multibranch Pipeline for `idle-org/deckstride`, using the root `Jenkinsfile`, SCM credentials and the existing `rust_no_docker` worker. Repository upload does not create a Jenkins job. Configure branch discovery and a Gitea webhook in Jenkins/Gitea when connecting the job. @@ -19,7 +19,7 @@ worker and other headless tests still run. The pipeline installs cargo-llvm-cov and the rustfmt, Clippy and llvm-tools-preview components. The temporary Jenkins coverage floor is **60%**, selected explicitly by -`PDF_PRESENTER_HEADLESS_CI=1` and `headless-line-floor` in `coverage.toml`. The normal +`DECKSTRIDE_HEADLESS_CI=1` and `headless-line-floor` in `coverage.toml`. The normal local full-GUI floor remains **75%**. Both measure all production code, including GUI code; tool/test failures still fail the build and badges report the actual measurement. Restore full native testing and the 75% Jenkins floor when a display @@ -33,7 +33,7 @@ cargo clippy --locked --workspace --all-targets --all-features -- -D warnings cargo test --locked --workspace --all-features cargo build --locked --workspace --all-features RUSTDOCFLAGS="-D warnings" cargo doc --locked --workspace --all-features --no-deps -PDF_PRESENTER_GUI_TESTS=1 uv run --no-project --python ">=3.11" python scripts/ci.py coverage +DECKSTRIDE_GUI_TESTS=1 uv run --no-project --python ">=3.11" python scripts/ci.py coverage ``` Coverage measures the entire Rust workspace with the selected floor. Add all future @@ -42,7 +42,7 @@ Canvas Pilot and have tests for invalid/stale reports and isolated publication. Cleanup archives exactly `coverage/version.svg`, `coverage/test.svg` and `coverage/coverage.svg`. Only main builds without CHANGE_ID publish badges under -`/mnt/assets/coverage/idle-org/pdf-presenter/main/`, including honest failed-test +`/mnt/assets/coverage/idle-org/deckstride/main/`, including honest failed-test or unavailable-coverage status. No shared asset root is synchronized or deleted. There is no release job or binary upload in this pipeline. Separate local packaging uses [rust_realease](releases.md). @@ -52,7 +52,7 @@ worker configuration or prove the remote pipeline has run. The coverage command above needs a usable desktop session. On a headless POSIX host with Xvfb installed, run `uv run --no-project --python ">=3.11" python scripts/gui_ci.py python scripts/ci.py coverage` instead. To include -native smoke in local workspace tests, set `PDF_PRESENTER_GUI_TESTS=1`. Without it, +native smoke in local workspace tests, set `DECKSTRIDE_GUI_TESTS=1`. Without it, the ordinary tests remain headless and explicitly skip native-window smoke. CI uses neither the flag nor the virtual-display wrapper. Xvfb tests cannot validate actual monitor routing, compositor policy, macOS Spaces or Windows desktop diff --git a/docs/development/dual-screen-poc.md b/docs/development/dual-screen-poc.md index 78b5960..43fb8d7 100644 --- a/docs/development/dual-screen-poc.md +++ b/docs/development/dual-screen-poc.md @@ -7,20 +7,20 @@ explicitly activates mock output; the production document model still starts bla ## Run and test -Build with `cargo build --locked --release`, then run `target/release/pdf-presenter` -(or `pdf-presenter.exe` on Windows). The executable contains the mock data and bitmap +Build with `cargo build --locked --release`, then run `target/release/deckstride` +(or `deckstride.exe` on Windows). The executable contains the mock data and bitmap font. It needs only normal OS desktop libraries; no PDF renderer, font download, configuration file or sibling repository is required. Each OS/architecture needs its own build; a Linux executable is not a Windows/macOS executable. ```sh -cargo run --locked -p pdf-presenter +cargo run --locked -p deckstride # Inspect display numbering without opening the two windows: -cargo run --locked -p pdf-presenter -- --list-monitors +cargo run --locked -p deckstride -- --list-monitors # Explicit selection (one-based display numbers from the listing): -cargo run --locked -p pdf-presenter -- --presenter 1 --audience 2 +cargo run --locked -p deckstride -- --presenter 1 --audience 2 # Keep both windows decorated for troubleshooting: -cargo run --locked -p pdf-presenter -- --windowed +cargo run --locked -p deckstride -- --windowed ``` With one detected display, fullscreen views overlap. Use `--windowed` to open @@ -79,7 +79,7 @@ The bitmap UI is test instrumentation, not the final presenter design. There is Tests cover monitor assignment/invalid selection, navigation bounds, blanking, topology invalidation, negative-coordinate geometry, scaled pointer hit testing and -software frames. `PDF_PRESENTER_GUI_TESTS=1 cargo test --locked --workspace` also opens +software frames. `DECKSTRIDE_GUI_TESTS=1 cargo test --locked --workspace` also opens real native windows, exercises mock controls/fullscreen transitions and checks frames were presented to both surfaces. `--smoke-test` exposes that short automatic check. A virtual display proves native rendering/lifecycle only, not physical placement. diff --git a/docs/development/icon-prompts.json b/docs/development/icon-prompts.json index bf32fa8..0feadf2 100644 --- a/docs/development/icon-prompts.json +++ b/docs/development/icon-prompts.json @@ -2,8 +2,8 @@ "tool": "built-in image_gen", "use_case": "logo-brand", "date": "2026-11-19", - "asset": "crates/pdf-presenter/assets/app-icon.png", - "prompt": "Use case: logo-brand\nAsset type: PDF Presenter desktop app icon and repository avatar, part of the beffroi-tools family.\nInput images: three reference icons showing the exact family style: dark charcoal rounded-square tile, softly beveled silver and bright turquoise objects, gentle 3D depth, subtle teal rim highlight. Use these as style references, not edit targets.\nPrimary request: Create a NEW matching family icon for a multiscreen PDF presenter. Inside the dark rounded-square tile, use a silver folded-corner document in front of a turquoise outlined presentation screen, and a simple bright turquoise play triangle on the document. Crisp bold uncluttered geometry, tactile satin metallic silver, very restrained dimensional shading. Distinct from the existing icons yet obviously in the same set.\nComposition: square, centered tile nearly fills frame, generous clear margins around the inner emblem, readable at 32px. Transparent exterior outside the tile, true alpha. No text, no letters, no watermark, no red, no blue, no photorealistic monitors, no elaborate background.", + "asset": "crates/deckstride/assets/app-icon.png", + "prompt": "Use case: logo-brand\nAsset type: Deckstride desktop app icon and repository avatar, part of the beffroi-tools family.\nInput images: three reference icons showing the exact family style: dark charcoal rounded-square tile, softly beveled silver and bright turquoise objects, gentle 3D depth, subtle teal rim highlight. Use these as style references, not edit targets.\nPrimary request: Create a NEW matching family icon for a multiscreen PDF presenter. Inside the dark rounded-square tile, use a silver folded-corner document in front of a turquoise outlined presentation screen, and a simple bright turquoise play triangle on the document. Crisp bold uncluttered geometry, tactile satin metallic silver, very restrained dimensional shading. Distinct from the existing icons yet obviously in the same set.\nComposition: square, centered tile nearly fills frame, generous clear margins around the inner emblem, readable at 32px. Transparent exterior outside the tile, true alpha. No text, no letters, no watermark, no red, no blue, no photorealistic monitors, no elaborate background.", "references": [ "beffroi-tools/crates/pptx-reporter/assets/app-icon.png", "beffroi-tools/crates/rundown-converter/assets/app-icon.png", diff --git a/docs/development/native-implementation.md b/docs/development/native-implementation.md index 9359272..5df4715 100644 --- a/docs/development/native-implementation.md +++ b/docs/development/native-implementation.md @@ -250,7 +250,7 @@ memory remains additional. The source SHA-256 was unchanged after the test. Reproduce explicitly with an authorized local deck (never a CI/private fixture upload): ```sh -PDF_PRESENTER_STRESS_PDF=/path/to/Ravenous.pdf cargo test --locked --release \ +DECKSTRIDE_STRESS_PDF=/path/to/Ravenous.pdf cargo test --locked --release \ --test preparation real_pdf_exceeds_budget_and_keeps_navigating -- --ignored --nocapture ``` @@ -337,7 +337,7 @@ only Linux development checks were run for this subject. The software renderer is bundled with a narrow cropped-quad optimization; see -[`vendor/egui_software_backend/PDF-PRESENTER-PATCH.md`](../../vendor/egui_software_backend/PDF-PRESENTER-PATCH.md) +[`vendor/egui_software_backend/DECKSTRIDE-PATCH.md`](../../vendor/egui_software_backend/DECKSTRIDE-PATCH.md) for provenance and the precise changes. Fixed-point bilinear scanlines reuse two filtered rows and bounded coordinate tables. Large crops use four disjoint bands on a lazily initialized pool capped at four CPU threads per native process. This diff --git a/docs/development/release-notes/v0.1.17.md b/docs/development/release-notes/v0.1.17.md index 769dd65..42937a2 100644 --- a/docs/development/release-notes/v0.1.17.md +++ b/docs/development/release-notes/v0.1.17.md @@ -1,4 +1,4 @@ -# PDF Presenter 0.1.17 preview +# Deckstride 0.1.17 preview Portable PDF and image-folder presenter with fullscreen presenter/presentation views, monitor routing/mirroring, notes, slide browser, themes and English/French. diff --git a/docs/development/release-notes/v0.1.24.md b/docs/development/release-notes/v0.1.24.md index 89522b0..7dfed54 100644 --- a/docs/development/release-notes/v0.1.24.md +++ b/docs/development/release-notes/v0.1.24.md @@ -1,4 +1,4 @@ -# PDF Presenter 0.1.24 preview +# Deckstride 0.1.24 preview Portable PDF and image-folder presenter for Linux and Windows x86_64, with separate fullscreen presenter/presentation views, monitor routing/mirroring, notes, slide diff --git a/docs/development/release-notes/v0.1.33.md b/docs/development/release-notes/v0.1.33.md index ce45001..3b323dd 100644 --- a/docs/development/release-notes/v0.1.33.md +++ b/docs/development/release-notes/v0.1.33.md @@ -1,4 +1,4 @@ -# PDF Presenter 0.1.33 preview +# Deckstride 0.1.33 preview Portable PDF and image-folder presenter for Linux and Windows x86_64. This preview includes the changes since 0.1.24: diff --git a/docs/development/release-notes/v0.1.68.md b/docs/development/release-notes/v0.1.68.md index 905088a..6daf31c 100644 --- a/docs/development/release-notes/v0.1.68.md +++ b/docs/development/release-notes/v0.1.68.md @@ -1,4 +1,4 @@ -# PDF Presenter 0.1.68 preview +# Deckstride 0.1.68 preview This preview adds live presentation tools while preserving the buffered rendering path. Open **Tools** in the presenter header for a low-latency pointer, straight diff --git a/docs/development/release-notes/v0.1.71.md b/docs/development/release-notes/v0.1.71.md index a3fd6a9..78259d6 100644 --- a/docs/development/release-notes/v0.1.71.md +++ b/docs/development/release-notes/v0.1.71.md @@ -1,4 +1,4 @@ -# PDF Presenter 0.1.71 preview +# Deckstride 0.1.71 preview This preview adds disk-cache controls in **Menu → Preferences → Disk cache**. Set a maximum total size (default **10 GiB**) and lifetime (default **30 days since diff --git a/docs/development/release-notes/v0.1.75.md b/docs/development/release-notes/v0.1.75.md index 6e3034d..d3aeae9 100644 --- a/docs/development/release-notes/v0.1.75.md +++ b/docs/development/release-notes/v0.1.75.md @@ -1,4 +1,4 @@ -# PDF Presenter 0.1.75 preview +# Deckstride 0.1.75 preview This preview includes the monitor and navigation fixes since 0.1.71: @@ -19,7 +19,7 @@ remain included. ## Windows testing Use the Windows x86_64 standalone executable or extract the portable ZIP and run -**pdf-presenter.exe**. No Rust toolchain or separately installed PDF backend is +**deckstride.exe**. No Rust toolchain or separately installed PDF backend is required. The executable is unsigned. Please exercise three displays with two presenters and one audience output: diff --git a/docs/development/release-notes/v0.1.77.md b/docs/development/release-notes/v0.1.77.md index 13b2284..b15eb1f 100644 --- a/docs/development/release-notes/v0.1.77.md +++ b/docs/development/release-notes/v0.1.77.md @@ -1,4 +1,4 @@ -# PDF Presenter 0.1.77 preview +# Deckstride 0.1.77 preview This preview adds two features since 0.1.75: @@ -18,7 +18,7 @@ navigation fixes from 0.1.75 remain included. ## Windows testing Download the Windows x86_64 standalone executable, or extract the portable ZIP -and run **pdf-presenter.exe**. No Rust toolchain or separately installed PDF +and run **deckstride.exe**. No Rust toolchain or separately installed PDF backend is required. The executable is unsigned. With two presenters and an audience display, customize the presenters differently, diff --git a/docs/development/release-notes/v0.1.78.md b/docs/development/release-notes/v0.1.78.md index 263524f..ab889cc 100644 --- a/docs/development/release-notes/v0.1.78.md +++ b/docs/development/release-notes/v0.1.78.md @@ -1,4 +1,4 @@ -# PDF Presenter 0.1.78 preview +# Deckstride 0.1.78 preview This preview focuses on Windows presentation responsiveness and desktop integration: @@ -11,21 +11,21 @@ This preview focuses on Windows presentation responsiveness and desktop integrat so opening it does not create a terminal window. Audience windows are created without activation and the presenter explicitly requests focus when first shown. - **PDF file icon and association.** Use **Menu → Preferences → Windows integration - → Choose as PDF app…**. PDF Presenter registers its executable, open command and + → Choose as PDF app…**. Deckstride registers its executable, open command and embedded icon for the current user, refreshes Explorer and opens Default Apps. Windows requires you to confirm the default PDF application there. Keep the portable folder in a permanent location and repeat this action after moving it. ## Windows testing -Extract the Windows x86_64 portable ZIP and run **pdf-presenter.exe**. Confirm that +Extract the Windows x86_64 portable ZIP and run **deckstride.exe**. Confirm that no terminal appears and that the presenter accepts keyboard input immediately while the audience window remains on the selected output. On a high-resolution audience display, compare pointer, arrow and highlighter tracking with 0.1.77, including zoom and mirrored audience outputs. -Register PDF Presenter in Preferences, select it for `.pdf` in Default Apps, then -check that Explorer shows the PDF Presenter icon and double-clicking a PDF opens it. +Register Deckstride in Preferences, select it for `.pdf` in Default Apps, then +check that Explorer shows the Deckstride icon and double-clicking a PDF opens it. The executable is unsigned, and the association is per user without administrator rights. diff --git a/docs/development/release-notes/v0.1.81.md b/docs/development/release-notes/v0.1.81.md index adc0d16..2c4f38d 100644 --- a/docs/development/release-notes/v0.1.81.md +++ b/docs/development/release-notes/v0.1.81.md @@ -1,4 +1,4 @@ -# PDF Presenter 0.1.81 preview +# Deckstride 0.1.81 preview This preview makes multi-Presenter layouts clearer and improves Windows desktop integration. @@ -20,13 +20,13 @@ integration. ## Windows testing -Extract the Windows x86_64 portable ZIP and run **pdf-presenter.exe**. Confirm that +Extract the Windows x86_64 portable ZIP and run **deckstride.exe**. Confirm that the Presenter accepts Left/Right immediately after launch, including with two or more fullscreen displays. Repeat from Explorer, a PDF file association and a pinned shortcut. Open All slides during startup and confirm that it retains focus. -In Preferences, choose **Set as default PDF app…**, select PDF Presenter for `.pdf` -in Windows Default Apps, then verify that Explorer uses the PDF Presenter icon and +In Preferences, choose **Set as default PDF app…**, select Deckstride for `.pdf` +in Windows Default Apps, then verify that Explorer uses the Deckstride icon and double-clicking a PDF opens it. Registration is per user and requires no administrator rights. Keep the portable folder in a permanent location. diff --git a/docs/development/release-notes/v0.1.83.md b/docs/development/release-notes/v0.1.83.md index 96bff54..0f94ebd 100644 --- a/docs/development/release-notes/v0.1.83.md +++ b/docs/development/release-notes/v0.1.83.md @@ -1,4 +1,4 @@ -# PDF Presenter 0.1.83 preview +# Deckstride 0.1.83 preview This preview improves settings organization and makes presentation tools easier to judge across Presenter previews and high-resolution Slides screens. diff --git a/docs/development/release-notes/v0.1.90.md b/docs/development/release-notes/v0.1.90.md index 1476f19..5b57349 100644 --- a/docs/development/release-notes/v0.1.90.md +++ b/docs/development/release-notes/v0.1.90.md @@ -1,10 +1,10 @@ -# PDF Presenter 0.1.90 preview +# Deckstride 0.1.90 preview This preview adds display controls and an optional single-screen presentation view. - **Single-screen view.** Select Single screen in Displays for full-window slides with controls revealed at the top and bottom edges. The app offers this mode - only when it starts with exactly one screen, explaining that PDF Presenter is + only when it starts with exactly one screen, explaining that Deckstride is intended for separate Presenter and Slides screens. Later disconnects never trigger the offer. Saved Presenter layouts and the independent audience host remain separate; controls overlay the slide without resizing it. diff --git a/docs/development/release-notes/v0.1.91.md b/docs/development/release-notes/v0.1.91.md index 1d3a4b0..b303a0b 100644 --- a/docs/development/release-notes/v0.1.91.md +++ b/docs/development/release-notes/v0.1.91.md @@ -1,6 +1,6 @@ -# PDF Presenter 0.1.91 +# Deckstride 0.1.91 -PDF Presenter releases are now regular releases rather than previews. The version +Deckstride releases are now regular releases rather than previews. The version remains below 1.0 while the project continues to refine platform integration and physical-display acceptance. diff --git a/docs/development/releases.md b/docs/development/releases.md index f8a1598..0c9cd9f 100644 --- a/docs/development/releases.md +++ b/docs/development/releases.md @@ -10,7 +10,7 @@ Build local artifacts without a token or contacting Gitea: ```sh CROSS_CONTAINER_ENGINE=podman ../rust_realease/target/release/rust_realease . \ - --package pdf-presenter --compile-only + --package deckstride --compile-only ``` Use the installed `rust_realease` command instead if preferred. Cross must have @@ -37,7 +37,7 @@ Publication is a separate explicit action: create the version tag at the reviewe commit, push that commit/tag, then run: ```sh -rust_realease . --package pdf-presenter \ +rust_realease . --package deckstride \ --message-file docs/development/release-notes/vVERSION.md \ --token-file ../gitea-token.txt ``` @@ -49,7 +49,7 @@ preparation. Never put credentials in configuration, artifacts or Git. ## Local validation for 0.1.33 Built Linux x86_64 GNU and Windows x86_64 GNU from commit `6bba0c4` with -`CROSS_CONTAINER_ENGINE=podman rust_realease . --package pdf-presenter --compile-only`. +`CROSS_CONTAINER_ENGINE=podman rust_realease . --package deckstride --compile-only`. Artifacts are in `dist/release-oTFW9Q/`. The installed tool is 0.1.6-rc.2: it builds raw binaries and binstall archives but does not implement the configured portable bundles. Those two bundles were assembled from the same binaries using exactly the diff --git a/docs/interfaces/html-layout-storage.md b/docs/interfaces/html-layout-storage.md index c69b288..46a541e 100644 --- a/docs/interfaces/html-layout-storage.md +++ b/docs/interfaces/html-layout-storage.md @@ -1,7 +1,7 @@ # HTML concept layout storage — version 1 Applies only to `docs/design/presenter-menu.html`, not the native application. -The page uses browser localStorage key `pdf-presenter.menu-layouts.v1`. Storage is +The page uses browser localStorage key `deckstride.menu-layouts.v1`. Storage is scoped by the browser to the page origin; file-URL handling is browser-dependent. It is not the native global configuration or a file saved alongside a PDF. diff --git a/docs/interfaces/settings.md b/docs/interfaces/settings.md index a1f6aef..058c67c 100644 --- a/docs/interfaces/settings.md +++ b/docs/interfaces/settings.md @@ -1,9 +1,12 @@ # Native settings, version 1 -`settings.toml` is stored in `$XDG_CONFIG_HOME/pdf-presenter` (otherwise -`~/.config/pdf-presenter`) on Linux. `directories::ProjectDirs` with qualifier `com`, -organization `Beffroi`, application `PdfPresenter` supplies other platforms' standard -per-user config/cache directories. The UI reports the actual configuration path. +`settings.toml` is stored in `$XDG_CONFIG_HOME/deckstride` (otherwise +`~/.config/deckstride`) on Linux. `directories::ProjectDirs` with qualifier `com`, +organization `Beffroi`, application `Deckstride` supplies other platforms' standard +per-user config/cache directories. On first start after the rename, Deckstride +copies valid settings from the former application directory when the new file does +not exist. It keeps using an existing warm slide cache until the new cache has been +populated, avoiding a forced rerender. The UI reports the actual configuration path. There is no separate project file or source-side settings write. The top-level `version = 1` is mandatory semantically (omitted defaults to 1). diff --git a/docs/portable-quickstart.txt b/docs/portable-quickstart.txt index 6cff93c..35e5100 100644 --- a/docs/portable-quickstart.txt +++ b/docs/portable-quickstart.txt @@ -1,11 +1,11 @@ -PDF Presenter — preview release +Deckstride — preview release -Windows: extract the ZIP and run pdf-presenter.exe. Its icon is embedded. -Linux: extract the tarball and run ./pdf-presenter. Optional menu/taskbar +Windows: extract the ZIP and run deckstride.exe. Its icon is embedded. +Linux: extract the tarball and run ./deckstride. Optional menu/taskbar integration: keep the extracted folder in a permanent location, then run python3 install-linux-launcher.py. No root privileges are needed. Python is -only needed for this optional installer, never for running PDF Presenter. -To remove integration delete ~/.local/share/applications/pdf-presenter.desktop +only needed for this optional installer, never for running Deckstride. +To remove integration delete ~/.local/share/applications/deckstride.desktop (or the corresponding file under your XDG_DATA_HOME). Wayland shells use that desktop entry to resolve the application icon. diff --git a/docs/user-guide.md b/docs/user-guide.md index ec46669..7ebdb8f 100644 --- a/docs/user-guide.md +++ b/docs/user-guide.md @@ -1,11 +1,11 @@ -# Using PDF Presenter +# Using Deckstride ## Install and update -Download the latest version from the [releases page](https://proxy.dandaedre.com/gitea/idle-org/pdf-presenter/releases). +Download the latest version from the [releases page](https://proxy.dandaedre.com/gitea/idle-org/deckstride/releases). Choose the portable ZIP for Windows x86_64 or the portable `.tgz` matching Linux x86_64, Linux ARM64, Apple Silicon macOS or Intel macOS. Extract the whole archive, -then run `pdf-presenter.exe` or `./pdf-presenter` as directed on the release page. +then run `deckstride.exe` or `./deckstride` as directed on the release page. No Rust toolchain, Python or separate PDF renderer is needed to run the application. Linux uses the system desktop services and X11/Wayland libraries. Windows binaries are unsigned; macOS packages are unsigned and require the release-page workaround. @@ -19,11 +19,11 @@ are required. On Windows, use **Menu → Preferences… → Set as default PDF app…** to register the portable executable for the current user. Windows opens -Default Apps for the required confirmation. Once PDF Presenter is selected for -`.pdf`, Explorer uses the icon embedded in `pdf-presenter.exe` for PDF files. Keep +Default Apps for the required confirmation. Once Deckstride is selected for +`.pdf`, Explorer uses the icon embedded in `deckstride.exe` for PDF files. Keep the extracted folder in a permanent location; repeat the action after moving it. -To update, close PDF Presenter, download and extract the new portable release, +To update, close Deckstride, download and extract the new portable release, and run its executable. Settings and saved layouts live in your user configuration directory, outside the extracted folder. If you installed the Linux launcher, rerun its installer from the new location so it points to the updated binary. @@ -55,7 +55,7 @@ zooming or blanking restarts the interval; dialogs and display confirmation paus ## Screens and presentation safety When the application starts with exactly one connected screen, it offers -**Single-screen mode** and explains that PDF Presenter is intended for a presenter +**Single-screen mode** and explains that Deckstride is intended for a presenter setup with separate Presenter and Slides screens. Choose **Keep Presenter view** to continue with the usual controls, or **Use single-screen mode**, then **Keep changes** to save it. This prompt is only offered at startup; disconnecting screens @@ -374,7 +374,7 @@ If your Niri rules still tile it, you can add this optional rule to your own con ```kdl window-rule { - match app-id="^pdf-presenter$" title="^PDF Presenter — All slides$" + match app-id="^deckstride$" title="^Deckstride — All slides$" open-floating true } ``` @@ -398,7 +398,7 @@ its embedded notes. For an image folder, the named file sits beside the folder a uses image filenames as keys. See the [notes format](interfaces/presentation-notes.md). **Double-click the notes pane** to edit that slide. If the named notes file does not -exist, PDF Presenter creates it with all notes found across the presentation before +exist, Deckstride creates it with all notes found across the presentation before opening the editable text. Creation and saving happen in the background. Choose **Save notes** to update this page and its auto-fit presenter text. Other diff --git a/rust-release.toml b/rust-release.toml index fa229d7..1aeca5d 100644 --- a/rust-release.toml +++ b/rust-release.toml @@ -34,15 +34,15 @@ archive-name = "{name}-{bundle}-{target}-v{version}" root = "{name}-{bundle}-{target}-v{version}" cargo-binaries = "all" files = [ - { source = "assets/window-icon.png", destination = "pdf-presenter.png" }, + { source = "assets/window-icon.png", destination = "deckstride.png" }, { source = "scripts/install-linux-launcher.py", destination = "install-linux-launcher.py", workspace-relative = true }, { source = "LICENSE", destination = "LICENSE.txt", workspace-relative = true }, { source = "docs/portable-quickstart.txt", destination = "README.txt", workspace-relative = true }, ] [[repository.fallbacks]] -origin = "https://git.dandaedre.com/idle-org/pdf-presenter" -fallback-url = "https://proxy.dandaedre.com/gitea/idle-org/pdf-presenter" +origin = "https://git.dandaedre.com/idle-org/deckstride" +fallback-url = "https://proxy.dandaedre.com/gitea/idle-org/deckstride" [gitea] token-env = "GITEA_TOKEN" diff --git a/scripts/ci.py b/scripts/ci.py index 2f92fca..e9d1541 100644 --- a/scripts/ci.py +++ b/scripts/ci.py @@ -28,7 +28,7 @@ def config(): def coverage_floor(): - key = "headless-line-floor" if os.environ.get("PDF_PRESENTER_HEADLESS_CI") == "1" else "line-floor" + key = "headless-line-floor" if os.environ.get("DECKSTRIDE_HEADLESS_CI") == "1" else "line-floor" return config()[key] diff --git a/scripts/gui_ci.py b/scripts/gui_ci.py index 9b33a8d..3f22641 100644 --- a/scripts/gui_ci.py +++ b/scripts/gui_ci.py @@ -30,7 +30,7 @@ def run(command): if not number.isdecimal() or len(number) > 5: log.seek(0) raise RuntimeError("Xvfb startup failed: " + log.read(2048).decode(errors="replace")) - env = dict(os.environ, DISPLAY=f":{number}", PDF_PRESENTER_GUI_TESTS="1") + env = dict(os.environ, DISPLAY=f":{number}", DECKSTRIDE_GUI_TESTS="1") env.pop("WAYLAND_DISPLAY", None) env.pop("WAYLAND_SOCKET", None) return subprocess.run(command, env=env, timeout=1800).returncode diff --git a/scripts/install-linux-launcher.py b/scripts/install-linux-launcher.py index cb3aa12..8f0aafb 100644 --- a/scripts/install-linux-launcher.py +++ b/scripts/install-linux-launcher.py @@ -12,24 +12,24 @@ def desktop_entry(binary, icon): command = str(binary).replace("%", "%%") for char in ("\\", '"', "`", "$"): command = command.replace(char, "\\" + char) - return ('[Desktop Entry]\nType=Application\nName=PDF Presenter\n' + return ('[Desktop Entry]\nType=Application\nName=Deckstride\n' 'Comment=Multiscreen PDF and picture presenter\n' f'Exec="{string(command)}" %f\nIcon={string(icon)}\n' 'Terminal=false\nCategories=Office;Presentation;\n' - 'MimeType=application/pdf;\nStartupWMClass=pdf-presenter\n') + 'MimeType=application/pdf;\nStartupWMClass=deckstride\n') def main(): if not sys.platform.startswith("linux"): raise SystemExit("This optional launcher is for Linux only.") root = Path(__file__).resolve().parent - binary, icon = root / "pdf-presenter", root / "pdf-presenter.png" + binary, icon = root / "deckstride", root / "deckstride.png" if not binary.is_file() or not icon.is_file(): raise SystemExit("Run this script from the extracted portable Linux bundle.") data = Path(os.environ.get("XDG_DATA_HOME") or Path.home() / ".local/share") if not data.is_absolute(): raise SystemExit("XDG_DATA_HOME must be absolute.") - target = data / "applications/pdf-presenter.desktop" + target = data / "applications/deckstride.desktop" target.parent.mkdir(parents=True, exist_ok=True) target.write_text(desktop_entry(binary, icon), encoding="utf-8") print(f"Installed {target}. Keep the portable folder at {root}.") diff --git a/scripts/notices.py b/scripts/notices.py index 6de9c0c..ea84b41 100644 --- a/scripts/notices.py +++ b/scripts/notices.py @@ -32,7 +32,7 @@ def main(): f"License expression: {package['license']}\n" f"Source: {package.get('repository') or 'https://crates.io/crates/' + package['name']}\n" + "\n".join(notices)) - font_license = ROOT / "crates/pdf-presenter/assets/fonts/OFL.txt" + font_license = ROOT / "crates/deckstride/assets/fonts/OFL.txt" font_text = font_license.read_text() font_digest = hashlib.sha256(font_text.encode()).hexdigest()[:16] texts[font_digest] = font_text @@ -40,7 +40,7 @@ def main(): "License expression: OFL-1.1\n" "Source: https://github.com/notofonts/noto-cjk/releases/tag/Sans2.004\n" f" assets/fonts/OFL.txt: text {font_digest}") - header = ("PDF Presenter — locked dependency and font notices\n" + header = ("Deckstride — locked dependency and font notices\n" "Generated by scripts/notices.py. Includes target/build-only dependencies;\n" "the presence of a package here does not mean it is linked on every OS.\n" "Unmodified source packages are available at https://crates.io.\n" diff --git a/scripts/publish-badges.sh b/scripts/publish-badges.sh index 82f14e3..6883804 100755 --- a/scripts/publish-badges.sh +++ b/scripts/publish-badges.sh @@ -15,7 +15,7 @@ for name do [ -f "$src" ] && [ -s "$src" ] && [ ! -L "$src" ] || { echo "Invalid badge source: $src" >&2; exit 2; } done dest=$root -for component in idle-org pdf-presenter; do +for component in idle-org deckstride; do dest="$dest/$component" [ ! -L "$dest" ] || { echo "Refusing directory symlink: $dest" >&2; exit 2; } if [ -e "$dest" ]; then diff --git a/tests/test_ci_badges.py b/tests/test_ci_badges.py index c5cc9a0..1a5dd0e 100644 --- a/tests/test_ci_badges.py +++ b/tests/test_ci_badges.py @@ -89,15 +89,15 @@ class BadgeTests(unittest.TestCase): public = self.root / "public" public.mkdir(exist_ok=True) self.assertEqual(self.publish(public, "version", "test", "coverage").returncode, 0) - self.assertEqual((public / "idle-org/pdf-presenter/main/coverage.svg").read_bytes(), measured) + self.assertEqual((public / "idle-org/deckstride/main/coverage.svg").read_bytes(), measured) self.assertFalse(Path("coverage/.coverage-ready-42").exists()) self.assertIn("failing", Path("coverage/test.svg").read_text()) def test_headless_floor_is_explicit_and_still_enforces_threshold_and_tool_errors(self): for enabled, floor in [("", 75), ("0", 75), ("1", 60)]: - with patch.dict(os.environ, {"PDF_PRESENTER_HEADLESS_CI": enabled}): + with patch.dict(os.environ, {"DECKSTRIDE_HEADLESS_CI": enabled}): self.assertEqual(ci.coverage_floor(), floor) - with patch.dict(os.environ, {"PDF_PRESENTER_HEADLESS_CI": "1"}): + with patch.dict(os.environ, {"DECKSTRIDE_HEADLESS_CI": "1"}): for covered, status, expected in [(6521, 0, 0), (6000, 0, 0), (5999, 0, 1), (6521, 7, 7)]: with self.subTest(covered=covered, status=status), contextlib.redirect_stdout(io.StringIO()): self.assertEqual(ci.measure(self.report(covered), ci.coverage_floor(), status), expected) @@ -148,7 +148,7 @@ class BadgeTests(unittest.TestCase): public = self.root / "public" public.mkdir() self.assertEqual(self.publish(public, "version", "test", "coverage").returncode, 0) - destination = public / "idle-org/pdf-presenter/main" + destination = public / "idle-org/deckstride/main" for directory in (public / "idle-org", destination.parent, destination): self.assertEqual(stat.S_IMODE(directory.stat().st_mode), 0o755) for path in destination.iterdir(): @@ -174,7 +174,7 @@ class BadgeTests(unittest.TestCase): def test_readme_urls_and_exact_archive_selection(self): text = (ROOT / "README.md").read_text() for kind in ("version", "test", "coverage"): - self.assertEqual(text.count(f"https://assets.dandaedre.com/coverage/idle-org/pdf-presenter/main/{kind}.svg"), 1) + self.assertEqual(text.count(f"https://assets.dandaedre.com/coverage/idle-org/deckstride/main/{kind}.svg"), 1) self.assertIn("artifacts: 'coverage/version.svg,coverage/test.svg,coverage/coverage.svg'", (ROOT / "Jenkinsfile").read_text()) diff --git a/tests/test_gui_ci.py b/tests/test_gui_ci.py index e8a4a7c..eef1bd6 100644 --- a/tests/test_gui_ci.py +++ b/tests/test_gui_ci.py @@ -25,7 +25,7 @@ class GuiCiTests(unittest.TestCase): server = Path(directory) / "Xvfb" server.write_text(f"#!{sys.executable}\nimport os,sys,signal\nos.write(int(sys.argv[2]),b'47\\n')\nsignal.pause()\n") server.chmod(0o700) - command = [sys.executable, "-c", "import os,sys; assert os.environ['DISPLAY']==':47'; assert os.environ['PDF_PRESENTER_GUI_TESTS']=='1'; assert 'WAYLAND_DISPLAY' not in os.environ; sys.exit(7)"] + command = [sys.executable, "-c", "import os,sys; assert os.environ['DISPLAY']==':47'; assert os.environ['DECKSTRIDE_GUI_TESTS']=='1'; assert 'WAYLAND_DISPLAY' not in os.environ; sys.exit(7)"] with patch.object(gui.shutil, "which", return_value=str(server)): self.assertEqual(gui.run(command), 7) # Invalid readiness cannot run the requested command. diff --git a/tests/test_launcher.py b/tests/test_launcher.py index 13756de..039170a 100644 --- a/tests/test_launcher.py +++ b/tests/test_launcher.py @@ -14,11 +14,11 @@ spec.loader.exec_module(launcher) class LauncherTests(unittest.TestCase): def test_exec_escapes_field_codes_and_shell_characters(self): - entry = launcher.desktop_entry('/tmp/a b%f/$x`y"/pdf-presenter', '/tmp/icon.png') + entry = launcher.desktop_entry('/tmp/a b%f/$x`y"/deckstride', '/tmp/icon.png') self.assertIn('%%f', entry) self.assertIn('\\\\$', entry) self.assertIn('\\\\`', entry) - self.assertIn('StartupWMClass=pdf-presenter', entry) + self.assertIn('StartupWMClass=deckstride', entry) self.assertIn('" %f\n', entry) @unittest.skipUnless(sys.platform.startswith("linux"), "Linux launcher integration") @@ -29,17 +29,17 @@ class LauncherTests(unittest.TestCase): bundle.mkdir() script = bundle / SCRIPT.name script.write_bytes(SCRIPT.read_bytes()) - (bundle / 'pdf-presenter').touch() - (bundle / 'pdf-presenter.png').touch() + (bundle / 'deckstride').touch() + (bundle / 'deckstride.png').touch() env = dict(os.environ, XDG_DATA_HOME=str(root / 'data')) result = subprocess.run( [sys.executable, str(script)], env=env, capture_output=True, text=True ) self.assertEqual(result.returncode, 0, result.stderr) - installed = root / 'data/applications/pdf-presenter.desktop' + installed = root / 'data/applications/deckstride.desktop' self.assertEqual(installed.read_text(), launcher.desktop_entry( - bundle / 'pdf-presenter', bundle / 'pdf-presenter.png')) - (bundle / 'pdf-presenter').unlink() + bundle / 'deckstride', bundle / 'deckstride.png')) + (bundle / 'deckstride').unlink() result = subprocess.run( [sys.executable, str(script)], env=env, capture_output=True, text=True ) diff --git a/vendor/egui_software_backend/PDF-PRESENTER-PATCH.md b/vendor/egui_software_backend/DECKSTRIDE-PATCH.md similarity index 95% rename from vendor/egui_software_backend/PDF-PRESENTER-PATCH.md rename to vendor/egui_software_backend/DECKSTRIDE-PATCH.md index d7361e8..c28e23a 100644 --- a/vendor/egui_software_backend/PDF-PRESENTER-PATCH.md +++ b/vendor/egui_software_backend/DECKSTRIDE-PATCH.md @@ -24,7 +24,7 @@ Local changes: Cached primitives, alpha compositing, canvas buffers and general UI drawing keep their upstream representation. No new coverage exclusions were added. -Tests: `crates/pdf-presenter/tests/zoom.rs`, `slide_colors.rs`, and native tests. +Tests: `crates/deckstride/tests/zoom.rs`, `slide_colors.rs`, and native tests. They compare optimized pixels with the general raster path, exercise clipping/DPI, alpha and crop bounds, and check that panning does not upload another texture. Benchmark: `cargo test --release --test zoom buffered_zoom_drawing_measurement -- diff --git a/vendor/egui_software_backend/src/fast_image.rs b/vendor/egui_software_backend/src/fast_image.rs index e544155..8175c73 100644 --- a/vendor/egui_software_backend/src/fast_image.rs +++ b/vendor/egui_software_backend/src/fast_image.rs @@ -1,4 +1,4 @@ -//! PDF Presenter patch: bounded scanline sampling for cropped, untinted image quads. +//! Deckstride patch: bounded scanline sampling for cropped, untinted image quads. //! Keep general meshes, fonts, wrapping, full images and tinting on the upstream path. use crate::{BufferMutRef, EguiTexture}; use alloc::vec::Vec;