Add error when using *nix build with Windows executable

This commit is contained in:
ghorsington authored and Tatsuyuki Ishi committed 2021-12-07 18:13:33 +09:00
1 parent 919d1ee0da
commit 8f6d04c621
1 file changed
+6
+6
View File
@@ -90,6 +90,12 @@ fi
executable_type=`LD_PRELOAD="" file -b "${executable_path}"`;
case $executable_type in
*PE32*)
echo "The executable is a Windows executable file. You must use Wine/Proton and BepInEx for Windows with this executable."
echo "Uninstall BepInEx for *nix and install BepInEx for Windows instead."
echo "More info: https://docs.bepinex.dev/articles/advanced/steam_interop.html#protonwine"
exit 1
;;
*64-bit*)
arch="x64"
;;