windows-installer icon indicating copy to clipboard operation
windows-installer copied to clipboard

Error parsing EntityName from nuspec file

Open Thomas101 opened this issue 8 years ago • 6 comments

Hey,

I'm getting the following error when trying to build an installer...

[START] Electron Winstaller
  electron-windows-installer:main Using Mono: 'mono' +0ms
  electron-windows-installer:main Using Wine: 'wine' +3ms
  electron-windows-installer:main Created NuSpec file:
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
  <metadata>
    <id>wmail</id>
    <title>wmail</title>
    <version>1.2.4</version>
    <authors>Thomas Beverley</authors>
    <owners>Thomas Beverley</owners>
    <iconUrl>https://raw.githubusercontent.com/atom/electron/master/atom/browser/resources/win/atom.ico</iconUrl>
    <requireLicenseAcceptance>false</requireLicenseAcceptance>
    <description>The missing desktop client for Gmail &amp; Google Inbox</description>
    <copyright>Copyright © 2016 Thomas Beverley</copyright>
  </metadata>
  <files>
    <file src="locales/**" target="lib/net45/locales" />
    <file src="resources/**" target="lib/net45/resources" />
    <file src="*.bin" target="lib/net45" />
    <file src="*.dll" target="lib/net45" />
    <file src="*.pak" target="lib/net45" />
    <file src="Update.exe" target="lib/net45/squirrel.exe" />
    <file src="icudtl.dat" target="lib/net45/icudtl.dat" />
    <file src="LICENSE" target="lib/net45/LICENSE" />
    <file src="wmail.exe" target="lib/net45/wmail.exe" />
  </files>
</package>
 +7s
[Error: Failed with exit code: 1
Output:
Attempting to build package from 'wmail.nuspec'.
An error occurred while parsing EntityName. Line 1, position 39.
]

Has anyone else seen this? I'm using el-capitan with mono 4.2.3

Thomas101 avatar May 07 '16 09:05 Thomas101

I am getting the same error. Did you find a solution/fix?

Bratkartoffl avatar Jun 16 '16 07:06 Bratkartoffl

Unfortunately not :-(. When I was looking into it someone did suggest that using osx to create windows installers was a bit fraught. I never got around to setting up a windows dev machine with all the bells and whistles to test this though!

Thomas101 avatar Jun 16 '16 07:06 Thomas101

Try to use electron-builder instead of windows-installer directly.

develar avatar Jun 16 '16 07:06 develar

Thanks for the suggestions @develar will give that a go myself!

Thomas101 avatar Jun 16 '16 07:06 Thomas101

Don't use & in the name. This issue will be fixed in electron-builder — https://github.com/electron-userland/electron-builder/issues/517

develar avatar Jun 16 '16 18:06 develar

It's working for me now. Had an "&" in my package.json "description". Removed it and everything works fine now.

Bratkartoffl avatar Jun 16 '16 20:06 Bratkartoffl