You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 137789d
Browse filesBrowse the repository at this point in the historyBrowse files
[Feature] Electron 21→43 upgrade, preload bridge fix, and CI modernization (#57)
* Add project planning doc: history, architecture critique, diagrams
Baseline snapshot of DropPoint's commit history, current architecture
(with Mermaid component/sequence diagrams), a critique of known
architecture issues, the open-issue backlog grouped by theme, and a
tentative future-architecture diagram for the next roadmap phase
(move mode, configurable shortcuts, Electron/security modernization,
finishing instance history). Open questions are tracked for follow-up.
* Upgrade Electron 21 -> 43, modernize CI, add boot smoke test
Dependency bumps:
- electron 21.3.1 -> 43.2.0
- electron-builder 23.0.2 -> 26.15.3
- electron-updater 4.3.9 -> 6.8.9
- electron-store held at ^8.x (v9+ is ESM-only)
Blocker fix: File.path was removed in Electron 32+, which breaks the
core drag-in path. Dropped-file paths now resolve via
webUtils.getPathForFile, exposed through the preload contextBridge and
called from renderer/droppoint.js.
CI: bump actions to v4, Node 18 -> 22 (Electron 43 needs >=22.12), and
replace the archived samuelmeuli/action-electron-builder with explicit
npm ci + build/release steps (release still gated on v* tags). Add a
smoke_test job running under xvfb.
Tests: add a Playwright _electron smoke test that boots the app and
asserts the shelf window opens and the getPathForFile bridge is exposed.
Cleanup: remove the dead <webview> tag from settings.html (webviewTag
was never enabled) and document the raised OS floor (Windows 10+,
macOS 12+) in the README.
Note: nodeIntegration hardening was intentionally deferred; it is a
suspected deliberate workaround and needs its own investigation.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NfJxwvs65kVRNnVym5UsYe
* Pin supported Node to 22 LTS to fix Electron install on newer Node
Electron 43's post-install runs @electron/get v5 (pure ESM), which does
a bare ESM import of the CommonJS sumchecker package. Node's newer
"Current" releases (e.g. 26.x) have a legacyMainResolve regression that
fails to resolve sumchecker's legacy `main` field, crashing the binary
download so `npm start` reports "Electron failed to install correctly."
Add an engines floor (>=22.12.0, matching @electron/get) and an .nvmrc
pinning Node 22 LTS, and document the requirement in the README so this
footgun is caught early instead of surfacing as a cryptic ESM error.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NfJxwvs65kVRNnVym5UsYe
* Fix blank Windows tray icon by not resizing the .ico
On Windows the tray icon was built by resizing a nativeImage created
from the multi-resolution droppoint.ico down to 16px. On HiDPI Windows
displays this renders a blank (but still clickable) tray slot. Pass the
.ico through untouched on Windows so the OS selects the correct frame
for the display DPI; keep the 16px resize for macOS/Linux, which expect
a small image.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NfJxwvs65kVRNnVym5UsYe
* Fix CI: invalid win build config and smoke-test binary-download race
Builds (all 3 OSes) failed electron-builder 26 schema validation:
win.publisherName is no longer allowed on WindowsConfiguration
(additionalProperties: false; it moved to the Windows signing config).
Removed it — the app doesn't code-sign, so it had no effect.
smoke_test timed out because the Electron binary was downloading during
the test, exceeding the 60s timeout. Pre-download the binary in a
dedicated CI step before running the test, and raise the Playwright
timeout to 120s for cold-runner launch margin.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NfJxwvs65kVRNnVym5UsYe
* Harden smoke test for xvfb: no-sandbox/disable-gpu + log piping
The smoke test hung the full timeout under CI because Electron's
transparent shelf window wedges the GPU/sandbox process under xvfb, so
_electron.launch() never settled. Launch with --no-sandbox,
--disable-gpu, --disable-dev-shm-usage and --disable-software-rasterizer
(standard CI flags), and pipe the Electron main-process stdout/stderr
into the test output so any further failure is diagnosable.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NfJxwvs65kVRNnVym5UsYe
* Fix CI: builds must not publish; smoke test must not eval blank splash
Build jobs packaged successfully but failed at the end trying to publish
to GitHub Releases ("GH_TOKEN not set"). push-triggered runs don't get a
token and shouldn't publish — only the tag-gated release step should.
Set the build script to `electron-builder --publish never`; `release`
keeps `--publish always`.
Smoke test: the app boots fine (logs confirm the shelf Instance is
created), but getShelfWindow called `.title()` on the hidden splash
BrowserWindow, which loads no content and hangs the eval, timing out the
whole test. Match the shelf by `win.url()` (no in-page eval) instead, and
read title + preload-bridge presence in a single evaluate after
domcontentloaded.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NfJxwvs65kVRNnVym5UsYe
* Make smoke test process-level to avoid CDP wedge under xvfb
Playwright's _electron CDP driver hung the full timeout (teardown
included) introspecting DropPoint's transparent, always-on-top shelf
window under a bare xvfb X server with no window manager. The app itself
boots fine — CI logs show it logging "Instance ID" every run.
Replace the CDP approach with a robust process-level boot check: spawn
the app, wait for its own "Instance ID" ready-log on stdout (proving it
launched and created the shelf without crashing on Electron 43), then
SIGKILL it. Add a fast source-level guard that the File.path ->
webUtils.getPathForFile fix stays wired in preload.js and droppoint.js.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NfJxwvs65kVRNnVym5UsYe
---------
Co-authored-by: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: README.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,8 @@ DropPoint helps you drag content without having to open side-by-side windows
23
23
24
24
Works on **Windows**, **Linux** and **MacOS**.
25
25
26
+
> **Minimum OS versions:** Windows 10 or later, macOS 12 (Monterey) or later, and a modern 64-bit Linux distribution. Older releases (pre-`1.3.x`) are available for legacy systems on the [Releases Page](https://github.com/GameGodS3/DropPoint/releases).
27
+
26
28
## Table of Contents
27
29
-[:sparkles: Demo](#sparkles-demo)
28
30
*[Across maximized windows in the same desktop](#across-maximized-windows-in-the-same-desktop)
@@ -67,7 +69,9 @@ Go to the [Releases Page](https://github.com/GameGodS3/DropPoint/releases) to do
67
69
68
70
## :gear: Developer Installation
69
71
70
-
**You must have NPM and Git installed in your PC**
72
+
**You must have Node.js and Git installed in your PC.**
73
+
74
+
> Use **Node.js 22 LTS** (the version this project is built and tested against — see `.nvmrc`). Newer non-LTS "Current" releases such as Node 26 have ESM module-resolution regressions that break Electron's binary install (`@electron/get` fails to load `sumchecker`). If you use [nvm](https://github.com/nvm-sh/nvm), run `nvm use`.
0 commit comments