Failing to build my app (W10), is there any specific requirement I am missing?
See original GitHub issueIs 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:
- Created 7 years ago
- Comments:6
Top GitHub Comments
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
Check the correct path for config.json
This problem should get solved.
Thanks
Cool, thanks for the help!