Search code examples
javascriptnode.jselectronwine

Packaging WIN app on OSX triggers request for Wine install. Why?


I've successfully been using Electron on OSX (10.11.6) for months to build and package OSX and WIN apps. I am currently using electron v1.7.3 and "electron-packager" "^8.5.2" and haven't updated anything for a while.

Today when I went to package a WIN app I got an alert about a need to install Wine, with an option to install. (I should have taken a screenshot to log the full message.) I opted to install Wine and the build proceeded normally. The app tests ok running Windows 10 under emulation with VMWare Fusion.

There were no terminal messages aside from the usual:

Packaging app for platform win32 ia32 using electron v1.7.3

Does anyone know why this alert might have been triggered? Nothing on my system has changed (that I know of) since the last time I packaged apps – so I would like to understand what might have occurred. I didn't update my package.json or npm or include any additional npm packages.


Solution

  • electron-packager is using Wine for building Win dist on non-Win platforms. Wine released a new version five days ago So what happened was that electron-packager triggered Wine to start, which checked for updates and prompted you to install it. You should feel safe :)