Commit 67a7bb2
fix(overlay): single-file .exe wouldn't launch (Silk/GLFW platform not found)
The single-file overlay exited with "Couldn't find a suitable window platform":
Silk.NET discovers backends by reflection (broken in single-file) and looks for
glfw3.dll in AppContext.BaseDirectory (the exe dir, not the native self-extract
temp dir). Two fixes:
- Program.cs: explicitly GlfwWindowing.RegisterPlatform() + GlfwInput.RegisterPlatform().
- release.yml: publish with IncludeAllContentForSelfExtract=true (extracts managed
+ native together so BaseDirectory has glfw3.dll). Verified: the single-file exe
now launches.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 5de6614 commit 67a7bb2
2 files changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
36 | | - | |
| 39 | + | |
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
68 | 74 | | |
69 | 75 | | |
70 | 76 | | |
| |||
0 commit comments