Created
March 19, 2019 09:09
-
-
Save tcrowe/bf0bfec09897df4c1e08653f244cc283 to your computer and use it in GitHub Desktop.
Build electron app for windows using osx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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