[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.
This commit is contained in:
Matthew Roush
2026-09-03 16:26:29 -04:00
committed by GitHub
parent 9b2efc4552
commit a65f8be3c2
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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