-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Labels
Description
- Version: 20.36.2
- Target: appx
Build fails with error as below:
Error: Exit code: 1. Command failed: C:\Users\level7\AppData\Local\electron-builder\Cache\winCodeSign\winCodeSign-2.4.0\windows-10\ia32\makeappx.exe pack /o /f C:\Users\level7\Desktop\electron-softphone\electron\dist\__appx-ia32\mapping.txt /p cae0a702dee6d01422d41f5cc1a2734c26bf688087aaf5479190f7bb2aed5f60 (sha256 hash)
Microsoft (R) MakeAppx Tool
Copyright (C) 2013 Microsoft. All rights reserved.
The path (/p) parameter is: "\\?\C:\Users\level7\Desktop\electron-softphone\electron\dist\VoIPstudio-3.0.45-ia32.appx"
The mapping file (/f) parameter is: "C:\Users\level7\Desktop\electron-softphone\electron\dist\__appx-ia32\mapping.txt"
Reading mapping file "C:\Users\level7\Desktop\electron-softphone\electron\dist\__appx-ia32\mapping.txt"
Packing 128 file(s) listed in "C:\Users\level7\Desktop\electron-softphone\electron\dist\__appx-ia32\mapping.txt" (mapping file) to "\\?\C:\Users\level7\Desktop\electron-softphone\electron\dist\VoIPstudio-3.0.45-ia32.appx" (output file name).
Memory limit defaulting to 1610377216 bytes.
Using "C:\Users\level7\Desktop\electron-softphone\electron\dist\__appx-ia32\AppxManifest.xml" as the manifest for the package.
MakeAppx : error: Error info: /*[local-name()="Package" and namespace-uri()="http://schemas.microsoft.com/appx/manifest/foundation/windows10"]/*[local-name()="Identity" and namespace-uri()="http://schemas.microsoft.com/appx/manifest/foundation/windows10"][1]/@Publisher
'CN=Level 7 Systems Ltd.,O=Level 7 Systems Ltd.,POSTALCODE=N12 0DR,STREET=2 Woodberry Grove+STREET=1st Floor,L=London,ST=Greater London,C=GB' violates pattern constraint of '(CN|L|O|OU|E|C|S|STREET|T|G|I|SN|DC|SERIALNUMBER|Description|PostalCode|POBox|Phone|X21Address|dnQualifier|(OID\.(0|[1-9][0-9]*)(\.(0|[1-9][0-9]*))+))=(([^,+="<>#;])+|".*")(, ((CN|L|O|OU|E|C|S|STREET|T|G|I|SN|DC|SERIALNUMBER|Description|PostalCode|POBox|Phone|X21Address|dnQualifier|(OID\.(0|[1-9][0-9]*)(\.(0|[1-9][0-9]*))+))=(([^,+="<>#;])+|".*")))*'.
The attribute 'Publisher' with value 'CN=Level 7 Systems Ltd.,O=Level 7 Systems Ltd.,POSTALCODE=N12 0DR,STREET=2 Woodberry Grove+STREET=1st Floor,L=London,ST=Greater London,C=GB' failed to parse.
MakeAppx : error: Package creation failed.
MakeAppx : error: 0x80080204 - The specified package format is not valid: The package manifest is not valid.
package.json:
{
"name": "VoIPstudio",
"repository": "http://repo.ssl7.net/repo/voipstudio/stable/main/binary",
"homepage": "https://voipstudio.com",
"version": "3.0.45",
"description": "Softphone and IM",
"main": "main.js",
"storeBuild": false,
"productCode": "v",
"appKey": "voipstudio",
"apiUrl": {
"dev": "https://api.l7dev.co.cc/v1",
"test": "https://api.l7test.co.cc/v1",
"sandbox": "https://api-sandbox.ssl7.net/v1",
"prod": "https://l7api.com/v1"
},
"updTestServer": "udptest.ssl7.net",
"scripts": {
"start": "electron . --dev",
"prod": "electron . --dev --prodapi",
"dist": "electron-builder"
},
"author": {
"name": "VoIPstudio",
"email": "info@voipstudio.com"
},
"license": "X11",
"devDependencies": {
"electron": "3.0.10",
"electron-builder": "20.36.2",
"electron-rebuild": "^1.8.2",
"electron-debug": "1.1.0"
},
"dependencies": {
"auto-launch": "5.0.5",
"bindings": "1.3.0",
"electron-log": "2.2.7",
"electron-updater": "^4.0.0",
"is-running": "2.1.0",
"keytar": "4.3.0",
"mime-types": "2.1.15",
"minimist": "0.0.8",
"node-abi": "^2.4.5",
"uuid": "3.1.0",
"ws": "^3.3.2"
},
"build": {
"appId": "com.voipstudio.app",
"publish": {
"provider": "generic",
"url": "https://repo.ssl7.net/release/voipstudio"
},
"npmRebuild": false,
"nodeGypRebuild": false,
"files": [
"!dev-host.json",
"!*.sh",
"!lib",
"!lib/*",
"!build",
"!build/*",
"!branding",
"!branding/*"
],
"mac": {
"category": "public.app-category.productivity",
"target": [
"dmg",
"zip"
],
"icon": "resources/icon/icon.icns"
},
"linux": {
"category": "Network",
"target": [
"deb"
],
"icon": "resources/icon/linux",
"extraFiles": [
{
"from": "lib/${os}/${arch}/libstdc++.so.6",
"to": "libstdc++.so.6"
},
{
"from": "lib/${os}/${arch}/libstdc++.so.6.0.21",
"to": "libstdc++.so.6.0.21"
}
]
},
"win": {
"asarUnpack": [
"compiled/10.2.0/win32/ia32/system_idle_time.node",
"node_modules/keytar/build/Release/win32/ia32/keytar.node"
],
"target": [
"nsis",
"appx"
],
"icon": "resources/icon/icon.ico"
},
"nsis": {
"oneClick": true,
"runAfterFinish": true
},
"appx": {
"publisher": "CN=Level 7 Systems Ltd."
}
}
}
AppxManifest.xml:
<?xml version="1.0" encoding="utf-8"?>
<!--suppress XmlUnusedNamespaceDeclaration -->
<Package
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
xmlns:desktop="http://schemas.microsoft.com/appx/manifest/desktop/windows10"
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities">
<!-- use single quotes to avoid double quotes escaping in the publisher value -->
<Identity Name="VoIPstudio"
ProcessorArchitecture="x86"
Publisher='CN=Level 7 Systems Ltd.,O=Level 7 Systems Ltd.,POSTALCODE=N12 0DR,STREET=2 Woodberry Grove+STREET=1st Floor,L=London,ST=Greater London,C=GB'
Version="3.0.45.0" />
<Properties>
<DisplayName>VoIPstudio</DisplayName>
<PublisherDisplayName>VoIPstudio</PublisherDisplayName>
<Description>Softphone and IM</Description>
<Logo>assets\StoreLogo.png</Logo>
</Properties>
<Resources>
<Resource Language="en-US" />
</Resources>
<Dependencies>
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.14316.0" MaxVersionTested="10.0.14316.0" />
</Dependencies>
<Capabilities>
<rescap:Capability Name="runFullTrust"/>
</Capabilities>
<Applications>
<Application Id="VoIPstudio" Executable="app\VoIPstudio.exe" EntryPoint="Windows.FullTrustApplication">
<uap:VisualElements
BackgroundColor="#464646"
DisplayName="VoIPstudio"
Square150x150Logo="assets\Square150x150Logo.png"
Square44x44Logo="assets\Square44x44Logo.png"
Description="Softphone and IM">
<uap:DefaultTile Wide310x150Logo="assets\Wide310x150Logo.png" />
</uap:VisualElements>
</Application>
</Applications>
</Package>
Manually editing and changing line:
Publisher='CN=Level 7 Systems Ltd.,O=Level 7 Systems Ltd.,POSTALCODE=N12 0DR,STREET=2 Woodberry Grove+STREET=1st Floor,L=London,ST=Greater London,C=GB'
to:
Publisher='CN=Level 7 Systems Ltd.'
and running:
C:\Users\level7\AppData\Local\electron-builder\Cache\winCodeSign\winCodeSign-2.4.0\windows-10\ia32\makeappx.exe pack /o /f C:\Users\level7\Desktop\electron-softphone\electron\dist\__appx-ia32\mapping.txt /p cae0a702dee6d01422d41f5cc1a2734c26bf688087aaf5479190f7bb2aed5f60
fixes the issue, but not sure how to make this work withing electron-builder packaging flow.
Any suggestions greatly appreciated.
Regards,
Chris
Nantris, vgribdev, greenimpala and jameshfisher