Mac Os 10.11.6 中 Windows 的 Electron Pakaging 問題 (Electron Pakaging issue for Windows in Mac Os 10.11.6)


問題描述

Mac Os 10.11.6 中 Windows 的 Electron Pakaging 問題 (Electron Pakaging issue for Windows in Mac Os 10.11.6)

我使用的是 Mac OS 10.11.6。我為 mac OS 構建的 elecron 是成功的,但對於 Windows,它給出了以下錯誤

⨯ cannot execute cause=exit status 1 errorOut=wine: failed to initialize: dlopen (/tmp/wine‑stage/wine/usr/lib/wine/ntdll.dll.so, 258): 找不到圖片

我正在使用"electron‑builder": "22.3.2" in package.json

我已經看到了關於這個問題的各種帖子,但沒有合適的解決方案。請幫忙


參考解法

方法 1:

The Only Option for me to make it work is to upgrade MacOs(OSX EI Captain) to macOS Mojave( 10.14.6).

Somewhere I read some packaging tools have issues with macOS catalina , So I did not opt for it for upgrade and considered Mojave.

Note: The upgrade experience was not that smooth. a) Upgrade Process itself took more than 8hrs and I had to leave the laptop for overnight after waiting for 3hrs. But luckily , when I checked in the morning , the laptop was booted up to login screen b) When I tried to login, it stuck for hrs there, but I realised after googling it is a common issue and many people faced it. Then I had to follow safe mode booting clearing of NVM etc process . But finally it is thru c) Finally npm install of my app which was working before , broke and the solution was to do

xcode‑select ‑‑install

d) Subsequently the windows build was done without any issue and app is working fine now.

So in short, unless you have at least one day to keep aside , do not attempt the OS upgrade.

(by Raghu VallikkatRaghu Vallikkat)

參考文件

  1. Electron Pakaging issue for Windows in Mac Os 10.11.6 (CC BY‑SA 2.5/3.0/4.0)

#electron-builder #macos #Windows






相關問題

Electron Builder 代碼簽名下載證書錯誤 (Electron Builder Code Signing Download Certificate Error)

Electron 使用 electron-builder 創建 MSI 安裝程序 (Electron create MSI installer using electron-builder)

如何使用電子/電子生成器創建發布通道? (How to create release channels with electron/electron-builder?)

electron-builder,如何設置節點環境變量 (electron-builder, how to set node environmental variables)

電子應用Mac應用商店圖標問題->“缺少必需的圖標” (electron app Mac app store icon issue -> "missing required icon")

帶有 Vue 和 vue-cli-plugin-electron-builder 的電子應用程序無法與 Tesseract.js 一起使用 (Electron App with Vue and vue-cli-plugin-electron-builder can't working with Tesseract.js)

使用 Electron-builder 自定義 NSIS 安裝程序 (Customize NSIS installer with Electron-builder)

在 Mac 中打開 Electron 應用程序時出錯:“file:///Applications/../Contents/Resources/app.asar/dist/index.html” (Error in Opening Electron App in Mac:"file:///Applications/../Contents/Resources/app.asar/dist/index.html")

Mac Os 10.11.6 中 Windows 的 Electron Pakaging 問題 (Electron Pakaging issue for Windows in Mac Os 10.11.6)

對於 Mac,是否有關於基於電子的應用程序卸載的事件?還是一種區分安裝和更新的方法? (Is there an event on electron based app's uninstall, for Mac? Or a way to distinguish between an install and an update?)

Electron 應用架構 - IPC 與 API (Electron application architecture - IPC vs API)

公證問題:altool 不在 PATH 中? (Notarize issue: altool not in PATH?)







留言討論