YehudaKremer / msix

Create Msix installer for flutter windows-build files.
https://pub.dev/packages/msix
MIT License
280 stars 70 forks source link

0x80080204 - The specified package format is not valid: The package manifest is not valid. #45

Closed anandsubbu007 closed 3 years ago

anandsubbu007 commented 3 years ago
PS C:\Users\anand\Desktop\GitHub> flutter pub run msix:create
☑ parsing cli arguments
☑ validating config values
☑ cleaning temporary files
☑ creating app icons folder
☑ copying app icons
☑ copying VC libraries
☑ generate appx manifest
☑ generate PRI file
[❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚] 72% packing..
Microsoft (R) MakeAppx Tool
Copyright (C) 2013 Microsoft.  All rights reserved.

Option /v specified, switching to verbose output.
Option /o specified, existing files will be overwritten.
Using default hash method: SHA256.
The path (/p) parameter is: "\\?\C:\Users\anand\Desktop\GitHub\build\windows\runner\Release\billing_app.msix"
The content directory (/d) parameter is: "\\?\C:\Users\anand\Desktop\GitHub\build\windows\runner\Release"
Enumerating files from directory "\\?\C:\Users\anand\Desktop\GitHub\build\windows\runner\Release"
Packing 59 file(s) in "\\?\C:\Users\anand\Desktop\GitHub\build\windows\runner\Release" (content directory) to "\\?\C:\Users\anand\Desktop\GitHub\build\windows\runner\Release\billing_app.msix" (output file name).
Memory limit defaulting to 4241799168 bytes.
Using "\\?\C:\Users\anand\Desktop\GitHub\build\windows\runner\Release\AppxManifest.xml" as the manifest for the package. 
MakeAppx : error: Failure at appxFactory->CreateManifestReader(manifestStream, &manifestReader) - 0x80080204 - The specified package format is not 
valid: The package manifest is not valid.
MakeAppx : error: Error info: Unspecified error
Cleaning up output file "\\?\C:\Users\anand\Desktop\GitHub\build\windows\runner\Release\billing_app.msix".
MakeAppx : error: Failure at (CreatePackage( overwrite, hashAlgorithm, fileList, outputPath, manifestStream.Get(), forceCompressionNone, performanceOptions, encryptPackage, encryptionOptions, cgmPath, mainPackagePathForResourceExemption, makepriExeFullPath)) - 0x80080204 - The specified package format is not valid: The package manifest is not valid.
MakeAppx : error: Package creation failed.
MakeAppx : error: 0x80080204 - The specified package format is not valid: The package manifest is not valid.
fahadck50 commented 3 years ago

same issue,

it worked until last update

damywise commented 3 years ago

Having the exact same issue here

YehudaKremer commented 3 years ago

hey can you please show me the the pubspec.yaml content?

rehanazher commented 3 years ago

Facing same issue . Anyone able to resolve this till date.

--update ---

Most probably this issue is due to our own msix_config I used the default config i..e dont supply msix_config in pubsec.yml it worked fine.

erickximenes commented 3 years ago

Having the exact same issue here

neo041530 commented 3 years ago

go to Windows PowerShell enter the Get-PfxCertificate FilePath[0] : .pfx path FilePath[1] : Click on the enter enter .pfx password remember subject and copy to your msix_config: publisher If the sorting is wrong, the encapsulation will fail My problem solved

110177 110176

YehudaKremer commented 3 years ago

Hello

I published new version with some fixes and changes, please check if you problem is still happening and comment here to reopen this issue

Thanks