Skip to content

Conversation

@liammcalpineduckietown
Copy link
Contributor

@liammcalpineduckietown liammcalpineduckietown commented Nov 26, 2025

This pull request introduces support for managing and running the Duckiematrix application in "WebGL" mode, alongside improvements to version handling and command-line argument parsing. The changes ensure that commands can target both standard and WebGL builds, streamline version management per operating system family, and add browser-based launching capabilities.

WebGL Mode Support

  • Added --webgl argument to install, info, and run commands, allowing users to install, query, and run the WebGL version of Duckiematrix. The code now determines the operating system family dynamically and passes it to relevant utility functions. [1] [2] [3]
  • Utility functions such as get_latest_version, get_all_installed_releases, and get_most_recent_version_installed now accept an os_family parameter, enabling version management per OS family (including "webgl").

Browser Launching Functionality

  • Added --browser, --host, and --port arguments to the run command. When --browser is specified, the app launches a local HTTP server and opens the Duckiematrix WebGL build in the user's browser, passing relevant parameters via the URL. [1] [2]

Version and Release Handling Improvements

  • Version strings are now consistently suffixed with the OS family (e.g., v1.2.3-webgl), and all logging and release checks use this format. This prevents confusion between releases for different platforms. [1] [2] [3] [4] [5] [6] [7]

Command-Line Argument Parsing Consistency

  • Changed default values for several arguments (--update, --force, --version) to ensure consistent behavior and easier handling of flags.

File Handling and Metadata Improvements

  • Fixed metadata file lookup to use a capitalized app name, improving cross-platform compatibility.

Let me know if you'd like more details about any specific change!

@liammcalpineduckietown liammcalpineduckietown changed the title feat: add WebGL support and enhance version handling in commands DTSW-7392-Create-WebGL-version Nov 26, 2025
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.

2 participants