public BuildMeta GetBuildInfo(String sourcePath, String outputPath, String zeroEditorOutputSuffix, int zeroEngineTimeoutSeconds)
        {
            BuildMeta meta = new BuildMeta();

            meta.SetupEditor();

            string exePath = Path.Combine(outputPath, zeroEditorOutputSuffix, "ZeroEditor.exe");

            meta.GetBuildInfoFromExe(exePath, sourcePath, zeroEngineTimeoutSeconds);
            return(meta);
        }
Exemple #2
0
        static String QueryMajorId(String exePath, String sourcePath, int maxTimeout)
        {
            // The launcher will always end up using the patched version if it is installed on
            // the computer. To get around this, force it to use the local version by writing
            // out a dummy version id file with a very large version id.
            String exeDirectory = Path.GetDirectoryName(exePath);
            String outFileName  = Path.Combine(exeDirectory, "ZeroLauncherVersionId.txt");

            File.WriteAllText(outFileName, "9000000");

            BuildMeta meta = new BuildMeta();

            meta.SetupLauncher();
            meta.GetBuildInfoFromExe(exePath, sourcePath, maxTimeout);

            // Delete the dummy file we created
            File.Delete(outFileName);

            return(meta.GetProperty("LauncherMajorVersion"));
        }