From 2320b29f6f3749bc631e75db6058c8648e0ecb42 Mon Sep 17 00:00:00 2001 From: argemiront Date: Sun, 12 Apr 2020 21:05:07 -0700 Subject: [PATCH] add an option to build on windows Signed-off-by: argemiront --- scripts/build.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/build.sh b/scripts/build.sh index eb588c46..dc55ce30 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -14,7 +14,16 @@ tsc -p ./ cd web-app npm run build cd .. + +# For Windows build: switch the next 2 lines +if [[ "$OSTYPE" == "msys" ]]; then +echo "linux subsystem on windows selected" +cp -R ./web-app/build/ ./ +else +echo "Unix system selected" cp -R ./web-app/build/ ./build/ +fi + node scripts/fixFontPaths.js echo "Build complete!" \ No newline at end of file