electronize build no longer produces output #321

Closed
opened 2026-01-29 16:36:24 +00:00 by claunia · 6 comments
Owner

Originally created by @robalexclark on GitHub (May 21, 2019).

Originally assigned to: @GregorBiswanger on GitHub.

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?

Originally created by @robalexclark on GitHub (May 21, 2019). Originally assigned to: @GregorBiswanger on GitHub. 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?
claunia added the questioninformation labels 2026-01-29 16:36:24 +00:00
Author
Owner

@GregorBiswanger commented on GitHub (May 21, 2019):

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/about@2x.png"
  },
  "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": [
          "**/*"
        ]
      },
      "**/*"
    ]
  }
}
@GregorBiswanger commented on GitHub (May 21, 2019): 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/about@2x.png" }, "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": [ "**/*" ] }, "**/*" ] } } ```
Author
Owner

@Tum4ik commented on GitHub (May 30, 2019):

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
@Tum4ik commented on GitHub (May 30, 2019): Is this section required? ```json "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 ```
Author
Owner

@robertmuehsig commented on GitHub (May 30, 2019):

Not sure where this is, but I'm pretty sure: No.

@robertmuehsig commented on GitHub (May 30, 2019): Not sure where this is, but I'm pretty sure: No.
Author
Owner

@Tum4ik commented on GitHub (May 31, 2019):

Ok, could you pls point, which properties are required?

@Tum4ik commented on GitHub (May 31, 2019): Ok, could you pls point, which properties are required?
Author
Owner

@GregorBiswanger commented on GitHub (May 31, 2019):

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": ["**/*"]
      },
      "**/*"
    ]
  }
}
@GregorBiswanger commented on GitHub (May 31, 2019): 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": ["**/*"] }, "**/*" ] } } ```
Author
Owner

@robalexclark commented on GitHub (May 31, 2019):

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": [
            "**/*"
          ]
        },
        "**/*"
      ]
    }
  }
}
@robalexclark commented on GitHub (May 31, 2019): 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": [ "**/*" ] }, "**/*" ] } } } ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#321