Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

fix: restore public/ copies of demo.gif and preview images for hotlinks

Claude9550cb06fa02
diff --git a/electron-builder.json5 b/electron-builder.json5
index 6ba6808d9..930368613 100644
--- a/electron-builder.json5
+++ b/electron-builder.json5
@@ -90,6 +90,10 @@
"files": [
"dist",
"dist-electron",
+ // public/demo.gif and public/preview*.png are kept only so external pages that hotlink the
+ // old raw.githubusercontent.com URLs keep working; Vite copies them into dist/, so drop them.
+ "!dist/demo.gif",
+ "!dist/preview*.png",
// Exclude assets already bundled into extraResources (saves ~17 MB duplicate in asar)
"!dist/wallpapers/**",
"!dist/cursors/**",
diff --git a/public/demo.gif b/public/demo.gif
new file mode 100644
index 000000000..9c2a0270e
Binary files /dev/null and b/public/demo.gif differ
diff --git a/public/preview3.png b/public/preview3.png
new file mode 100644
index 000000000..6556a7817
Binary files /dev/null and b/public/preview3.png differ
diff --git a/public/preview4.png b/public/preview4.png
new file mode 100644
index 000000000..348216aef
Binary files /dev/null and b/public/preview4.png differ
diff --git a/technical-documentation/engineering/build-and-packaging.md b/technical-documentation/engineering/build-and-packaging.md
index 8530ab6e4..35a19b306 100644
--- a/technical-documentation/engineering/build-and-packaging.md
+++ b/technical-documentation/engineering/build-and-packaging.md
@@ -267,6 +267,8 @@ Because macOS `ElectronFramework` directory matching uses underscores (`pt_BR.lp
Marketing and documentation assets (`demo.gif`, `preview*.png`) reside in `docs/assets/` rather than Vite's `public/` directory. This prevents Vite's dev server and build step from copying ~8 MB of documentation media into `dist/`.
+Copies of the same three files also remain at their old `public/` paths, because external pages (directories, articles, awesome lists) hotlink `https://raw.githubusercontent.com/getopenscreen/openscreen/main/public/demo.gif` and friends, and moving them broke those images. Vite still copies them into `dist/`, so `electron-builder.json5` excludes `dist/demo.gif` and `dist/preview*.png` from the package. Reference `docs/assets/` from anything new; do not delete the `public/` copies.
+
### Compression configuration
`electron-builder.json5` declares `compression: "normal"`. For Windows NSIS installers, electron-builder's differential packaging options enforce normal, non-solid compression with a 1 MB dictionary (`dictSize = 1`, `solid = false`). Setting `"maximum"` has no effect on Windows installers and only increases build times for Linux AppImage targets without meaningful size reductions.