-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update compile_windows.bat and the compile script
- Loading branch information
Showing
4 changed files
with
30 additions
and
10 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
# Patchers output | ||
wiimmfi-wads | ||
backup-wads | ||
src/WiiWarePatcher.exe | ||
src/WiiWarePatcher_32bit.exe | ||
src/WiiWarePatcher_64bit.exe | ||
|
||
# Don't upload .WAD files | ||
*.WAD |
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
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,26 @@ | ||
@echo off | ||
:: Install MinGW if you want to compile under Windows. | ||
:: Make sure you have WSL (Windows Subsystem for Linux) installed and run this command: | ||
:: sudo apt-get install mingw-w64 -y | ||
|
||
echo Compiling... | ||
g++ wiiwarepatcher.cpp -lws2_32 -static -o WiiWarePatcher.exe | ||
echo. | ||
echo - 32 bit... | ||
wsl i686-w64-mingw32-g++ wiiwarepatcher.cpp -lws2_32 -static -o WiiWarePatcher_32bit.exe | ||
if %errorlevel%==0 ( | ||
echo ^> OK! | ||
) else ( | ||
echo Failed. | ||
) | ||
echo. | ||
echo - 64 bit... | ||
wsl x86_64-w64-mingw32-g++ wiiwarepatcher.cpp -lws2_32 -static -o WiiWarePatcher_64bit.exe | ||
if %errorlevel%==0 ( | ||
echo OK! | ||
echo ^> OK! | ||
) else ( | ||
echo Failed. | ||
) | ||
|
||
|
||
echo. | ||
echo Done! | ||
pause |