mirror of
https://github.com/raysan5/raylib.git
synced 2026-09-04 05:10:20 +00:00
[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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user