Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.