pwa-builder / PWABuilder

The simplest way to create progressive web apps across platforms and devices. Start here. This repo is home to several projects in the PWABuilder family of tools.
https://docs.pwabuilder.com
Other
2.66k stars 279 forks source link

Error generating windows package #2093

Closed ElektroLabeu closed 2 years ago

ElektroLabeu commented 2 years ago

I received the following error when generating a package for https://forum.elektrolab.eu

Error: Error generating Windows package Error: Failed. Status code 500, Error: Internal Server Error, Details: Microsoft.PWABuilder.Windows.Chromium.Models.ProcessException: The makeappx.exe process exited with exit code 1.

Process: C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\makeappx.exe

Process args: pack /o /d "D:\Temp\pwabuilder\classic-package-20a6d278-2a3a-478b-bcd7-2756230e955b\appx-unzipped" /p "D:\Temp\pwabuilder\classic-package-20a6d278-2a3a-478b-bcd7-2756230e955b\c9e8323d-7aac-4d4e-a759-40115f5b69f3.appx"

Standard output: Microsoft (R) MakeAppx Tool

Copyright (C) 2013 Microsoft. All rights reserved.

The path (/p) parameter is: "\?\D:\Temp\pwabuilder\classic-package-20a6d278-2a3a-478b-bcd7-2756230e955b\c9e8323d-7aac-4d4e-a759-40115f5b69f3.appx"

The content directory (/d) parameter is: "\?\D:\Temp\pwabuilder\classic-package-20a6d278-2a3a-478b-bcd7-2756230e955b\appx-unzipped"

Enumerating files from directory "\?\D:\Temp\pwabuilder\classic-package-20a6d278-2a3a-478b-bcd7-2756230e955b\appx-unzipped"

Packing 85 file(s) in "\?\D:\Temp\pwabuilder\classic-package-20a6d278-2a3a-478b-bcd7-2756230e955b\appx-unzipped" (content directory) to "\?\D:\Temp\pwabuilder\classic-package-20a6d278-2a3a-478b-bcd7-2756230e955b\c9e8323d-7aac-4d4e-a759-40115f5b69f3.appx" (output file name).

Memory limit defaulting to 4294414336 bytes.

Using "\?\D:\Temp\pwabuilder\classic-package-20a6d278-2a3a-478b-bcd7-2756230e955b\appx-unzipped\AppxManifest.xml" as the manifest for the package.

MakeAppx : error: Error info: error C00CE16A: App manifest validation error: The app manifest must be valid as per schema: Line 27, Column 151, Reason: Union doesn't support this value.

The attribute 'ShortName' with value ' ElektroLab.eu ' failed to parse.

MakeAppx : error: Package creation failed.

MakeAppx : error: 0x80080204 - The specified package format is not valid: The package manifest is not valid.

Standard error: at Microsoft.PW

ghost commented 2 years ago

Hello ElektroLabeu, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will investigate the issue and help solve it ASAP. Other community members may also look into the issue and provide feedback 🙌

JudahGabriel commented 2 years ago

The issue is, as the error states,

MakeAppx : error: Error info: error C00CE16A: App manifest validation error: The app manifest must be valid as per schema: Line 27, Column 151, Reason: Union doesn't support this value. The attribute 'ShortName' with value ' ElektroLab.eu ' failed to parse.

Looking at your manifest, I see that your name, short_name, and description end in a space:

  "name": " ElektroLab.eu Forum ",
  "short_name": " ElektroLab.eu ",
  "description": " ElektroLab.eu Forum ",

Please remove those trailing spaces, then you'll be able to create a package.