Exemple #1
0
        public static PackageManifest CreatePackageManifest(string platformVersion, string PlatformAssetUrl)
        {
            var manifest = new PackageManifest()
            {
                PlatformVersion  = platformVersion,
                PlatformAssetUrl = PlatformAssetUrl,
                Modules          = new List <ModuleItem>(),
                ModuleSources    = new List <string>()
            };

            manifest.ModuleSources.Add(_defaultModuleManifest);
            return(manifest);
        }
Exemple #2
0
 public static void ToFile(PackageManifest manifest, string path = "./vc-package.json")
 {
     SerializationTasks.JsonSerializeToFile(manifest, path);
 }
Exemple #3
0
 public static PackageManifest AddModule(PackageManifest manifest, ModuleItem module)
 {
     manifest.Modules.Add(module);
     return(manifest);
 }
Exemple #4
0
 public static PackageManifest UpdatePlatform(PackageManifest manifest, string newVersion)
 {
     manifest.PlatformVersion = newVersion;
     return(manifest);
 }