Ejemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public ScriptBuild MakeScriptBuild()
        {
            ScriptBuild Build = new ScriptBuild();

            Build.InstallDevice   = GetVariableValue("INSTALL_DEVICE_NAME");
            Build.InstallLocation = GetVariableValue("INSTALL_LOCATION");
            Build.Directory       = GetVariableValue("BUILD_DIR");
            return(Build);
        }
Ejemplo n.º 2
0
    public override bool Install(ScriptBuild Build)
    {
        string SourceBinariesDirectory = Path.Combine(Build.Directory, "Binaries");
        string TargetBinariesDirectory = Path.Combine(Build.InstallLocation, "Binaries");

        if (!ScriptUtils.CreateJunction(SourceBinariesDirectory, TargetBinariesDirectory))
        {
            return(false);
        }

        return(true);
    }
Ejemplo n.º 3
0
    public override bool Launch(ScriptBuild Build)
    {
        string BinariesDirectory = Path.Combine(Build.InstallLocation, "Binaries");
        string ExePath           = Path.Combine(BinariesDirectory, @"UE4Editor.exe");

        string CommandLine = "";

        if (RunInGameMode)
        {
            CommandLine += "-game";
        }

        return(ScriptUtils.Run(ExePath, BinariesDirectory, CommandLine));
    }
Ejemplo n.º 4
0
        /// <summary>
        /// </summary>
        public bool Install(string LocalFolder, ref string ResultMessage, ScriptBuildProgressDelegate Callback)
        {
            if (ScriptInstance != null)
            {
                CopyArgumentsToScript();

                ScriptBuild Build = MakeScriptBuild();
                Build.ProgressCallback = Callback;

                if (!ScriptInstance.Install(Build))
                {
                    if (Build.ErrorMessage == "")
                    {
                        ResultMessage = "Script failed to install, check console output window for details.";
                    }
                    else
                    {
                        ResultMessage = Build.ErrorMessage;
                    }
                    return(false);
                }

                return(true);
            }
            else
            {
                if (InstallSteps.Count == 0)
                {
                    return(true);
                }

                foreach (BuildInstallStep Step in InstallSteps)
                {
                    if (!InstallStep(LocalFolder, ref ResultMessage, Step))
                    {
                        return(false);
                    }
                }
            }

            return(true);
        }
Ejemplo n.º 5
0
    public override bool Launch(ScriptBuild Build)
    {
        string ExePath = Path.Combine(Build.Directory, ExeName);

        return(ScriptUtils.RunAndWait(ExePath, Build.Directory, "") == 0);
    }
Ejemplo n.º 6
0
 public override bool Install(ScriptBuild Build)
 {
     return(true);
 }