From 53a3d7145291182bc3df2524cdbe01323e8da35b Mon Sep 17 00:00:00 2001 From: Jonatan Nilsson Date: Tue, 26 Jun 2018 19:54:51 +0000 Subject: [PATCH] add chrome auto opener --- openbrowser.bat | 9 +++++++++ update_run.bat | 1 + 2 files changed, 10 insertions(+) create mode 100644 openbrowser.bat diff --git a/openbrowser.bat b/openbrowser.bat new file mode 100644 index 0000000..4a80b16 --- /dev/null +++ b/openbrowser.bat @@ -0,0 +1,9 @@ +:start + +timeout 3 + +curl localhost:3000 + +IF %errorlevel% NEQ 0 GOTO :start + +"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --start-fullscreen http://localhost:3000/client.html \ No newline at end of file diff --git a/update_run.bat b/update_run.bat index 9c26e00..e788cda 100644 --- a/update_run.bat +++ b/update_run.bat @@ -1,4 +1,5 @@ git pull +START openbrowser.bat CALL npm install CALL npm run build CALL npm run start:win