From 219a557ee5b6b56490cd0aee30d06573e796cc24 Mon Sep 17 00:00:00 2001 From: Nikhil Saraf <1028334+nikhilsaraf@users.noreply.github.com> Date: Sun, 14 Feb 2021 15:50:26 +0530 Subject: [PATCH] re-add kelp-start.bat file windows cannot run the CLI compiled file by double clicking which is why we need the bat file. We don't currently compile it as a GUI file because whenever that invokes the bash system command it opens a command prompt which is too often. --- gui/windows-bat-file/kelp-start.bat | 1 + scripts/build.sh | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 gui/windows-bat-file/kelp-start.bat diff --git a/gui/windows-bat-file/kelp-start.bat b/gui/windows-bat-file/kelp-start.bat new file mode 100644 index 000000000..ac79fe379 --- /dev/null +++ b/gui/windows-bat-file/kelp-start.bat @@ -0,0 +1 @@ +Kelp.exe server diff --git a/scripts/build.sh b/scripts/build.sh index 9053b1a8e..b044619e9 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -425,6 +425,10 @@ do env GOOS=$GOOS GOARCH=$GOARCH GOARM=$GOARM go build -ldflags "$DYNAMIC_LDFLAGS" -o $ARCHIVE_DIR_SOURCE_UI/$GOOS-$GOARCH/kelp.exe check_build_result $? echo "successful" + + echo -n "copying over kelp-start.bat file to the windows build ..." + cp $KELP/gui/windows-bat-file/kelp-start.bat $ARCHIVE_DIR_SOURCE_UI/$GOOS-$GOARCH/ + echo "done" # set paths needed for unzipping the vendor and ccxt files VENDOR_FILENAME=""