Skip to content

Publishing ElectronHostHook sample produces malformed app.asar (missing JS and contains win-unpacked) #1058

@skynightz

Description

@skynightz
  • Version: main (0.4.1)
  • Dotnet version: 10.0.107
  • Target: Windows / Mac / Linux

I cloned the Electron.NET repository to try the ElectronNET.Samples.ElectronHostHook sample and attempted to publish it. Aside from the fact that the sample app isn't working, the output app.asar doesn't contain the transpiled JS files from ElectronHostHook, and the win-unpacked folder is included inside app.asar:

Image

Steps to Reproduce:

  1. dotnet publish -c Release in project Electron.NET\src\ElectronNET.Samples.ElectronHostHook
  2. cd src\ElectronNET.Samples.ElectronHostHook\bin\Release\net10.0\win-x64\publish\win-unpacked\resources
  3. npx asar extract app.asar output

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions