Path to Microsoft.JavaScript.NodeApi.DotNetHost.dll in electron binary is incorrect
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 42/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- csharp, electron, javascript, node.js
- 領域
- desktop
研究方向
先檢視 init.js 中顯示的路徑建構方式,以及 Electron 使用 ASAR 時 node-api-dotnet 函式庫如何解析 managed host DLL。當封裝後的應用程式不需要呼叫端的 workaround,就能透過 app.asar.unpacked 找到 DLL 時,工作便完成;issue 中沒有指定測試檔案。
由索引模型根據 Issue 內容生成。
描述
When electron apps are packaged with ASAR enabled, all binaries get placed inside app.asar archive, but when accessed those need to be accessed via app.asar.unpacked directory if the node module does not use path or fs to resolve file names.
For now I am doing the below inside init.js to get things working on my end, but it would be nice to have this handled within the node-api-dotnet library.
let managedHostPath = __dirname + `/${targetFramework}/${assemblyName}.DotNetHost.dll`
managedHostPath = managedHostPath.indexOf('app.asar.unpacked') < 0 ?
managedHostPath.replace('app.asar', 'app.asar.unpacked') : managedHostPath;
- 主要語言
- C#
- 星號
- 783
- 分支
- 80
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
microsoft/node-api-dotnet 的其他 Issue
-
難度 1/5 1-3 小時 新手友好度 88/100
microsoft/node-api-dotnet#484 ·
-
難度 2/5 1-3 小時 新手友好度 82/100
microsoft/node-api-dotnet#481 ·
-
難度 5/5 一週以上 新手友好度 35/100
microsoft/node-api-dotnet#486 · 1 則留言 ·
-
難度 5/5 一週以上 新手友好度 35/100
microsoft/node-api-dotnet#483 · 1 則留言 · 1 個 reaction ·
-
難度 4/5 3-5 天 新手友好度 45/100
microsoft/node-api-dotnet#479 ·
查看 microsoft/node-api-dotnet 的全部 Issue
相似的 Issue
-
area-ai untriaged
難度 2/5 1-3 小時 新手友好度 85/100
dotnet/extensions#7790 ·
維護者通常 1 天內回覆
-
P2 testing
難度 1/5 1 小時以內 新手友好度 90/100
維護者通常 1 天內回覆
-
area-Infrastructure-coreclr os-ios os-maccatalyst os-tvos untriaged
難度 2/5 1-3 小時 新手友好度 78/100
dotnet/runtime#134766 · 3 則留言 ·
維護者通常 1 天內回覆
-
0 - Backlog Bug
難度 2/5 1-3 小時 新手友好度 88/100
BrighterCommand/Brighter#4444 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 88/100
維護者通常 1 天內回覆