Skip to content

Instantly share code, notes, and snippets.

@tcrowe
Created March 19, 2019 09:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tcrowe/bf0bfec09897df4c1e08653f244cc283 to your computer and use it in GitHub Desktop.
Save tcrowe/bf0bfec09897df4c1e08653f244cc283 to your computer and use it in GitHub Desktop.
Build electron app for windows using osx
#!/bin/zsh
# tell electron packager's rcedit.exe to use wine64
export WINE=`which wine64`
export WINEARCH=win64
export WINE_ARCH=win64
# possibly interesting information
# https://wiki.winehq.org/Debug_Channels
# unset WINEDEBUG
# or silence it and give no debug info ⬇️
# export WINEDEBUG=-all
# prevents an error saying it needs an absolute path
export WINEPREFIX=$PWD/.tmp/wine
mkdir -p $WINEPREFIX
./node_modules/.bin/electron-packager . 'TITLE' --platform=win32 --out dist/win
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment