Repository navigation
Building from source
- Go 1.24 or newer
- Windows for running; building and the tests also work on Linux and macOS (cross-compiling)
The first build downloads the Go modules (go.mod). Run go mod vendor once if you want to build offline later: Go then uses vendor/ automatically.
On Windows: double-click build.cmd, or:
go build -trimpath -ldflags "-s -w -H=windowsgui" -o SpeedEditorLR2.exe .
From Linux or macOS:
GOOS=windows GOARCH=amd64 go build -trimpath -ldflags "-s -w -H=windowsgui" -o SpeedEditorLR2.exe .
rsrc_windows_amd64.syso holds the exe icon and is linked in automatically. The Lightroom plug-in in plugin/ is embedded in the exe (go:embed) and installed by the app.
To try a build while the app is running, save it as SpeedEditorLR2.update.exe next to the running exe: it swaps itself within seconds.
go test -race -count=1 .
Runs on Linux/macOS. It covers the button logic, wheel maths (thresholds, precise steps, acceleration), config migrations, the plug-in link against a fake Lightroom, and two simulated Speed Editors going through the full sign-in.
The Lightroom plug-in is tested in Lua 5.1 with a simulated Lightroom SDK:
pip install lupa
python3 test/test_plugin.py plugin/SpeedEditorLR.lrplugin/Init.lua
GitHub Actions runs both and builds the exe on every push (download it under Actions → run → Artifacts). Publishing a release attaches the exe to it automatically.
| File | Contents |
|---|---|
main.go |
start, tray menu, plug-in ↔ on-screen messages |
devices.go |
find panels, one session per panel, battery, identify, names |
devtypes.go |
known Blackmagic devices and product IDs |
runner.go |
buttons: press, long press, hold + wheel, wheel maths, macros |
speededitor.go, hid_windows.go
|
Speed Editor protocol and Windows HID |
lrlink.go |
link to the Lightroom plug-in |
plugin/SpeedEditorLR.lrplugin/ |
the Lightroom plug-in (Lua) |
plugin.go |
installs the plug-in into Lightroom's Modules folder |
config.go |
settings, layers (General + pages), defaults, smart layout, migrations |
presets.go |
action and wheel-function lists (NL/EN) |
pages.go |
page per Lightroom module |
web.go, settings.html, window_windows.go
|
settings window (local web server + WebView2) |
osd_windows.go |
on-screen messages |
input_windows.go, keys.go
|
key presses, foreground app, autostart, single instance |
update_windows.go |
self-update via SpeedEditorLR2.update.exe
|
i18n.go, icon.go, logfile.go
|
texts, tray icon, log |
logic_test.go, multi_test.go
|
tests |
test/test_plugin.py |
plug-in test in Lua 5.1 |
Resolve Panels for Lightroom · MIT License · Independent project, not affiliated with Blackmagic Design or Adobe.