Customization stuff from Eric P's OSX update.

This commit is contained in:
William Kendrick 2014-03-19 22:37:37 +00:00
parent ccc7488232
commit d3552fb7e8
4 changed files with 86 additions and 0 deletions

34
custom/win32.bat Executable file
View file

@ -0,0 +1,34 @@
@echo off
rem //EP added in version 0.9.22
rem must be called manually at end of build
rem contains customization tasks
set CUSTOM=content.zip
set DST=..\data
set FONTS=%DST%\fonts
set LOG=%TEMP%\custom.log
if exist "%CUSTOM%" (
echo Custom content file %CUSTOM% found
echo Installing custom content into target folder %DST%
rem clean up fonts folder
echo Cleaning up fonts folder %FONTS%
rem save the fonts we want to keep
move %FONTS%\default_font.ttf "%TEMP%"
rem empty fonts folder
del /s /q %FONTS%\*
rem restore the fonts we want to keep
move "%TEMP%\default_font.ttf" %FONTS%
rem install content from archive
echo Extracting content from archive into target
unzip -yO -x*.icns -x__MACOSX\*.* -d -o %CUSTOM% %DST% > %LOG%
echo Custom content has been installed
) else (
echo Custom content file %CUSTOM% not found
)