README
¶
Desktop app and quick support packages
The double-click builds of remohop app (the desktop app, internal/desktop) and remohop quick (quick support,
internal/quick). Both are one program, cmd/remohop-quick, which picks its mode by its file name
(cmd/remohop-quick/launch.go): a name with "quick" in it starts quick support, any other name the app.
make quick # everything below, into dist/quick
EXTRA_LDFLAGS="-X github.com/readori/RemoHop/internal/dial.DefaultSignal=HOST:21116" make quick
| Output | What it is |
|---|---|
dist/quick/windows-amd64/RemoHop.exe, windows-arm64/RemoHop.exe |
Windows GUI program (-H windowsgui: no console window), with the icon and an application manifest linked in |
dist/quick/windows-*/RemoHop-QuickSupport.exe |
the same file under the quick-support name |
dist/quick/macos/RemoHop.app |
macOS bundle with a universal (arm64 + x86_64) program, Info.plist, RemoHop.icns and the license files. Unsigned (the release's RemoHop-macos.zip is signed, see below). |
dist/quick/macos/RemoHop Quick Support.app |
the same program as Contents/MacOS/RemoHop-QuickSupport, bundle id com.remohop.quicksupport |
dist/quick/linux-amd64/remohop-app, remohop-quick (and linux-arm64) |
the same program for Linux under both names (dynamically linked against glibc: it loads GTK for its window) |
dist/quick/RemoHop.ico, RemoHop.icns, RemoHop.png |
the icon by itself, for installers and the website |
Everything is made with Go alone (CGO_ENABLED=0), from any system; packaging/quick/build.sh is the whole recipe
(TARGETS="windows linux macos icons" picks parts of it). Releases carry the results as RemoHop-windows-*.zip,
RemoHop-QuickSupport-windows-*.zip, RemoHop-macos.zip, RemoHop-macos.dmg, RemoHop-QuickSupport-macos.zip,
remohop-app_linux_*.tar.gz and remohop-quick_linux_*.tar.gz (see packaging/README.md); the Microsoft
Store package is made from the Windows program by packaging/windows/msix.
How the pieces are made
packaging/quick/gen is a small Go program without dependencies:
-
Icon. Drawn in code (
icon.go), the same mark as the mobile apps, the website and the page'sicon.svg. Windows gets 16 to 64 pixels as bitmaps and 256 as PNG; macOS gets PNG entries from 32 to 1024 pixels with the usual margin. -
Windows resources.
gen -syso cmd/remohop-quickwritesrsrc_windows_{amd64,arm64,386}.sysonext to the main package: COFF objects with one.rsrcsection holding the icon group, its images and the manifest (run as the invoking user, Windows 10/11, current visual style; no DPI setting, because the capture and input code sets that itself). The Go linker links a.sysoit finds there; nowindres, no cgo, no extra module. The files are generated and git-ignored.gen -verify RemoHop.exereads the linked program back and fails the build when the resources or the GUI subsystem are missing. There is no version-information resource yet (the file's Properties > Details page is empty). -
macOS bundle.
gen -app RemoHop.app -binary arm64=...,amd64=...joins the two programs into a universal binary (the same layoutlipowrites) and lays out the bundle:RemoHop.app/Contents/Info.plist com.remohop.quick, LSUIElement, macOS 12+ RemoHop.app/Contents/PkgInfo RemoHop.app/Contents/MacOS/RemoHop cmd/remohop-quick, universal RemoHop.app/Contents/Resources/RemoHop.icnsLSUIElementkeeps the app out of the Dock: its window is a browser page, and a Dock icon for a process that never opens a window of its own would bounce and then show as not responding.
Signing
Nothing make quick writes is signed. Releases:
Windows. RemoHop.exe goes through the same hook as remohop.exe (scripts/sign-windows.sh, see packaging/README.md); the release workflow already passes both RemoHop.exe files to it. Until signing is set up, SmartScreen warns on first start.
macOS. The signing workflow in the CI repository (sodesk-macos-release.yml, see packaging/README.md) builds the bundle with TARGETS=macos, signs, notarizes and staples it, and returns RemoHop-macos.zip; it first passed on 2026-11-24 (Gatekeeper accepts a quarantined copy as "Notarized Developer ID", the app's page answers, LaunchServices starts it). What it does, and why:
-
Build the bundle on the runner (
make quick, or only the darwin part ofbuild.sh), or build the two thin programs there and rungen -app. Do not sign the thin programs first: signing happens once, on the finished bundle. -
Sign the bundle, not the file inside it:
codesign --force --options runtime --timestamp --sign "Developer ID Application: ..." dist/quick/macos/RemoHop.app. That signs the main program and sealsInfo.plistand the resources intoContents/_CodeSignature. It is the same program asremohop, which is signed without entitlements today, so none should be needed (it loads only system frameworks, through purego, and sends no Apple events to other apps). -
Notarize an archive of the bundle, then staple the bundle itself, which a bare binary cannot do (so the app passes Gatekeeper offline):
ditto -c -k --keepParent RemoHop.app RemoHop.zip xcrun notarytool submit RemoHop.zip --keychain-profile ... --wait xcrun stapler staple RemoHop.app ditto -c -k --keepParent RemoHop.app RemoHop-macos.zip # zip again: the ticket is inside now spctl --assess --type execute -vv RemoHop.app # "accepted, source=Notarized Developer ID" -
Ship the zip made with
ditto(or a.dmg).zip -randtarfrom other tools can drop the bundle's symlinks and extended attributes on some systems;dittois what Apple's tools expect. -
The identity that macOS privacy settings remember (Screen Recording, Accessibility) is the bundle identifier plus the signing team. It must stay
com.remohop.quicksigned by the same team across releases, or users are asked to grant the permissions again. An unsigned or ad-hoc signed build gets a new identity with every build.
The release workflow in this repository downloads the signed zip with remohop, and scripts/build-release.sh darwin-app checks after unpacking that Contents/MacOS/RemoHop is a universal Mach-O carrying the version string, that the license files and the stapled ticket are there, then releases the zip unchanged.
Not verified yet
The page and its server are tested in headless Chromium on Linux, and the app-window mode was run with Chromium under a virtual display. On hosted CI machines: the signed RemoHop.app passes Gatekeeper, serves its page and is started by LaunchServices (macOS); the MSIX-packaged RemoHop.exe starts from its package and opens its page in an Edge app window (Windows x64 and arm64). Still not run on real desktops by a person: the message box / osascript approval dialogs, the icon in Explorer and Finder, and a full help session.
Directories
¶
| Path | Synopsis |
|---|---|
|
Command gen makes the packaging pieces of the double-click build (see packaging/quick/README.md): the Windows resource objects that give RemoHop.exe its icon and manifest, the icon files, and the RemoHop.app bundle for macOS.
|
Command gen makes the packaging pieces of the double-click build (see packaging/quick/README.md): the Windows resource objects that give RemoHop.exe its icon and manifest, the icon files, and the RemoHop.app bundle for macOS. |