diff --git a/Viewer/Makefile b/Viewer/Makefile index 390af287..5fc056e4 100644 --- a/Viewer/Makefile +++ b/Viewer/Makefile @@ -191,9 +191,9 @@ NPX := npx --yes # Warn user... -_ := $(if $(FIRST_RUN),\ - $(info Missing ./node_modules/: Running make on a clean repository \ - may take some time... )) +_ := $(if $(FIRST_RUN), $(info \ + Missing ./node_modules/: Running make on a clean repository may take \ + some time... )) # less... diff --git a/Viewer/doc/MAKE b/Viewer/doc/MAKE index 082cf52e..e1f792b2 100644 --- a/Viewer/doc/MAKE +++ b/Viewer/doc/MAKE @@ -26,14 +26,24 @@ Variables to control the build: APP_NAME - Application name APP_BIN - App binary name (ignored for MacOS) - ARCH - target achitecture (ia32, x86, x64, ...) TARGET_OS - target OS (win32, linux, darwin) + ARCH - target achitecture (ia32, x86, x64, ...) ELECTRON_DOWNOAD_URL - URL to download electron binary ELECTRON_DIST - electron distribution file name pattern BUILD_MODE - can be "repack" or "in-place" (default) + +Variables to help with troubleshooting: + IMAGEGRID_DEBUG - force show devtools on startup + NOTE: devtools will should start automaticalky + if loading takes too long or if it was + started on last run, + IMAGEGRID_FORCE_SHOW + - force show viewer GUI on startup + + NOTE: when setting variables avoid using spaces and other characters make can get fussy about... NOTE: to do a repack build call: @@ -69,6 +79,14 @@ Examples: # build for darwin... (EXPERIMENTAL) $ TARGET_OS=darwin make clean dist + # run with Devtools started... + $ IMAGEGRID_DEBUG=1 make run + + # force show the main window... + $ IMAGEGRID_FORCE_SHOW=1 make run + + + Help and info: help: Print make target help and exit @@ -113,5 +131,9 @@ Deb package: CLI package: +Patches: + patched-requirejs: Patch requirejs (see: NOTES) + unpatched-requirejs: Unpatch requirejs + --- This file was generated by: make doc/MAKE