From 39bc3041b572f8a41f6d7da5d0ab6445d84ee0ca Mon Sep 17 00:00:00 2001 From: Paul Falstad Date: Sat, 19 Oct 2024 22:35:02 -0700 Subject: [PATCH] add gradle build info --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 69629f1a..d5a01aa7 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,18 @@ Once you have successfully connected your local VS Code to the remote workspace, > > Theoretically, it would be possible to use the browser-based VS Code interface. However, both Gitpod and Codespaces map forwarded ports to different domain names instead of different ports, which confuses the GWT code loader. It is possible to fix this by live-patching the `serverUrl` variable in `circuitjs1.nocache.js` using a custom HTTP server, but it also requires setting the port visibility to "Public" to avoid CORS errors due to redirects. Using a local installation of VS Code is much simpler. +### Gradle + +To build the application using gradle, do the following: + +```bash +# 1. Run Gradle build with verbose output: +gradle compileGwt --console verbose --info +# 2. Create the web-site directory from the build files: +gradle makeSite --console verbose --info +``` + +Now, just open `site/circuitjs.html` with your browser and enjoy! ## Deployment of the web application