From a65f8be3c2866ad7c386f71695109d8c490e4055 Mon Sep 17 00:00:00 2001 From: Matthew Roush Date: Thu, 3 Sep 2026 16:26:29 -0400 Subject: [PATCH] [rexm] Fix `Makefile` and change port number. (#6123) * [rexm] Fix `Makefile`. The `make` program that comes with `w64devkit` uses a UNIX-style shell, so we can't use `del` (we could set `SHELL` to `cmd`, but this is easier, and the expectation is that `w64devkit` is being used anyway.) * [rexm] Use less common port number. When using a port that's already in use, the server fails to start. Using a different (hopefully less common) port should help mitigate this. --- tools/rexm/Makefile | 2 +- tools/rexm/rexm.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/rexm/Makefile b/tools/rexm/Makefile index 455818b0f..7de2f8dce 100644 --- a/tools/rexm/Makefile +++ b/tools/rexm/Makefile @@ -345,7 +345,7 @@ $(PROJECT_NAME): $(OBJS) clean: ifeq ($(PLATFORM),PLATFORM_DESKTOP) ifeq ($(PLATFORM_OS),WINDOWS) - del *.o *.exe /s + rm *.o *.exe endif ifeq ($(PLATFORM_OS),LINUX) find . -type f -executable -delete diff --git a/tools/rexm/rexm.c b/tools/rexm/rexm.c index 47d2d591e..d5fd9bef0 100644 --- a/tools/rexm/rexm.c +++ b/tools/rexm/rexm.c @@ -1622,8 +1622,8 @@ int main(int argc, char *argv[]) // WARNING: Example download is asynchronous so reading fails on next step // when looking for a file that could not have been downloaded yet ChangeDirectory(TextFormat("%s", exBasePath)); - if (i == 0) system("start python -m http.server 8080"); // Init localhost just once - system(TextFormat("start explorer \"http:\\localhost:8080/%s/%s.html", exCategory, exName)); + if (i == 0) system("start python -m http.server 38080"); // Init localhost just once + system(TextFormat("start explorer \"http:\\localhost:38080/%s/%s.html", exCategory, exName)); } // NOTE: Example .log is automatically downloaded into system Downloads directory on browser-example exectution