Windows: Update CopyFiles to compress the bladbase

This also updates the installer generator to include the new bladbase instead of the old.
This commit is contained in:
2017-01-20 22:17:43 -05:00
parent 5c16195303
commit 07e5907818
3 changed files with 9 additions and 2 deletions

3
.gitignore vendored
View File

@@ -78,6 +78,9 @@ test/junk/*.xml
test/junk/*.spec
test/junk/*.map
# Packed scenarios
*.boes
# Misc
oldstructs.txt
src/tools/gitrev.hpp

View File

@@ -109,7 +109,7 @@ Section "Scenario Editor" Section3
SetOutPath "$INSTDIR\"
File "${RELEASE_DIR}\BoE Scenario Editor.exe"
SetOutPath "$INSTDIR\Blades of Exile Base\"
File "${RELEASE_DIR}\Blades of Exile Base\bladbase.exs"
File "${RELEASE_DIR}\Blades of Exile Base\bladbase.boes"
SetShellVarContext all
CreateShortCut "$SMPROGRAMS\Blades of Exile\Scenario Editor.lnk" "$INSTDIR\BoE Scenario Editor.exe"

View File

@@ -4,6 +4,8 @@ echo Copying files...
set SolutionDir=%1
set Config=%2
set VCDir=%~f3
set Zip="C:\Program Files\7-Zip\7z.exe"
set ResourceDir=%SolutionDir%%Config%\..\..\..\rsrc
set TargetDir=%SolutionDir%%Config%
@@ -32,7 +34,9 @@ xcopy %ResourceDir%\strings\*.txt %TargetDir%\data\strings /s /y /i /d
xcopy %ResourceDir%\..\src\tools\mask.* %TargetDir%\data\shaders /s /y /i /d
@echo Copying base scenarios...
xcopy %ResourceDir%\"Blades of Exile Bases" %TargetDir%\"Blades of Exile Base" /s /y /i /d
cd %ResourceDir%\"Blades of Exile Bases"
%Zip% a -ttar -so bladbase.tar bladbase | %Zip% a -tgzip -si bladbase.boes
xcopy %ResourceDir%\"Blades of Exile Bases"\*.boes %TargetDir%\"Blades of Exile Base" /s /y /i /d
@echo Copying scenario files...
xcopy %ResourceDir%\"Blades of Exile Scenarios"\*.exs %TargetDir%\"Blades of Exile Scenarios" /s /y /i /d