Repository navigation
Add a macOS and Linux preview (read-only) - #1
Open
HelloAxoxelol wants to merge 1 commit into
Open
HelloAxoxelol wants to merge 1 commit into
HelloAxoxelol wants to merge 1 commit into
Conversation
The protocol code in src/Device is now separate from the Windows HID transport (WinHid.cs), so the Windows build (csc.exe, C# 5) and the new cross-platform build share CompxDevice, ConfigMap and MouseConfig. cross/ holds the new build: - Core: the shared files plus a HidSharp transport - App: a menu bar / tray icon with the battery level, low battery notifications, start at login and a read-only settings window - Cli: compxtray-cli with battery, settings, diagnose and devices - linux/ and macos/: packaging, an installer, a udev rule for access without root, and an ad-hoc signed CompxTray.app The build workflow gets Linux and macOS jobs, and tagged releases now collect the Windows, Linux and macOS packages in one release job. Tested against a Svive Flow 7 on Windows only; not yet run on a real Mac or Linux PC. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a preview of CompxTray for macOS and Linux. It shows the battery level in the menu bar or tray and the mouse's settings, read-only for now.
What changes
Shared protocol code.
src/Device/CompxDevice.csno longer contains the Windows HID calls. They moved tosrc/Device/WinHid.cs. The protocol,ConfigMapandMouseConfigare now shared by both builds. The Windows app is still built withbuild.bat(csc.exe, C# 5, no SDK), and the files undertools/includeWinHid.cs.cross/: the new macOS and Linux build (.NET 10)Core: links the shared files and adds a HidSharp transportApp(Avalonia 12): menu bar / tray icon with the battery level, low battery notifications, start at login and a read-only settings windowCli:compxtray-cliwithbattery,settings,diagnoseanddeviceslinux/: tar.gz withinstall.shand a udev rule (uaccess) for access to the receiver without rootmacos/: ad-hoc signedCompxTray.app(LSUIElement, no Dock icon) for Apple silicon and Intel. It is not notarized.App and CLI are trimmed (about 45 MB and 11–13 MB). HidSharp is kept whole because it is not trim-safe.
Workflow. New Linux and macOS jobs run on every push and PR. Tagged releases now collect the Windows, Linux and macOS packages in one
releasejob. The Windows asset names are unchanged.Docs. README has a "macOS and Linux (preview)" section, plus a line in the Swedish section. CHANGELOG has an Unreleased entry.
cross/THIRD-PARTY-NOTICES.txtships in the packages.Testing
compxtray-cliand the Avalonia app, run on Windows through HidSharp, read the same battery level, firmware and settings as the Windows app. The trimmed build behaves the same.buildworkflow on this branch passed for all four jobs: Windows, linux-x64, osx-arm64 and osx-x64.🤖 Generated with Claude Code