aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/PSVita/Builds/CopyDataFiles.cmd
blob: c53050b30aad14b132b984f7a34f846678ba6943 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
:: Copies all files for PS Vita Minecraft

:: PARAM
:: %1 - Target Dir
:: %2 - Territory

::Set back level
pushd .
cd ..\..\

::Remove Directories
if exist %1\%2 rmdir /S /Q %1\%2

:: Create directories
if not exist %1\%2 mkdir %1\%2

::Copying app files [images etc.]
xcopy /I /Y /S "PSVita\app" "%1\%2\app"

::Correct Param.sfo depending on territory
copy "PSVita\app\Region\%2\param.sfo" "%1\%2\app\sce_sys\param.sfo"

::Copy correct livearea xml depending on territory
::Trial
copy "PSVita\app\Region\%2\template-trial.xml" "%1\%2\app\sce_sys\livearea\contents\template.xml"
::Full
copy "PSVita\app\Region\%2\template.xml" "%1\%2\app\sce_sys\retail\livearea\contents\template.xml"

::Remove Region folder
rmdir /S /Q %1\%2\app\Region

::Copying Game Files
::Common - Media
if not exist %1\%2\app\Common\Media mkdir %1\%2\app\Common\Media
xcopy /I /Y /S Common\Media\font %1\%2\app\Common\Media\font
xcopy /I /Y Common\Media\MediaPSVita.arc %1\%2\app\Common\Media\
xcopy /I /Y /S Common\res %1\%2\app\Common\res
::Music
xcopy /I /Y /S music %1\%2\app\music
::Sounds
xcopy /I /Y /S PSVita\Sound %1\%2\app\PSVita\Sound
::Product codes
copy ..\PsVitaProductCodes\%2\PSVitaProductCodes.bin %1\%2\app\PSVita\PSVitaProductCodes.bin
::Invite image
copy PSVita\session_image.png %1\%2\app\PSVita\session_image.png
::DLC
xcopy /I /Y /S PSVita\DLC %1\%2\app\PSVita\DLC
::Trophy file
mkdir %1\%2\app\sce_sys\trophy\NPWR06859_00\
copy  PSVita\GameConfig\Minecraft_signed.trp %1\%2\app\sce_sys\trophy\NPWR06859_00\TROPHY.TRP

:: Manual
if exist PSVita\app\Region\%2\manual xcopy /I /Y /S PSVita\app\Region\%2\manual %1\%2\app\sce_sys\manual


::Removing files
rmdir /S /Q %1\%2\app\Common\res\TitleUpdate\GameRules\BuildOnly
rmdir /S /Q %1\%2\app\Common\res\achievement
rmdir /S /Q %1\%2\app\Common\res\1_2_2\achievement

::Remove Microsoft fonts
del /F /S /Q %1\%2\app\Common\Media\font\KOR\BOKMSD.ttf
del /F /S /Q %1\%2\app\Common\Media\font\RU\SpaceMace.ttf
del /F /S /Q %1\%2\app\Common\Media\font\JPN\DFGMaruGothic-Md.ttf
del /F /S /Q %1\%2\app\Common\Media\font\CHT\DFHeiMedium-B5.ttf

:: Creating EBOOT.bin
"%SCE_PSP2_SDK_DIR%\host_tools\build\bin\psp2bin" -i ..\PSVita_ContentPackage\Minecraft.Client.self --strip-all -o %1\%2\app\eboot.bin
copy ..\PSVita_ContentPackage\Minecraft.Client.self %1\%2\%2.self

::Move the gp4p file
move /Y %1\%2\app\Minecraft.Client_%2.gp4p %1\%2\Minecraft.Client_%2.gp4p

::End dir
popd

echo Copied Files for %1 Build