Running the command on the latest version :
electronize build /target win
no longer produces output in the bin/desktop folder.
I have updated my dotnet tool to the latest version (today)
I understand that an update to electron.net is in progress - has this been completed, or is it still in progress which is why the tooling no longer works?
On version 5.22.12, the output-path is specified in the electron.manifest.json file. Please compare your file with our example.
Very important here is the part of build with directories and extraResources. Please just take over directly:
{
"executable": "ElectronNET.WebApp",
"splashscreen": {
"imageFile": "/wwwroot/assets/img/[email protected]"
},
"singleInstance": false,
"build": {
"appId": "com.electronnetapidemos.app",
"productName": "ElectronNET API Demos",
"copyright": "Copyright � 2019",
"buildVersion": "5.22.12",
"compression": "maximum",
"win": {
"icon": "Assets/electron.ico",
"publish": [
{
"provider": "github",
"owner": "ElectronNET",
"repo": "electron.net-api-demos",
"token": ">> Insert GH_TOKEN here! <<"
}
]
},
"directories": {
"output": "../../../bin/Desktop",
"buildResources": "Assets"
},
"extraResources": [
{
"from": "./bin",
"to": "bin",
"filter": [
"**/*"
]
}
],
"files": [
{
"from": "./ElectronHostHook/node_modules",
"to": "ElectronHostHook/node_modules",
"filter": [
"**/*"
]
},
"**/*"
]
}
}
Is this section required?
"publish": [
{
"provider": "github",
"owner": "ElectronNET",
"repo": "electron.net-api-demos",
"token": ">> Insert GH_TOKEN here! <<"
}
]
Because my build hangs on these lines:
тАв electron-builder version=20.41.0
тАв loaded configuration file=My_APP\obj\desktop\win\bin\electron-builder.json
тАв no native production dependencies
тАв packaging platform=win32 arch=x64 electron=5.0.1 appOutDir=bin\Desktop\win-unpacked
Not sure where this is, but I'm pretty sure: No.
Ok, could you pls point, which properties are required?
The best way:
You can remove the electron.manifest.json file and execute the command electronize init again.
Or alternative is here the default configuration:
{
"executable": "{{executable}}",
"splashscreen": {
"imageFile": ""
},
"singleInstance": false,
"build": {
"appId": "com.{{executable}}.app",
"productName": "{{executable}}",
"copyright": "Copyright © 2019",
"buildVersion": "1.0.0",
"compression": "maximum",
"directories": {
"output": "../../../bin/Desktop"
},
"extraResources": [
{
"from": "./bin",
"to": "bin",
"filter": ["**/*"]
}
],
"files": [
{
"from": "./ElectronHostHook/node_modules",
"to": "ElectronHostHook/node_modules",
"filter": ["**/*"]
},
"**/*"
]
}
}
Just for another reference, here is an example of a more complicated electron.manifest.json to build for win, linux and mac
{
"executable": "SilveR",
"splashscreen": {
"imageFile": "/wwwroot/images/InVivoStatLogo.png"
},
"singleInstance": false,
"build": {
"appId": "com.electron.InVivoStat",
"productName": "InVivoStat",
"copyright": "Copyright 2019",
"buildVersion": "4.0.0",
"compression": "maximum",
"directories": {
"output": "../../../bin/Desktop"
},
"win": {
"icon": "../../../build/icon.png",
"extraResources": [
{
"from": "./bin",
"to": "bin",
"filter": [
"**/*"
]
},
{
"from": "../../../R",
"to": "./bin/R",
"filter": [
"**/*"
]
}
],
"files": [
{
"from": "./ElectronHostHook/node_modules",
"to": "ElectronHostHook/node_modules",
"filter": [
"**/*"
]
},
"**/*"
]
},
"linux": {
"icon": "../../../build/256x256.png",
"extraResources": [
{
"from": "./bin",
"to": "bin",
"filter": [
"**/*"
]
}
],
"files": [
{
"from": "./ElectronHostHook/node_modules",
"to": "ElectronHostHook/node_modules",
"filter": [
"**/*"
]
},
"**/*"
]
},
"mac": {
"icon": "../../../build/icon.png",
"extraResources": [
{
"from": "./bin",
"to": "bin",
"filter": [
"**/*"
]
}
],
"files": [
{
"from": "./ElectronHostHook/node_modules",
"to": "ElectronHostHook/node_modules",
"filter": [
"**/*"
]
},
"**/*"
]
}
}
}
Most helpful comment
On version 5.22.12, the output-path is specified in the electron.manifest.json file. Please compare your file with our example.
Very important here is the part of build with directories and extraResources. Please just take over directly: