Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Electron.NET doesn't work with dotnet 8.0 on Mac M1 ? #831

Open
pedropuchalski opened this issue Feb 9, 2024 · 2 comments
Open

Electron.NET doesn't work with dotnet 8.0 on Mac M1 ? #831

pedropuchalski opened this issue Feb 9, 2024 · 2 comments
Labels

Comments

@pedropuchalski
Copy link

  • Version:
    (everything newest)
    NuGet[ ElectronNET.API ] 23.6.1
    NuGet[ ElectronNET.CLI] 23.6.1
    node.js v20.11.0
    Dotnet 8.0.101
    Mac OS: 14.2.1 (23C71) - M1 processor.
  • Target:
    Mac OS, but later will try for Windows too.

I had perfectly working Blazor app contained in electron, but now I can't figure out how to run it - after updating to dotnet 8.0. I have made a new projects from scratch and have exactly the same behaviour:

After running 'electronize start' - the app is somehow starting as its icon is showing in the dock, but there is now Electron window visible - whatever I do or click. Last line at console after run:
...
ElectronHostHook handling started...
Invoke electron - in dir: /Users/pedropuchalski/Downloads/ElectroBlazorApp/obj/Host/node_modules/.bin
./electron "../../main.js"
2024-02-09 15:01:39.300 Electron[8712:1561502] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.
Electron Socket IO Port: 8000
Electron Socket started on port 8000 at ::1
ASP.NET Core Port: 8001

So no errors... anything. Example code I use: https://github.com/pedropuchalski/ElectroBlazorApp
fulll StartingLog.txt

@sajmonr
Copy link
Contributor

sajmonr commented May 2, 2024

I had the same issue and it was due to the app not detecting arm architecture. Try running electronize start /target custom "osx-arm64;mac" (assuming you have the arm SDK installed). You can see my issue in #820.

@titanix
Copy link

titanix commented Sep 28, 2024

Same issue on macOS with M1 Pro, and the command given by sajmonr doesn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants