Skip to content
Snippets Groups Projects
Commit 70d4b4e0 authored by Julian Pistorius's avatar Julian Pistorius
Browse files

Problem: Building distributable app fails

It seems `electron-builder` is expecting a default of `index.js`. When we
made the web version we renamed `index.js` to `electron-index.js`.

See: dc6f0bb6

When trying to build the app it now results in an error message like:

```
Error: Application entry file "index.js" in the
"/.../exosphere/dist/mac/Exosphere.app/Contents/Resources/app.asar" does not exist. Seems like
a wrong configuration
```

Solution: Add a parameter `-c.extraMetadata.main` set to `electron-index.js`
when calling `electron-builder`.
parent 9dc9f2a4
Branches
No related tags found
Loading
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
"elm:format": "elm-format --validate src", "elm:format": "elm-format --validate src",
"elm:analyse": "elm-analyse", "elm:analyse": "elm-analyse",
"pack": "electron-builder --dir", "pack": "electron-builder --dir",
"dist": "electron-builder" "dist": "electron-builder -c.extraMetadata.main=electron-index.js"
}, },
"postinstall": "electron-builder install-app-deps", "postinstall": "electron-builder install-app-deps",
"author": { "author": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment