Skip to content

Windows version: native app, installer, shared core - #2

Merged
jayhemnani9910 merged 10 commits into
mainfrom
feat/windows
Oct 31, 2026
Merged

jayhemnani9910 merged 10 commits into
mainfrom
feat/windows

Conversation

@jayhemnani9910

Copy link
Copy Markdown
Owner
  • Portable core: platform differences in sys.rs; wheel logic, geometry and CLI shared by both front ends
  • Windows app (src/win/): mouse hook notices drag + Shift, wheel is a copy-only OLE drop target drawn with Direct2D, status pop-up, trim/resize dialogs, Send To click mode, single instance
  • PATH rebuilt from the registry so freshly installed converters are found
  • Inno Setup installer: bundled Ghostscript, winget for FFmpeg/ImageMagick/Poppler/LibreOffice, start at sign-in, Send To
  • CI on Linux and Windows; releases attach ShiftDrop-Setup-x64.exe
  • README: Windows install, licenses, code signing policy

Linux app checked on this branch (D-Bus actions, wheel placement, CLI). Windows not yet tested on a real desktop.

Starting converters, finding them on PATH, home and cache folders, the
writable-folder check and the process-alive check now have Linux and
Windows versions. Converters start without a console window on Windows;
Ghostscript is gswin64c there. GTK deps are Linux-only, libc Unix-only.
Tests that need Unix commands or permissions are marked Unix-only.
session.rs holds what the wheel offers, the centre text, running a batch
and the result summary; app.rs keeps only the GTK side. The CLI moves to
the library, with shiftdrop-cli as a console-only binary for Windows.
A low-level mouse hook on its own thread notices a drag and Shift (Ctrl
for tools) and shows the wheel under the pointer: first as an invisible
disc that catches the drag, drawn once the drag turns out to carry files.
The wheel is an OLE drop target that only ever accepts a copy. Direct2D
draws both windows; work runs through session, as on Linux. Logs to
%LOCALAPPDATA%\shiftdrop\shiftdrop.log. Trim and resize dialogs to come.
A program started by an installer inherits the PATH from before winget
added the converters. Also look in winget's links folders, LibreOffice's
folder and the Ghostscript shipped next to the exe. LibreOffice gets a
proper file:/// URL on Windows.
A second launch passes its files to the running copy and leaves. Files
sent from Explorer open the wheel at the pointer to pick by clicking;
right-click switches to tools, Esc or clicking elsewhere closes it.
Installs both exes and Ghostscript (fetched from Artifex, hash-checked),
starts ShiftDrop at sign-in as the signed-in user, adds Send To, and
installs FFmpeg, ImageMagick, Poppler and optionally LibreOffice with
winget, or points to downloads when winget is missing.
@jayhemnani9910
jayhemnani9910 merged commit 425c240 into main Oct 31, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant