@@ -274,7 +274,7 @@ await this.UpdateManifestsInteractively(initialManifests) :
274274
275275 string manifestDirectoryPath = SaveManifestDirToLocalPath ( updatedManifests , this . OutputDir ) ;
276276
277- if ( ValidateManifest ( manifestDirectoryPath ) )
277+ if ( ValidateManifest ( manifestDirectoryPath , this . Format ) )
278278 {
279279 if ( this . SubmitToGitHub )
280280 {
@@ -617,6 +617,7 @@ private static Manifests ConvertSingletonToMultifileManifest(WingetCreateCore.Mo
617617 cfg . CreateMap < WingetCreateCore . Models . Singleton . Files , WingetCreateCore . Models . Installer . Files > ( ) ;
618618 cfg . CreateMap < WingetCreateCore . Models . Singleton . InstallationMetadata , WingetCreateCore . Models . Installer . InstallationMetadata > ( ) ;
619619 cfg . CreateMap < WingetCreateCore . Models . Singleton . Icon , WingetCreateCore . Models . DefaultLocale . Icon > ( ) ;
620+ cfg . CreateMap < WingetCreateCore . Models . Singleton . Authentication , WingetCreateCore . Models . Installer . Authentication > ( ) ;
620621 } ) ;
621622 var mapper = config . CreateMapper ( ) ;
622623
@@ -686,7 +687,7 @@ private static bool VerifyUpdatedInstallerHash(Manifests oldManifest, InstallerM
686687 return newHashes . Except ( oldHashes ) . Any ( ) ;
687688 }
688689
689- private static void DisplayManifestsAsMenuSelection ( Manifests manifests )
690+ private static void DisplayManifestsAsMenuSelection ( Manifests manifests , ManifestFormat format )
690691 {
691692 Console . Clear ( ) ;
692693 string versionFileName = Manifests . GetFileName ( manifests . VersionManifest , Extension ) ;
@@ -708,7 +709,7 @@ private static void DisplayManifestsAsMenuSelection(Manifests manifests)
708709 }
709710
710711 selectionList . Add ( Resources . Done_MenuItem ) ;
711- ValidateManifestsInTempDir ( manifests ) ;
712+ ValidateManifestsInTempDir ( manifests , format ) ;
712713 var selectedItem = Prompt . Select ( Resources . SelectManifestToEdit_Message , selectionList ) ;
713714
714715 if ( selectedItem == versionManifestMenuItem )
@@ -955,13 +956,13 @@ private async Task<Manifests> UpdateManifestsInteractively(Manifests manifests)
955956
956957 this . AddVersionSpecificMetadata ( manifests ) ;
957958 DisplayManifestPreview ( manifests ) ;
958- ValidateManifestsInTempDir ( manifests ) ;
959+ ValidateManifestsInTempDir ( manifests , this . Format ) ;
959960 }
960961 while ( Prompt . Confirm ( Resources . DiscardUpdateAndStartOver_Message ) ) ;
961962
962963 if ( Prompt . Confirm ( Resources . EditManifests_Message ) )
963964 {
964- DisplayManifestsAsMenuSelection ( manifests ) ;
965+ DisplayManifestsAsMenuSelection ( manifests , this . Format ) ;
965966 }
966967
967968 if ( ! this . SubmitToGitHub )
0 commit comments