Quantcast
Channel: Questions in topic: "build"
Viewing all articles
Browse latest Browse all 4084

Get notification after shell script runs in build pipe

$
0
0
Hey Everybody! So I'm having an issue with a build script that I've written. The script is fairly simple. It builds a linux version of my game and then calls an external script to pack it up and deploy it out into my dedicated server solution. Everything is great! However I don't seem to get any notification back from Unity when the shell process has exited. I can confirm the shell process is successfully exiting (I can see it come into existence do it's work and then leave) but I don't ever seem to get the notification that the process has ended. This is on MacOS. has anyone else gotten something like this working. [MenuItem("Build/Build Server")] public static void BuildLinuxServer () { BuildPlayerOptions playerOptions = GetBuildOptions(); playerOptions.target = BuildTarget.StandaloneLinux64; playerOptions.options = BuildOptions.EnableHeadlessMode; playerOptions.locationPathName = "Build/Linux/GAME"; BuildGame(playerOptions); Process uploadProcess = new Process(); uploadProcess.StartInfo.FileName = "Build/Linux/DeployCloud.sh"; // uploadProcess.StartInfo.FileName = "/bin/bash"; // Debug.Log(Application.dataPath + "/Builds/Linux/DeployCloud.sh"); // uploadProcess.StartInfo.Arguments = Application.dataPath + "/Builds/Linux/DeployCloud.sh"; // uploadProcess.StartInfo.UseShellExecute = false; uploadProcess.StartInfo.Arguments = " && exit"; uploadProcess.EnableRaisingEvents = true; if (!uploadProcess.Start()) UnityEngine.Debug.LogError(uploadProcess.StandardError.ReadToEnd()); else uploadProcess.Exited += (sender, args) => Debug.Log("Server Code Uploaded"); }

Viewing all articles
Browse latest Browse all 4084

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>