Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Error in packing: The attribute 'Id' with value containing spaces failed to parse. #67

Closed
whiplashoo opened this issue Nov 30, 2021 · 2 comments
Assignees
Labels
bug Something isn't working fixed bug fixed

Comments

@whiplashoo
Copy link

Version: 2.6.4

Running the msix:create command fails to complete building the msix installer with the below error:

'Shortcut Keeper' violates pattern constraint of '([A-Za-z][A-Za-z0-9]*)(\.[A-Za-z][A-Za-z0-9]*)*'.
The attribute 'Id' with value 'Shortcut Keeper' failed to parse.
msix:create full error output:
$ flutter pub run msix:create
☑ parsing cli arguments
☑ validating config values
☑ cleaning temporary files
☑ copying assets folder
☑ creating app icons folder
☑ copying app icons
☑ copying VC libraries
☑ generate appx manifest
☑ generate PRI file
[❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚] 75% 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\whipl\Desktop\Flutter Projects\shortcut_keeper\build\windows\runner\Release\shortcut_keeper.msix"
The content directory (/d) parameter is: "\\?\C:\Users\whipl\Desktop\Flutter Projects\shortcut_keeper\build\windows\runner\Release"
Enumerating files from directory "\\?\C:\Users\whipl\Desktop\Flutter Projects\shortcut_keeper\build\windows\runner\Release"
Packing 1085 file(s) in "\\?\C:\Users\whipl\Desktop\Flutter Projects\shortcut_keeper\build\windows\runner\Release" (content directory) to "\\?\C:\Users\whipl\Desktop\Flutter Projects\shortcut_keeper\build\windows\runner\Release\shortcut_keeper.msix" (output file name).
Memory limit defaulting to 16878350336 bytes.
Using "\\?\C:\Users\whipl\Desktop\Flutter Projects\shortcut_keeper\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: /*[local-name()="Package" and namespace-uri()="http://schemas.microsoft.com/appx/manifest/foundation/windows10"]/*[local-name()="Applications" and namespace-uri()="http://schemas.microsoft.com/appx/manifest/foundation/windows10"][1]/*[local-name()="Application" and namespace-uri()="http://schemas.microsoft.com/appx/manifest/foundation/windows10"][1]/@Id
'Shortcut Keeper' violates pattern constraint of '([A-Za-z][A-Za-z0-9]*)(\.[A-Za-z][A-Za-z0-9]*)*'.
The attribute 'Id' with value 'Shortcut Keeper' failed to parse.
Cleaning up output file "\\?\C:\Users\whipl\Desktop\Flutter Projects\shortcut_keeper\build\windows\runner\Release\shortcut_keeper.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.

pub finished with exit code -1

I have previously been successful in using msix to build this specific app with the exact same settings multiple times.

Pubspec.yaml:

msix_config:
  display_name: Shortcut Keeper
  publisher_display_name: Minas Giannekas
  publisher: --omitted--
  identity_name: 8913MinasGiannekas.ShortcutKeeper
  msix_version: 1.4.0.0
  capabilities: "internetClient"
  assets_directory_path: dbassets
  store: true
  icons_background_color: transparent
  logo_path: windows\runner\resources\icon-windows.png
YehudaKremer added a commit that referenced this issue Nov 30, 2021
@YehudaKremer
Copy link
Owner

@whiplashoo thank you for this bug report ❤️
i publish new version 2.6.5 with a fix

@YehudaKremer YehudaKremer self-assigned this Nov 30, 2021
@YehudaKremer YehudaKremer added bug Something isn't working fixed bug fixed labels Nov 30, 2021
@whiplashoo
Copy link
Author

That fixed it, thanks! Great work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed bug fixed
Projects
None yet
Development

No branches or pull requests

2 participants