mirror of
https://github.com/raysan5/raylib.git
synced 2026-01-27 09:19:18 -05:00
REXM: Allow building web examples locally on Windows platform
This commit is contained in:
@ -656,9 +656,12 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
// Recompile example (on raylib side)
|
// Recompile example (on raylib side)
|
||||||
// WARNING: EMSDK_PATH must be set to proper location when calling from GitHub Actions
|
// WARNING: EMSDK_PATH must be set to proper location when calling from GitHub Actions
|
||||||
system(TextFormat("make -C %s -f Makefile.Web %s/%s PLATFORM=PLATFORM_WEB -B", exBasePath, exRecategory, exRename));
|
#if defined(_WIN32)
|
||||||
//system(TextFormat("%s/build_example_web.bat %s/%s", exBasePath, exRecategory, exRename));
|
putenv("PATH=%PATH%;C:\\raylib\\w64devkit\\bin");
|
||||||
|
system(TextFormat("mingw32-make -C %s -f Makefile.Web %s/%s PLATFORM=PLATFORM_WEB -B", exBasePath, exRecategory, exRename));
|
||||||
|
#else
|
||||||
|
system(TextFormat("make -C %s -f Makefile.Web %s/%s PLATFORM=PLATFORM_WEB -B", exBasePath, exRecategory, exRename));
|
||||||
|
#endif
|
||||||
// Update generated .html metadata
|
// Update generated .html metadata
|
||||||
char exHtmlPath[512] = { 0 };
|
char exHtmlPath[512] = { 0 };
|
||||||
strcpy(exHtmlPath, TextFormat("%s/%s/%s.html", exBasePath, exCategory, exName)); // WARNING: Cache path for saving
|
strcpy(exHtmlPath, TextFormat("%s/%s/%s.html", exBasePath, exCategory, exName)); // WARNING: Cache path for saving
|
||||||
|
|||||||
Reference in New Issue
Block a user