Closed ghost closed 5 years ago
It works fine for me, try re-invoking the generator with vue invoke electron-builder
. Also try deleting node_modules
and re-installing.
INFO Building app with electron-builder:
• electron-builder version=20.33.2
• description is missed in the package.json appPackageFile=/home/noah/Documents/HTML/electron-test/dist_electron/bundled/package.json
• author is missed in the package.json appPackageFile=/home/noah/Documents/HTML/electron-test/dist_electron/bundled/package.json
• writing effective config file=dist_electron/builder-effective-config.yaml
• no native production dependencies
• packaging platform=linux arch=x64 electron=3.0.8 appOutDir=dist_electron/linux-unpacked
DONE Build complete!
@nklayman I get this error message with all dependencies up-to-date.
I also tried vue invoke electron-builder
Error: Application entry file "background.js" in the "/Users/nichlas/code/[app name]/build/mac/[app name].app/Contents/Resources/app.asar" does not exist. Seems like a wrong configuration.
My vue.config.js
file looks like this:
module.exports = {
runtimeCompiler: true,
pluginOptions: {
electronBuilder: {
builderOptions: {
productName: 'App name',
appId: 'io.appname.app',
copyright: 'Copyright © 2019 App name',
publish: {
provider: 'github'
},
directories: {
output: 'build'
},
files: ['dist_electron/**/*'],
dmg: {
title: 'App name',
contents: [
{
x: 410,
y: 190,
type: 'link',
path: '/Applications'
},
{
x: 130,
y: 190,
type: 'file'
}
]
},
mac: {
icon: 'public/icons/icon.icns'
},
win: {
icon: 'public/icons/icon.ico'
}
}
}
}
}
package.json
:
{
"name": "app name",
"version": "0.4.4",
"private": true,
"description": "description",
"author": "Nichlas <my@email.com>",
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint",
"electron:build": "vue-cli-service electron:build",
"electron:serve": "vue-cli-service electron:serve",
"postinstall": "electron-builder install-app-deps",
"ship:major": "npm version major && vue-cli-service electron:build && electron-builder -mw -p always",
"ship:minor": "npm version minor && vue-cli-service electron:build && electron-builder -mw -p always",
"ship:patch": "npm version patch && vue-cli-service electron:build && electron-builder -mw -p always"
},
"dependencies": {
"electron-debug": "^2.0.0",
"electron-settings": "^3.2.0",
"vue": "^2.5.22",
"vue-router": "^3.0.1"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^3.3.0",
"@vue/cli-plugin-eslint": "^3.3.0",
"@vue/cli-service": "^3.3.0",
"@vue/eslint-config-prettier": "^4.0.0",
"babel-eslint": "^10.0.1",
"electron": "^4.0.1",
"eslint": "^5.12.1",
"eslint-plugin-vue": "^5.1.0",
"node-sass": "^4.9.0",
"sass-loader": "^7.0.1",
"vue-cli-plugin-electron-builder": "^1.0.0-rc.10",
"vue-template-compiler": "^2.5.22"
},
"main": "background.js"
}
Hello,
after upgrading to electron-builder 20.33.2 and vue-cli-plugin-electron-builder rc7 the build breaks with the following error:
package.json
deps:Pinning versions as the following works as expected:
I noticed you closed #130 but apparently there is something breaking still.
Thank you for your effort and any feedback you'll be able to provide!