YehudaKremer / msix

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

[BUG] Manifest bug after upgrading from 3.9.2 #198

Closed mattsrobot closed 11 months ago

mattsrobot commented 1 year ago

Since upgrading from 3.9.2 using flutter 3.7, I get the following error:

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.

I'm publishing to the Microsoft App Store.

Downgrading to 3.9.2 fixes the problem, please let me know if you need any additional info.

Thankyou.

YehudaKremer commented 1 year ago

Hello @mattsrobot

When you getting this error? what command you execute ?

Can you please put here your pubspec.yaml content, Also please post here the full error log (make sure it's not contains sensitive details)

mattsrobot commented 1 year ago

pubspec:

msix_config:
    display_name: zenshop
    publisher_display_name: zenshop
    publisher: CN=E16FC140-5DC5-43F6-A81A-21AC7DF8DB02
    identity_name: 123123zenshop.zenshop
    msix_version: 1.0.3.0
    capabilities: internetClient
    logo_path: C:\Users\MatthewWilkinson\Documents\Github\zenshop-flutter\assets\icon\Icon-1024.png
    trim_logo: true
    os_min_version: 11.0.0.0
    output_name: zenshop
    store: true

I don't have the error log but I'll try reproduce it later.

Akrapoler commented 1 year ago

same here any update?

WiRight commented 1 year ago

same here

yuanhoujun commented 1 year ago

Cleaning up output file "\?\D:\Workspace\chinese_chess_assistant\build\windows\runner\Release\chinese_chess_assistant.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.

yuanhoujun commented 1 year ago

Same issue.

YehudaKremer commented 1 year ago

Sorry I don't have enough information to reproduce this error, Is there a public project with this problem that I can look at?

YehudaKremer commented 1 year ago

Hello @mattsrobot

In your configuration, update the os_min_version: 11.0.0.0 to one of the versions that appear here: https://developer.microsoft.com/en-us/windows/downloads/sdk-archive/ image

mattsrobot commented 1 year ago

@YehudaKremer is it possible to support Windows 10 if I do this? I'm hoping to continue supporting Windows 10 for a while longer.

YehudaKremer commented 1 year ago

Of course, just omit the line os_min_version: 11.0.0.0. Msix have support by default win10 and win11, so you don't need to use the `os_min_version configuration.

mattsrobot commented 11 months ago

I have successfully released apps with these changes, thank-you so much