Skip to content

Commit

Permalink
Expand the windows build to include packaging a combined .exe
Browse files Browse the repository at this point in the history
  • Loading branch information
zeta0134 committed Feb 7, 2017
1 parent 1b1cf29 commit 73f5746
Show file tree
Hide file tree
Showing 11 changed files with 988 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
games
love/games
*.love
LuaGB.zip
Binary file added vendor/love-win32/OpenAL32.dll
Binary file not shown.
Binary file added vendor/love-win32/SDL2.dll
Binary file not shown.
977 changes: 977 additions & 0 deletions vendor/love-win32/license.txt

Large diffs are not rendered by default.

Binary file added vendor/love-win32/love.dll
Binary file not shown.
Binary file added vendor/love-win32/love.exe
Binary file not shown.
Binary file added vendor/love-win32/lua51.dll
Binary file not shown.
Binary file added vendor/love-win32/mpg123.dll
Binary file not shown.
Binary file added vendor/love-win32/msvcp120.dll
Binary file not shown.
Binary file added vendor/love-win32/msvcr120.dll
Binary file not shown.
12 changes: 10 additions & 2 deletions windows_build.bat
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
mkdir games
mkdir love
mkdir build

xcopy /S /E /Y /I games love\games
xcopy /S /E /Y /I gameboy love\gameboy
copy /Y LICENSE.txt love\LICENSE.txt
xcopy /S /E /Y /I vendor\love-win32 build

del LuaGB.love
powershell.exe -nologo -noprofile -command "& { Add-Type -A 'System.IO.Compression.FileSystem'; [IO.Compression.ZipFile]::CreateFromDirectory('love', 'LuaGB.love'); }"
del LuaGB.zip
powershell.exe -nologo -noprofile -command "& { Add-Type -A 'System.IO.Compression.FileSystem'; [IO.Compression.ZipFile]::CreateFromDirectory('love', 'build\LuaGB.love'); }"

rd /s /q love\games
rd /s /q love\gameboy
del love\LICENSE.txt

copy /b build\love.exe+build\LuaGB.love build\LuaGB.exe
del build\LuaGB.love
del build\love.exe
powershell.exe -nologo -noprofile -command "& { Add-Type -A 'System.IO.Compression.FileSystem'; [IO.Compression.ZipFile]::CreateFromDirectory('build', 'LuaGB.zip'); }"
rd /s /q build

0 comments on commit 73f5746

Please sign in to comment.