From 05ca6b130d1ad2add1db6ef20788aba1e3dca785 Mon Sep 17 00:00:00 2001 From: Yanjun Shi Date: Wed, 22 Sep 2021 09:10:51 +0800 Subject: [PATCH] Fix computer launch for windows (#635) * Fix computer launch for windows * Update create temporary directory * Remove some code --- app/cmd/computer_launch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/cmd/computer_launch.go b/app/cmd/computer_launch.go index 3da5fe0c..44c17f75 100644 --- a/app/cmd/computer_launch.go +++ b/app/cmd/computer_launch.go @@ -213,7 +213,7 @@ jcli agent launch agent-name --type jnlp`, } var f *os.File - if f, err = ioutil.TempFile("/tmp", "agent.jar"); err == nil { + if f, err = ioutil.TempFile("", "agent.jar"); err == nil { computerLaunchOption.Output = f.Name() agentURL := fmt.Sprintf("%s/jnlpJars/agent.jar", computerLaunchOption.ComputerClient.URL) logger.Debug("start to download agent.jar", zap.String("url", agentURL))