Move octoserver.exe to bin

This commit is contained in:
Chen-I Lim 2020-11-03 16:12:39 -08:00
parent 1d843b39d9
commit fb5b7ed0d4
3 changed files with 7 additions and 5 deletions

1
.gitignore vendored
View file

@ -51,3 +51,4 @@ mac/dist
linux/bin
linux/dist
linux/temp
win/dist

View file

@ -56,7 +56,8 @@ mac-app: server webapp
win-app: server-win64 webapp
cd win; make build
cp -R bin/octoserver.exe win/dist
mkdir -p win/dist/bin
cp -R bin/octoserver.exe win/dist/bin
cp -R config.json win/dist
mkdir -p win/dist/webapp
cp -R webapp/pack win/dist/webapp/pack

View file

@ -11,10 +11,10 @@ import (
)
func runOctoTasks(ctx context.Context) *exec.Cmd {
// cmd := exec.CommandContext(ctx, "octoserver.exe", "--monitorpid", strconv.FormatInt(int64(os.Getpid()), 10))
cmd := exec.CommandContext(ctx, "octoserver.exe")
// cmd := exec.CommandContext(ctx, "cmd.exe", "/C", "start", "./octoserver.exe", "--monitorpid", strconv.FormatInt(int64(os.Getpid()), 10))
// cmd := exec.CommandContext(ctx, "cmd.exe", "/C", "start", "./octoserver.exe")
// cmd := exec.CommandContext(ctx, "bin/octoserver.exe", "--monitorpid", strconv.FormatInt(int64(os.Getpid()), 10))
cmd := exec.CommandContext(ctx, "bin/octoserver.exe")
// cmd := exec.CommandContext(ctx, "cmd.exe", "/C", "start", "./bin/octoserver.exe", "--monitorpid", strconv.FormatInt(int64(os.Getpid()), 10))
// cmd := exec.CommandContext(ctx, "cmd.exe", "/C", "start", "./bin/octoserver.exe")
// cmd.SysProcAttr = &syscall.SysProcAttr{HideWindow: true}
cmd.Stdout = os.Stdout