0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Mac OS Catalinaで ElectronアプリのWindows用にビルドでハマったこと

Last updated at Posted at 2020-11-08

実行環境

PC: MacBook Air (13-inch, Mid 2013)
OS: Mac OS Catalina 10.15.6
wine: wine-5.0(2020.11.08時点)
パッケージングの方法:electron-packagerを使用。
下記コマンドでMacOSからWindows用に自作アプリをビルドしようとしていました。

npx electron-packager ./src XXXApp --platform=win32 --arch=x64 --overwrite --icon=src/icon/win/app.ico

試したこと

 2020-11-08 22.23.03.png

$ brew install Caskroom/cask/xquartz
$ brew install wine
> [Electron 入門 - MacでWindows用にパッケージングする](https://gist.github.com/umamichi/ff5b812caf1466c2c2e5768b7837a1e7#mac%E3%81%A7windows%E7%94%A8%E3%81%AB%E3%83%91%E3%83%83%E3%82%B1%E3%83%BC%E3%82%B8%E3%83%B3%E3%82%B0%E3%81%99%E3%82%8B)

`brew install Caskroom/cask/xquartz`はインストールに成功するが
`brew install wine`でインストールに失敗する。

![2020-11-08_22_29_35.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/136617/d227fffd-9007-9283-ac96-29bdf2927f75.png)


# 解決方法

brew cask install xquartz
brew cask install wine-stable


Homebrew caskを使ってバイナリ形式の xquartzとwine-stableをインストールする。
xquartzはwineのインストールに必要。

参考
[homebrew - Installing Wine on Mac OS Catalina. Error: No available formula with the name "wine" - Stack Overflow](https://stackoverflow.com/questions/58891420/installing-wine-on-mac-os-catalina-error-no-available-formula-with-the-name-w)



0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?