Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
TypeScript cross-platformelectronffmpegopen-sourceproduct-demorustscreen-capturescreen-recorderscreen-recordingscreen-studioscreencastspeech-to-texttypescriptvideo-editingvideo-editorwaylandwgpuwhisper
fix: restore public/ copies of demo.gif and preview images for hotlinks
Claude9550cb06fa02
diff --git a/electron-builder.json5 b/electron-builder.json5index 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.gifnew file mode 100644index 000000000..9c2a0270eBinary files /dev/null and b/public/demo.gif differdiff --git a/public/preview3.png b/public/preview3.pngnew file mode 100644index 000000000..6556a7817Binary files /dev/null and b/public/preview3.png differdiff --git a/public/preview4.png b/public/preview4.pngnew file mode 100644index 000000000..348216aefBinary files /dev/null and b/public/preview4.png differdiff --git a/technical-documentation/engineering/build-and-packaging.md b/technical-documentation/engineering/build-and-packaging.mdindex 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.lpMarketing 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.