2
I am developing a desktop application with Electron and I have the following problem when trying to run the application on Windows:
All this started after I installed the framework "escpos" to work with thermal printer and "Electron-rebuild" because I needed to run a rebuild to make the framework work.
I am developing and compiling, for Windows, on a Linux (Debian) machine using Electron-packager.
Follow my package.json if you can help:
"name": "app",
"version": "1.0.0",
"private": true,
"main": "elect.js",
"build": {
"appId": "br.com.app"
},
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"electron": "electron .",
"package-linux": "electron-packager . app --overwrite --asar=true --platform=linux --arch=x64 --icon=src/assets/icons/icon-1024.png --prune=true --out=release-builds",
"package-windows-32": "electron-packager . app --overwrite --asar=true --platform=win32 --arch=ia32 --icon=src/assets/icons/windows/logo-32x32.ico --prune=true --out=release-builds"
},
"dependencies": {
"electron": "^4.1.1",
"escpos": "^2.4.11",
"express": "^4.16.4",
"http": "0.0.0",
"internet-available": "^1.0.0",
"lodash": "^4.17.11",
"path": "^0.12.7",
"serialport": "^7.1.4",
"serve-static": "^1.13.2",
"vue": "^2.6.6",
"vue-router": "^3.0.1"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^3.5.0",
"@vue/cli-service": "^3.6.0",
"electron-packager": "^13.1.1",
"electron-rebuild": "^1.8.4",
"vue-template-compiler": "^2.5.21"
},
"postcss": {
"plugins": {
"autoprefixer": {}
}
},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 8"
]
}
Thank you in advance!