-
-
Save AngellusMortis/ecf9ad51fcf7394569c85b7c6a9f6190 to your computer and use it in GitHub Desktop.
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/sh | |
SCRIPT="$(mktemp --suffix=.bat)" | |
cleanup() { | |
rm -f "$SCRIPT" | |
} | |
trap cleanup EXIT | |
cat > "$SCRIPT" <<EOF | |
@echo off | |
set MSVCROOT=C:\MSVC | |
EOF | |
cat >> "$SCRIPT" <<EOF | |
set PATH=%MSVCROOT%\VC\VC\Tools\MSVC\14.15.26726\bin\Hostx86\x86;%MSVCROOT%\Kits\10\bin\10.0.17134.0\x86;%PATH% | |
set INCLUDE=%MSVCROOT%\Kits\10\Include\10.0.17134.0;%MSVCROOT%\Kits\10\Include\10.0.17134.0\shared;%MSVCROOT%\Kits\10\Include\10.0.17134.0\ucrt;%MSVCROOT%\Kits\10\Include\10.0.17134.0\um;%MSVCROOT%\Kits\10\Lib\10.0.17134.0\ucrt;%MSVCROOT%\Kits\10\Lib\10.0.17134.0\um | |
set LIB=%MSVCROOT%\VC\VC\Tools\MSVC\14.15.26726\lib\x86;%MSVCROOT%\Kits\10\Lib\10.0.17134.0\ucrt\x86;%MSVCROOT%\Kits\10\Lib\10.0.17134.0\um\x86 | |
EOF | |
echo "echo on" >> "$SCRIPT" | |
echo "$@" >> "$SCRIPT" | |
WINEPREFIX="$( cd "$( dirname "$0" )" && pwd )" WINEARCH=win32 wine cmd /c "Z:$SCRIPT" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment