Add Cloud Agent dev environment for the Windows Java client - #60
Open
ShawnyinsGit wants to merge 1 commit into
Open
ShawnyinsGit wants to merge 1 commit into
ShawnyinsGit wants to merge 1 commit into
Conversation
Adds .cursor/environment.json + .cursor/install.sh so a Cloud Agent can build and debug the Windows desktop client (ahakeyconfig-win-java, Java 17 + JavaFX, Maven) on the Linux VM. The install builds the client with Maven (Linux JavaFX natives auto-resolved) and installs the GTK/GL libs needed to launch the JavaFX GUI on the VNC desktop. Native Windows .exe/installer packaging and Windows-only JNA runtime paths remain Windows-only and are documented as out of scope.
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.
Summary
Adds a Cloud Agent development environment so an agent can build and debug the Windows desktop client (
ahakeyconfig-win-java/— Java 17 + JavaFX, Maven) directly on the Linux Cloud Agent VM..cursor/environment.json— declares the environment;installruns.cursor/install.sh..cursor/install.sh(idempotent):maven+ the JavaFX GUI runtime libs (libgtk-3-0,libgl1,libxtst6, ...) +xvfbwhen missing (the pre-installed JDK 21 compiles the Java 17 target);mvn -f ahakeyconfig-win-java/pom.xml -B -DskipTests package;Why this works for the "Windows" client on Linux
The Windows client is plain Java/JavaFX bytecode built with Maven, so the produced jar is the same one that runs on Windows. Maven auto-resolves the Linux JavaFX natives (
javafx-*-17.0.10-linux.jar), so the GUI launches and is debuggable on the Cloud Agent's VNC desktop.Validation (performed on a Linux Cloud Agent VM)
mvn package(ahakeyconfig-win-java)ahakey-studio-1.0.0.jar+ 17 runtime jarsinstall.shfrom clean stateRun / debug:
Out of scope on a Linux VM (documented in the script)
.exe/ installer packaging (build-exe.ps1,build-installer.ps1, Inno Setup, jpackage-on-Windows) — needs a Windows runner.platform/windows/*, Win+H voice, low-level keyboard hook) — they compile here but only execute on Windows.macos-15).Generated by a Cursor Cloud Agent.