New build scripts for targets other than Windows

This commit is contained in:
Ishaan Bhardwaj 2021-07-17 23:08:01 -04:00
parent 4d0f6ab9fc
commit c3f6e34518
3 changed files with 20 additions and 2 deletions

View File

@ -7,5 +7,11 @@
@del dist\win32\SOURCES.md @del dist\win32\SOURCES.md
@del dist\win32\LICENSE.md @del dist\win32\LICENSE.md
@rmdir /Q /S dist\win32\libs @rmdir /Q /S dist\win32\libs
@del dist\other\cambridge.love
@del dist\other\SOURCES.md
@del dist\other\LICENSE.md
@rmdir /Q /S dist\other\libs
@rmdir /Q /S dist\other
@del dist\cambridge-windows.zip @del dist\cambridge-windows.zip
@del dist\cambridge-win32.zip @del dist\cambridge-win32.zip
@del dist\cambridge-other.zip

View File

@ -2,8 +2,10 @@
mkdir dist mkdir dist
mkdir dist/windows mkdir dist/windows
mkdir dist/win32 mkdir dist/win32
cp cambridge.love dist/ mkdir dist/other
cat dist/windows/love.exe cambridge.love > dist/windows/cambridge.exe cat dist/windows/love.exe cambridge.love > dist/windows/cambridge.exe
zip dist/cambridge-windows.zip dist/windows/* SOURCES.md LICENSE.md zip dist/cambridge-windows.zip dist/windows/* SOURCES.md LICENSE.md
cat dist/win32/love.exe cambridge.love > dist/win32/cambridge.exe cat dist/win32/love.exe cambridge.love > dist/win32/cambridge.exe
zip dist/cambridge-win32.zip dist/win32/* SOURCES.md LICENSE.md zip dist/cambridge-win32.zip dist/win32/* SOURCES.md LICENSE.md
cp cambridge.love dist/other/
zip dist/cambridge-other.zip cambridge.love libs/discord-rpc.* SOURCES.md LICENSE.md

View File

@ -5,17 +5,23 @@ mkdir dist\windows
mkdir dist\windows\libs mkdir dist\windows\libs
mkdir dist\win32 mkdir dist\win32
mkdir dist\win32\libs mkdir dist\win32\libs
mkdir dist\other
mkdir dist\other\libs
copy /b dist\windows\love.exe+cambridge.love dist\windows\cambridge.exe copy /b dist\windows\love.exe+cambridge.love dist\windows\cambridge.exe
copy /b dist\win32\love.exe+cambridge.love dist\win32\cambridge.exe copy /b dist\win32\love.exe+cambridge.love dist\win32\cambridge.exe
copy /b cambridge.love dist\other\cambridge.love
copy libs\discord-rpc.dll dist\windows\libs copy libs\discord-rpc.dll dist\windows\libs
copy libs\discord-rpc.dll dist\win32\libs copy libs\discord-rpc.dll dist\win32\libs
copy libs\discord-rpc.* dist\other\libs
copy SOURCES.md dist\windows copy SOURCES.md dist\windows
copy LICENSE.md dist\windows copy LICENSE.md dist\windows
copy SOURCES.md dist\win32 copy SOURCES.md dist\win32
copy LICENSE.md dist\win32 copy LICENSE.md dist\win32
copy SOURCES.md dist\other
copy LICENSE.md dist\other
cd dist\windows cd dist\windows
tar -a -c -f ..\cambridge-windows.zip cambridge.exe *.dll libs *.md tar -a -c -f ..\cambridge-windows.zip cambridge.exe *.dll libs *.md
@ -23,4 +29,8 @@ cd ..\..
cd dist\win32 cd dist\win32
tar -a -c -f ..\cambridge-win32.zip cambridge.exe *.dll libs *.md tar -a -c -f ..\cambridge-win32.zip cambridge.exe *.dll libs *.md
cd ..\..
cd dist\other
tar -a -c -f ..\cambridge-other.zip cambridge.love libs *.md
cd ..\.. cd ..\..