Skip to content

README: add macOS run instructions and fix prerequisites - #1

Merged
LanaDX merged 3 commits into
26.1.5+from
readme-macos-instructions
Oct 29, 2026
Merged

LanaDX merged 3 commits into
26.1.5+from
readme-macos-instructions

Conversation

@artem-kurchenko

Copy link
Copy Markdown
Contributor

Summary

I ran the example on macOS (Apple silicon, .NET SDK 10.0.302, Node.js 24.16.0). It works after the changes described in the new Run the Example on macOS section. This PR changes only the README.

Changes

  • Prerequisites: .NET SDK 8.0 → 10.0, because all projects target net10.0. Added a note that LocalDB is Windows-only, with a link to the macOS section.
  • New section, "Run the Example on macOS":
    • Use SQLite instead of LocalDB: add Microsoft.Data.Sqlite to the MiddleTier project and override ConnectionStrings__ConnectionString with an environment variable.
    • The HTTPS development certificate requirement for the Middle Tier (it listens on https://localhost:44350).
    • Command-line run steps and the demo logon (Admin, empty password).
    • Troubleshooting for the Electron window that doesn't open (see below).
  • Step 5: added the Middle Tier dotnet run command, and mentioned Rider next to Visual Studio.
  • "Disable HTTPS Redirection in Electron Mode": this paragraph was cut off in the initial commit and started with "logs the …". I completed it.
  • Changed code block languages from powershell to shell, because the commands work on every platform.

Electron + Node.js 24 issue (macOS)

ElectronNET.Core 0.6.0 pins Electron 30.4.0. With Node.js 24.16.0, Electron's npm postinstall (install.js) exits with code 0, but it extracts an incomplete Electron.app: Contents/Frameworks is missing and path.txt isn't written. The app then fails with dyld: Library not loaded: @rpath/Electron Framework.framework/Electron Framework. The cached zip is complete. Extracting it manually with ditto fixes the problem, and the README documents this workaround.

Not verified: whether Node.js 22, or a newer ElectronVersion MSBuild property, avoids the issue. Either would be a cleaner recommendation than the manual workaround.

Not included

  • I didn't add Microsoft.Data.Sqlite to ElectronExample.MiddleTier.csproj. The README describes it as an optional local step, so the Windows/LocalDB setup stays unchanged. If you prefer that macOS works without editing the project, the package reference could be added instead.

Testing

  • I verified on macOS that the Middle Tier starts with SQLite and the database is created, and that the Electron window opens and shows the XAF logon page.
  • I haven't checked that the Native Message Box action shows a native macOS dialog.

🤖 Generated with Claude Code

- Require .NET 10 SDK (projects target net10.0)
- Add "Run the Example on macOS" section: SQLite instead of LocalDB,
  dev certificate, run commands, Electron extraction workaround for Node 24
- Add Middle Tier run command and Rider to Step 5
- Complete the truncated HTTPS redirection paragraph
- Use shell instead of powershell for cross-platform commands

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comment thread README.md Resolved
Removed troubleshooting section for Electron window issues.
@LanaDX
LanaDX marked this pull request as ready for review October 29, 2026 10:09
@LanaDX
LanaDX merged commit 59fdd93 into 26.1.5+ Oct 29, 2026
0 of 2 checks passed
@LanaDX
LanaDX deleted the readme-macos-instructions branch October 29, 2026 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants