question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failing to build my app (W10), is there any specific requirement I am missing?

See original GitHub issue

Is there any specific structure for the packaged app that is necessary to work? I have

/app-win32-x64/locales/*
/app-win32-x64/resources/
/app-win32-x64/resources/app.asar
/app-win32-x64/resources/electron.asar
/app-win32-x64/resources/node_modules/*
/app-win32-x64/app.exe
/app-win32-x64/*

And my package.json, from which I execute npm run make

{
  "name": "app",
  "license": "GPL",
  "productName": "app",
  "version": "1.0.0",
  "author": "...",
  "description": "...",
  "devDependencies": {
    "asar": "^0.12.3",
    "electron-installer-windows": "^0.2.0",
    "electron-packager": "^8.3.0",
    "electron-prebuilt": "^1.4.8",
    "gulp": "^3.9.1",
    "gulp-bower": "0.0.13",
    "rcedit": "^0.7.0"
  },
  "dependencies": {
    "highcharts": "^5.0.5",
    "jquery": "^3.1.1",
    "remote": "^0.2.6"
  },
  "scripts": {
    "start": "electron .",
    "package": "electron-packager ./app Kyss_electron --platform=win32 --arch=x64  --asar=true",
    "make": "electron-installer-windows --src app-win32-x64/ --dest dist/"
  }
}

But it fails, without saying any specific but that the problem is probably in my app. So what can be wrong with my app?

Thanks,

What version of electron-installer-windows are you using? 0.2.0

What version of node and npm are you using? 3.10.9

What operating system are you using? Windows 10

Can you compile the example app successfully? Not tried

If not, paste here the output of the following commands:

$ git clone https://github.com/unindented/electron-installer-windows.git
$ cd electron-installer-windows/example
$ DEBUG='electron-installer-windows' npm run build

What did you do? Please include the configuration you are using for electron-installer-windows. Trying to pack my app

What did you expect to happen? To build a single .exe file

What actually happened? It gives the error “Error: Error creating package: Error executing file (1):” … “The element ‘metadata’ in namespace ‘http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd’ has incomplete content. List of possible elements expected: ‘description’ in namespace ‘http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd’.”

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
geek4teckcommented, Jan 31, 2017

I got the same issue yesterday and I fixed it this way:

Added a new file config.json

{ “authors”:[“Author Name”], “description”:“Description goes here”, “productDescription”:“ProductDescription goes here” }

and while calling “make”: “electron-installer-windows --src app-win32-x64/ --dest dist/”

add another parameter --config

"make": "electron-installer-windows --src app-win32-x64/ --dest dist/ --config config.json"

Check the correct path for config.json

This problem should get solved.

Thanks

0reactions
unindentedcommented, Jan 31, 2017

Cool, thanks for the help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get help with Windows upgrade and installation errors
See some of the most common upgrade and installation errors for Windows 10 and Windows 11, and what you can do to try...
Read more >
[Fixed] Unable to Reset Your PC. A Required Drive Partition Is ...
You system files are missing or damaged; As the error indicates, a required drive partition is missing. The solutions vary depending on the ......
Read more >
What to Do When Windows Update Keeps Failing on ...
Method 1: Run the Windows Update Troubleshooter tool. Microsoft themselves have issued a designated tool to help fix issues with Windows 10's updates....
Read more >
How to upgrade to Windows 11, whether your PC is supported ...
Officially, any PC that doesn't meet all of Windows 11's requirements gets treated the same. Unsupported means unsupported, and Microsoft doesn' ...
Read more >
What if new games don't start or are not working on Windows ...
1. Restart your gaming platform. 2. Restart your PC. 3. Check whether your system meets the game’s requirements.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found