Пример #1
0
        private static async Task <int> GuessBundleVersion(
            FileInfo?config = null,
            bool step       = false,
            string?proxy    = null)
        {
            config ??= new FileInfo("config.json");
            var manifest = new Manifest(config, string.Empty, proxy);

            var(manifestFile, bundleVersion) = await manifest.GuessNewBundleVersion(step? 1 : -1);

            Console.WriteLine(ManifestConsts.VersionString(bundleVersion));
            return(manifestFile == null ? 0 : 1);
        }
Пример #2
0
 public static string VersionString(this Config c) => ManifestConsts.VersionString(c.Version);