2015-09-01 15:00:07 +00:00
#!/bin/sh
2016-08-09 15:07:56 +00:00
RARCH_VERSION = 1.3.6
2015-09-01 15:00:07 +00:00
PLATFORM = $1
2015-09-01 15:31:34 +00:00
SALAMANDER = no
MAKEFILE_GRIFFIN = no
2015-09-01 15:00:07 +00:00
2015-09-01 15:14:14 +00:00
# PSP
2016-02-05 16:03:00 +00:00
if [ $PLATFORM = "unix" ] ; then
platform = unix
2016-02-05 14:13:06 +00:00
SALAMANDER = no
EXT = a
mkdir -p ../pkg/${ platform } /
# For statically linked cores, we need to configure once
cd ..
LDFLAGS = -L. ./configure --disable-dynamic
cd dist-scripts
elif [ $PLATFORM = "psp1" ] ; then
2015-09-01 15:14:14 +00:00
platform = psp1
2015-09-01 15:31:34 +00:00
SALAMANDER = yes
2015-09-02 10:34:05 +00:00
EXT = a
2015-09-01 15:14:14 +00:00
mkdir -p ../pkg/${ platform } /cores/
2015-09-20 13:33:54 +00:00
make -C ../bootstrap/${ platform } /kernel_functions_prx/ clean || exit 1
make -C ../bootstrap/${ platform } /kernel_functions_prx/ || exit 1
2015-09-01 15:14:14 +00:00
cp -f ../kernel_functions.prx ../pkg/${ platform } /kernel_functions.prx
2015-09-01 15:31:34 +00:00
# Vita
elif [ $PLATFORM = "vita" ] ; then
platform = vita
MAKEFILE_GRIFFIN = yes
2015-09-02 10:34:05 +00:00
EXT = a
2016-08-01 22:57:00 +00:00
mkdir -p ../pkg/vita/vpk
2015-09-07 19:01:00 +00:00
# CTR/3DS
elif [ $PLATFORM = "ctr" ] ; then
platform = ctr
EXT = a
2015-09-20 17:12:11 +00:00
mkdir -p ../pkg/3ds/cia
2015-10-17 08:04:44 +00:00
mkdir -p ../pkg/3ds/rom
2015-09-20 17:12:11 +00:00
mkdir -p ../pkg/3ds/3ds
2015-09-07 19:01:00 +00:00
2015-09-02 12:00:36 +00:00
# Emscripten
elif [ $PLATFORM = "emscripten" ] ; then
platform = emscripten
EXT = bc
if [ -z " $EMSCRIPTEN " ] ; then
echo " run this script with emmake. Ex: emmake $0 "
exit 1
fi
2015-09-01 15:41:20 +00:00
# Wii
elif [ $PLATFORM = "wii" ] ; then
platform = wii
MAKEFILE_GRIFFIN = yes
SALAMANDER = yes
2015-09-02 10:34:05 +00:00
EXT = a
2015-09-01 15:41:20 +00:00
# NGC
elif [ $PLATFORM = "ngc" ] ; then
platform = ngc
MAKEFILE_GRIFFIN = yes
2015-09-02 10:34:05 +00:00
EXT = a
2015-09-01 15:41:20 +00:00
2015-09-01 15:14:14 +00:00
# DEX PS3
2015-09-01 15:31:34 +00:00
elif [ $PLATFORM = "dex-ps3" ] ; then
2015-09-01 15:00:07 +00:00
platform = ps3
2015-09-01 15:31:34 +00:00
SALAMANDER = yes
2015-09-02 10:34:05 +00:00
EXT = a
2015-09-01 15:00:07 +00:00
2016-08-11 04:57:22 +00:00
EXE_PATH = ${ CELL_SDK } /host-win32/bin
MAKE_FSELF_NPDRM = ${ EXE_PATH } /make_fself_npdrm.exe
MAKE_PACKAGE_NPDRM = ${ EXE_PATH } /make_package_npdrm.exe
2015-09-01 15:31:34 +00:00
2015-09-01 15:14:14 +00:00
# CEX PS3
2015-09-01 15:31:34 +00:00
elif [ $PLATFORM = "cex-ps3" ] ; then
2016-08-13 11:56:18 +00:00
#For this script to work correctly, you must place scetool.exe and the "data" folder containing your ps3 keys for scetool to use in the dist-scripts folder.
2015-09-01 15:00:07 +00:00
platform = ps3
2015-09-01 15:31:34 +00:00
SALAMANDER = yes
2015-09-02 10:34:05 +00:00
EXT = a
2015-09-01 15:00:07 +00:00
2016-08-11 04:57:22 +00:00
EXE_PATH = ${ CELL_SDK } /host-win32/bin
SCETOOL_PATH = ${ PS3TOOLS_PATH } /scetool/scetool.exe
2016-08-09 16:55:29 +00:00
SCETOOL_FLAGS_CORE = "--sce-type=SELF --compress-data=TRUE --skip-sections=TRUE --key-revision=04 --self-auth-id=1010000001000003 --self-vendor-id=01000002 --self-type=APP --self-app-version=0001000000000000 --self-fw-version=0003004100000000 --encrypt"
SCETOOL_FLAGS_EBOOT = "--sce-type=SELF --compress-data=TRUE --skip-sections=TRUE --key-revision=04 --self-auth-id=1010000001000003 --self-vendor-id=01000002 --self-type=NPDRM --self-fw-version=0003004100000000 --np-license-type=FREE --np-content-id=UP0001-SSNE10000_00-0000000000000001 --np-app-type=EXEC --self-app-version=0001000000000000 --np-real-fname=EBOOT.BIN --encrypt"
2015-09-01 15:31:34 +00:00
2015-09-01 15:14:14 +00:00
# ODE PS3
2015-09-01 15:31:34 +00:00
elif [ $PLATFORM = "ode-ps3" ] ; then
2016-08-13 11:56:18 +00:00
#For this script to work correctly, you must place scetool.exe and the "data" folder containing your ps3 keys for scetool to use in the dist-scripts folder.
2015-09-01 15:07:13 +00:00
platform = ps3
2015-09-01 15:31:34 +00:00
SALAMANDER = yes
2015-09-02 10:34:05 +00:00
EXT = a
2015-09-01 15:07:13 +00:00
2016-08-11 04:57:22 +00:00
EXE_PATH = ${ CELL_SDK } /host-win32/bin
GENPS3ISO_PATH = ${ PS3TOOLS_PATH } /ODE/genps3iso_v2.5
SCETOOL_PATH = ${ PS3TOOLS_PATH } /scetool/scetool.exe
2016-08-09 17:41:55 +00:00
SCETOOL_FLAGS_ODE = "--sce-type=SELF --compress-data=TRUE --self-type=APP --key-revision=04 --self-fw-version=0003004100000000 --self-app-version=0001000000000000 --self-auth-id=1010000001000003 --self-vendor-id=01000002 --self-cap-flags=00000000000000000000000000000000000000000000003b0000000100040000 --encrypt"
2015-09-01 15:07:13 +00:00
fi
2015-09-01 15:00:07 +00:00
2015-09-07 13:17:14 +00:00
# Cleanup Salamander core if it exists
2015-09-01 15:31:34 +00:00
if [ $SALAMANDER = "yes" ] ; then
2015-09-01 15:00:07 +00:00
make -C ../ -f Makefile.${ platform } .salamander clean || exit 1
2015-09-01 15:31:34 +00:00
fi
2016-02-05 14:13:06 +00:00
2015-09-07 13:17:14 +00:00
# Cleanup existing core if it exists
2015-09-01 15:07:13 +00:00
if [ $PLATFORM = "ode-ps3" ] ; then
make -C ../ -f Makefile.${ platform } .cobra clean || exit 1
2015-09-01 15:31:34 +00:00
elif [ $MAKEFILE_GRIFFIN = "yes" ] ; then
make -C ../ -f Makefile.griffin platform = ${ platform } clean || exit 1
2016-02-05 16:03:00 +00:00
elif [ $PLATFORM = "unix" ] ; then
2016-02-05 14:13:06 +00:00
LINK = g++ make -C ../ -f Makefile clean || exit 1
2015-09-01 15:07:13 +00:00
else
make -C ../ -f Makefile.${ platform } clean || exit 1
fi
2015-09-01 15:00:07 +00:00
2015-09-01 15:31:34 +00:00
# Compile Salamander core
if [ $SALAMANDER = "yes" ] ; then
make -C ../ -f Makefile.${ platform } .salamander || exit 1
2015-09-07 13:37:32 +00:00
if [ $PLATFORM = "psp1" ] ; then
mv -f ../EBOOT.PBP ../pkg/${ platform } /EBOOT.PBP
fi
2015-09-28 01:05:11 +00:00
if [ $PLATFORM = "wii" ] ; then
mv -f ../retroarch-salamander_wii.dol ../pkg/${ platform } /boot.dol
fi
2015-09-01 15:31:34 +00:00
fi
2015-09-01 15:00:07 +00:00
2016-08-02 04:28:23 +00:00
COUNTER = 0
2016-08-01 22:57:00 +00:00
2016-08-02 13:14:10 +00:00
#for f in *_${platform}.${EXT} ; do
2016-08-02 13:27:09 +00:00
for f in ` ls -v *_${ platform } .${ EXT } ` ; do
2015-09-02 10:34:05 +00:00
name = ` echo " $f " | sed " s/\(_libretro_ ${ platform } \|\). ${ EXT } $// " `
2015-09-02 12:00:36 +00:00
lto = 0
2015-09-01 15:00:07 +00:00
whole_archive =
2015-09-01 16:27:49 +00:00
big_stack =
2016-09-21 20:10:05 +00:00
async = 0
2016-09-23 16:25:07 +00:00
pthread = 0
2015-09-01 15:00:07 +00:00
if [ $name = "nxengine" ] ; then
echo "Applying whole archive linking..."
whole_archive = "WHOLE_ARCHIVE_LINK=1"
2015-09-01 15:31:34 +00:00
elif [ $name = "tyrquake" ] ; then
2015-09-01 15:00:07 +00:00
echo "Applying big stack..."
2015-09-02 12:00:36 +00:00
lto = 0
2015-09-01 15:00:07 +00:00
big_stack = "BIG_STACK=1"
2016-09-21 20:10:05 +00:00
elif [ $name = "mupen64plus" ] ; then
async = 1
2015-09-01 15:00:07 +00:00
fi
echo " -- Building core: $name -- "
2016-02-05 16:03:00 +00:00
if [ $PLATFORM = "unix" ] ; then
2016-02-05 14:13:06 +00:00
cp -f " $f " ../libretro.${ EXT }
else
cp -f " $f " ../libretro_${ platform } .${ EXT }
fi
2015-09-01 15:14:14 +00:00
2015-09-01 15:31:34 +00:00
# Do cleanup if this is a big stack core
2015-09-07 13:17:14 +00:00
if [ " $big_stack " = "BIG_STACK=1" ] ; then
2015-09-01 15:31:34 +00:00
if [ $MAKEFILE_GRIFFIN = "yes" ] ; then
make -C ../ -f Makefile.griffin platform = ${ platform } clean || exit 1
2015-09-02 12:00:36 +00:00
elif [ $PLATFORM = "emscripten" ] ; then
2016-09-23 16:25:07 +00:00
make -C ../ -f Makefile.emscripten PTHREAD = $pthread ASYNC = $async LTO = $lto -j7 clean || exit 1
2016-02-05 16:38:09 +00:00
elif [ $PLATFORM = "unix" ] ; then
make -C ../ -f Makefile LINK = g++ LTO = $lto -j7 clean || exit 1
2015-09-01 15:31:34 +00:00
else
make -C ../ -f Makefile.${ platform } clean || exit 1
fi
2015-09-01 15:14:14 +00:00
fi
2015-09-01 15:31:34 +00:00
# Compile core
2016-08-09 17:47:29 +00:00
if [ $MAKEFILE_GRIFFIN = "yes" ] ; then
2015-09-01 15:31:34 +00:00
make -C ../ -f Makefile.griffin platform = ${ platform } $whole_archive $big_stack -j3 || exit 1
2015-09-02 12:00:36 +00:00
elif [ $PLATFORM = "emscripten" ] ; then
2016-09-23 16:25:07 +00:00
make -C ../ -f Makefile.emscripten PTHREAD = $pthread ASYNC = $async LTO = $lto -j7 TARGET = ${ name } _libretro.js || exit 1
2016-02-05 16:03:00 +00:00
elif [ $PLATFORM = "unix" ] ; then
2016-02-05 14:13:06 +00:00
make -C ../ -f Makefile LINK = g++ $whole_archive $big_stack -j3 || exit 1
2015-09-11 21:07:12 +00:00
elif [ $PLATFORM = "ctr" ] ; then
make -C ../ -f Makefile.${ platform } LIBRETRO = $name $whole_archive $big_stack -j3 || exit 1
2015-09-01 15:07:13 +00:00
else
make -C ../ -f Makefile.${ platform } $whole_archive $big_stack -j3 || exit 1
fi
2015-09-01 15:00:07 +00:00
2015-09-07 13:17:14 +00:00
# Do manual executable step
2015-09-01 15:00:07 +00:00
if [ $PLATFORM = "dex-ps3" ] ; then
2016-07-23 10:05:02 +00:00
$MAKE_FSELF_NPDRM -c ../retroarch_${ platform } .elf ../CORE.SELF
2015-09-01 15:31:34 +00:00
elif [ $PLATFORM = "cex-ps3" ] ; then
2016-08-09 15:22:45 +00:00
$SCETOOL_PATH $SCETOOL_FLAGS_CORE ../retroarch_${ platform } .elf ../CORE.SELF
2015-09-01 15:31:34 +00:00
elif [ $PLATFORM = "ode-ps3" ] ; then
2016-08-09 18:01:01 +00:00
$SCETOOL_PATH $SCETOOL_FLAGS_ODE ../retroarch_${ platform } .elf ../CORE.SELF
2015-09-01 15:07:13 +00:00
fi
2015-09-01 15:00:07 +00:00
2015-09-01 15:31:34 +00:00
# Move executable files
2015-09-01 15:00:07 +00:00
if [ $platform = "ps3" ] ; then
2015-09-01 15:07:13 +00:00
if [ $PLATFORM = "ode-ps3" ] ; then
2016-08-10 05:00:16 +00:00
mv -fv ../CORE.SELF ../pkg/${ platform } _iso/PS3_GAME/USRDIR/cores/" ${ name } _libretro_ ${ platform } .SELF "
2016-08-10 00:05:38 +00:00
if [ -d ../../dist/info ] ; then
mkdir -p ../pkg/${ platform } _iso/PS3_GAME/USRDIR/cores/info
2016-08-10 05:00:16 +00:00
cp -fv ../../dist/info/" ${ name } _libretro.info " ../pkg/${ platform } _iso/PS3_GAME/USRDIR/cores/info/" ${ name } _libretro.info "
2016-08-10 00:05:38 +00:00
fi
2015-09-01 16:27:49 +00:00
else
2016-08-13 12:20:49 +00:00
mv -fv ../CORE.SELF ../pkg/${ platform } /SSNE10000/USRDIR/cores/" ${ name } _libretro_ ${ platform } .SELF "
2016-08-10 00:05:38 +00:00
if [ -d ../../dist/info ] ; then
2016-08-13 12:20:49 +00:00
mkdir -p ../pkg/${ platform } /SSNE10000/USRDIR/cores/info
cp -fv ../../dist/info/" ${ name } _libretro.info " ../pkg/${ platform } /SSNE10000/USRDIR/cores/info/" ${ name } _libretro.info "
2016-08-10 00:05:38 +00:00
fi
2015-09-01 15:07:13 +00:00
fi
2015-09-01 15:31:34 +00:00
elif [ $PLATFORM = "psp1" ] ; then
mv -f ../EBOOT.PBP ../pkg/${ platform } /cores/${ name } _libretro.PBP
elif [ $PLATFORM = "vita" ] ; then
2016-08-02 04:28:23 +00:00
COUNTER = $(( COUNTER + 1 ))
2016-08-02 23:45:41 +00:00
COUNTER_ID = ` printf "%05d" ${ COUNTER } `
2016-08-02 00:21:43 +00:00
mkdir -p ../pkg/${ platform } /${ name } _libretro.vpk/vpk/sce_sys/
2016-08-11 17:09:22 +00:00
mkdir -p ../pkg/${ platform } /${ name } _libretro.vpk/vpk/sce_sys/livearea
mkdir -p ../pkg/${ platform } /${ name } _libretro.vpk/vpk/sce_sys/livearea/contents
2016-09-06 00:50:15 +00:00
vita-make-fself -s ../retroarch_${ platform } .velf ../pkg/${ platform } /${ name } _libretro.vpk/vpk/eboot.bin
2016-08-02 22:21:55 +00:00
vita-mksfoex -s TITLE_ID = RETR${ COUNTER_ID } " RetroArch ${ name } " ../pkg/${ platform } /${ name } _libretro.vpk/vpk/sce_sys/param.sfo
cp ../pkg/${ platform } /assets/ICON0.PNG ../pkg/${ platform } /${ name } _libretro.vpk/vpk/sce_sys/icon0.png
2016-08-11 17:09:22 +00:00
cp ../pkg/${ platform } /assets/livearea/contents/bg.png ../pkg/${ platform } /${ name } _libretro.vpk/vpk/sce_sys/livearea/contents/bg.png
cp ../pkg/${ platform } /assets/livearea/contents/startup.png ../pkg/${ platform } /${ name } _libretro.vpk/vpk/sce_sys/livearea/contents/startup.png
cp ../pkg/${ platform } /assets/livearea/contents/website.png ../pkg/${ platform } /${ name } _libretro.vpk/vpk/sce_sys/livearea/contents/website.png
cp ../pkg/${ platform } /assets/livearea/contents/template.xml ../pkg/${ platform } /${ name } _libretro.vpk/vpk/sce_sys/livearea/contents/template.xml
2016-08-24 11:45:40 +00:00
mkdir -p ../pkg/${ platform } /${ name } _libretro.vpk/vpk/assets
if [ -d ../media/assets/glui ] ; then
cp -r ../media/assets/glui ../pkg/${ platform } /${ name } _libretro.vpk/vpk/assets
fi
if [ -d ../media/assets/xmb ] ; then
cp -r ../media/assets/xmb ../pkg/${ platform } /${ name } _libretro.vpk/vpk/assets
2016-08-24 15:03:22 +00:00
# Strip source SVG files
rm -rf ../pkg/${ platform } /${ name } _libretro.vpk/vpk/assets/xmb/flatui/src
rm -rf ../pkg/${ platform } /${ name } _libretro.vpk/vpk/assets/xmb/monochrome/src
rm -rf ../pkg/${ platform } /${ name } _libretro.vpk/vpk/assets/xmb/retroactive/src
rm -rf ../pkg/${ platform } /${ name } _libretro.vpk/vpk/assets/xmb/retroactive_marked/src
2016-08-24 11:45:40 +00:00
fi
2015-09-07 19:01:00 +00:00
elif [ $PLATFORM = "ctr" ] ; then
2015-09-11 21:07:12 +00:00
mv -f ../retroarch_3ds.cia ../pkg/3ds/cia/${ name } _libretro.cia
2015-10-17 08:04:44 +00:00
mv -f ../retroarch_3ds.3ds ../pkg/3ds/rom/${ name } _libretro.3ds
mkdir -p ../pkg/3ds/3ds/${ name } _libretro
mv -f ../retroarch_3ds.3dsx ../pkg/3ds/3ds/${ name } _libretro/${ name } _libretro.3dsx
mv -f ../retroarch_3ds.smdh ../pkg/3ds/3ds/${ name } _libretro/${ name } _libretro.smdh
2015-11-08 12:18:34 +00:00
mv -f ../retroarch_3ds.xml ../pkg/3ds/3ds/${ name } _libretro/${ name } _libretro.xml
2016-02-05 16:03:00 +00:00
elif [ $PLATFORM = "unix" ] ; then
mv -f ../retroarch ../pkg/${ platform } /${ name } _libretro.elf
2015-09-01 15:41:20 +00:00
elif [ $PLATFORM = "ngc" ] ; then
mv -f ../retroarch_${ platform } .dol ../pkg/${ platform } /${ name } _libretro_${ platform } .dol
elif [ $PLATFORM = "wii" ] ; then
mv -f ../retroarch_${ platform } .dol ../pkg/${ platform } /${ name } _libretro_${ platform } .dol
2015-09-02 12:00:36 +00:00
elif [ $PLATFORM = "emscripten" ] ; then
2016-08-29 00:14:42 +00:00
mkdir -p ../pkg/emscripten/
mv -f ../${ name } _libretro.js ../pkg/emscripten/${ name } _libretro.js
mv -f ../${ name } _libretro.js.mem ../pkg/emscripten/${ name } _libretro.js.mem
2016-09-23 16:25:07 +00:00
if [ $pthread != 0 ] ; then
mv -f ../pthread-main.js ../pkg/emscripten/pthread-main.js
fi
2015-09-01 15:31:34 +00:00
fi
# Remove executable files
if [ $platform = "ps3" ] ; then
2015-09-01 15:00:07 +00:00
rm -f ../retroarch_${ platform } .elf ../retroarch_${ platform } .self ../CORE.SELF
2015-09-01 15:31:34 +00:00
elif [ $PLATFORM = "psp1" ] ; then
rm -f ../retroarchpsp.elf
elif [ $PLATFORM = "vita" ] ; then
2016-08-01 22:57:00 +00:00
rm -f ../retroarch_${ platform } .velf ../retroarch_${ platform } .elf ../eboot.bin
2015-09-07 19:01:00 +00:00
elif [ $PLATFORM = "ctr" ] ; then
2015-10-06 17:55:10 +00:00
rm -f ../retroarch_3ds.elf
2015-09-11 21:07:12 +00:00
rm -f ../retroarch_3ds.bnr
rm -f ../retroarch_3ds.icn
2016-02-05 16:03:00 +00:00
elif [ $PLATFORM = "unix" ] ; then
2016-02-05 14:13:06 +00:00
rm -f ../retroarch
2015-09-01 15:41:20 +00:00
elif [ $PLATFORM = "ngc" ] ; then
rm -f ../retroarch_${ platform } .dol ../retroarch_${ platform } .elf ../retroarch_${ platform } .elf.map
elif [ $PLATFORM = "wii" ] ; then
rm -f ../retroarch_${ platform } .dol ../retroarch_${ platform } .elf ../retroarch_${ platform } .elf.map
2015-09-02 12:00:36 +00:00
elif [ $platform = "emscripten" ] ; then
2016-08-29 00:14:42 +00:00
rm -f ../${ name } _libretro.js
2015-09-01 15:00:07 +00:00
fi
2015-09-01 15:14:14 +00:00
2015-09-01 15:31:34 +00:00
# Do cleanup if this is a big stack core
2015-09-07 13:17:14 +00:00
if [ " $big_stack " = "BIG_STACK=1" ] ; then
2015-09-01 15:31:34 +00:00
if [ $MAKEFILE_GRIFFIN = "yes" ] ; then
make -C ../ -f Makefile.griffin platform = ${ platform } clean || exit 1
2015-09-02 12:00:36 +00:00
elif [ $PLATFORM = "emscripten" ] ; then
2016-09-23 16:25:07 +00:00
make -C ../ -f Makefile.emscripten PTHREAD = $pthread ASYNC = $async LTO = $lto -j7 clean || exit 1
2016-02-05 16:03:00 +00:00
elif [ $PLATFORM = "unix" ] ; then
2016-02-05 14:13:06 +00:00
make -C ../ -f Makefile LTO = $lto -j7 clean || exit 1
2015-09-01 15:31:34 +00:00
else
make -C ../ -f Makefile.${ platform } clean || exit 1
fi
2015-09-01 15:14:14 +00:00
fi
2015-09-01 15:00:07 +00:00
done
2015-09-01 15:31:34 +00:00
# Additional build step
2016-08-09 18:37:07 +00:00
if [ $platform = "ps3" ] ; then
if [ $PLATFORM = "ode-ps3" ] ; then
echo Deploy : Assets...
2016-08-10 00:05:38 +00:00
if [ -d ../media/assets ] ; then
mkdir -p ../pkg/${ platform } _iso/PS3_GAME/USRDIR/cores/assets
cp -r ../media/assets/* ../pkg/${ platform } _iso/PS3_GAME/USRDIR/cores/assets
fi
2016-08-10 00:17:55 +00:00
echo Deploy : Databases...
2016-08-10 00:05:38 +00:00
if [ -d ../media/libretrodb/rdb ] ; then
mkdir -p ../pkg/${ platform } _iso/PS3_GAME/USRDIR/cores/database/rdb
cp -r ../media/libretrodb/rdb/* ../pkg/${ platform } _iso/PS3_GAME/USRDIR/cores/database/rdb
2016-08-10 05:40:21 +00:00
fi
if [ -d ../media/libretrodb/cursors ] ; then
mkdir -p ../pkg/${ platform } _iso/PS3_GAME/USRDIR/cores/database/cursors
cp -r ../media/libretrodb/cursors/* ../pkg/${ platform } _iso/PS3_GAME/USRDIR/cores/database/cursors
2016-08-10 00:05:38 +00:00
fi
2016-08-10 00:17:55 +00:00
echo Deploy : Overlays...
2016-08-10 00:05:38 +00:00
if [ -d ../media/overlays ] ; then
mkdir -p ../pkg/${ platform } _iso/PS3_GAME/USRDIR/cores/overlays
cp -r ../media/overlays/* ../pkg/${ platform } _iso/PS3_GAME/USRDIR/cores/overlays
fi
2016-08-10 00:17:55 +00:00
echo Deploy : Shaders...
2016-08-10 00:05:38 +00:00
if [ -d ../media/shaders_cg ] ; then
mkdir -p ../pkg/${ platform } _iso/PS3_GAME/USRDIR/cores/shaders_cg
cp -r ../media/shaders_cg/* ../pkg/${ platform } _iso/PS3_GAME/USRDIR/cores/shaders_cg
fi
2016-08-09 18:37:07 +00:00
else
echo Deploy : Assets...
2016-08-10 00:05:38 +00:00
if [ -d ../media/assets ] ; then
2016-08-13 12:20:49 +00:00
mkdir -p ../pkg/${ platform } /SSNE10000/USRDIR/cores/assets
cp -r ../media/assets/* ../pkg/${ platform } /SSNE10000/USRDIR/cores/assets
2016-08-10 00:05:38 +00:00
fi
2016-08-09 18:37:07 +00:00
echo Deploy : Databases...
2016-08-10 00:05:38 +00:00
if [ -d ../media/libretrodb/rdb ] ; then
2016-08-13 12:20:49 +00:00
mkdir -p ../pkg/${ platform } /SSNE10000/USRDIR/cores/database/rdb
cp -r ../media/libretrodb/rdb/* ../pkg/${ platform } /SSNE10000/USRDIR/cores/database/rdb
2016-08-10 05:40:21 +00:00
fi
if [ -d ../media/libretrodb/cursors ] ; then
2016-08-13 12:20:49 +00:00
mkdir -p ../pkg/${ platform } /SSNE10000/USRDIR/cores/database/cursors
cp -r ../media/libretrodb/cursors/* ../pkg/${ platform } /SSNE10000/USRDIR/cores/database/cursors
2016-08-10 00:05:38 +00:00
fi
2016-08-09 18:37:07 +00:00
echo Deploy : Overlays...
2016-08-10 00:05:38 +00:00
if [ -d ../media/overlays ] ; then
2016-08-13 12:20:49 +00:00
mkdir -p ../pkg/${ platform } /SSNE10000/USRDIR/cores/overlays
cp -r ../media/overlays/* ../pkg/${ platform } /SSNE10000/USRDIR/cores/overlays
2016-08-10 00:05:38 +00:00
fi
2016-08-09 18:37:07 +00:00
echo Deploy : Shaders...
2016-08-10 00:05:38 +00:00
if [ -d ../media/shaders_cg ] ; then
2016-08-13 12:20:49 +00:00
mkdir -p ../pkg/${ platform } /SSNE10000/USRDIR/cores/shaders_cg
cp -r ../media/shaders_cg/* ../pkg/${ platform } /SSNE10000/USRDIR/cores/shaders_cg
2016-08-10 00:05:38 +00:00
fi
2016-08-10 00:17:55 +00:00
fi
2015-09-01 15:00:07 +00:00
fi
2015-09-01 15:31:34 +00:00
# Packaging
2015-09-01 15:00:07 +00:00
if [ $PLATFORM = "dex-ps3" ] ; then
2016-08-13 12:20:49 +00:00
$MAKE_FSELF_NPDRM -c ../retroarch-salamander_${ platform } .elf ../pkg/${ platform } /SSNE10000/USRDIR/EBOOT.BIN
2015-09-01 15:00:07 +00:00
rm -rf ../retroarch-salamander_${ platform } .elf
2016-08-13 12:20:49 +00:00
$MAKE_PACKAGE_NPDRM ../pkg/${ platform } _dex/package.conf ../pkg/${ platform } /SSNE10000
2016-08-11 19:13:55 +00:00
mv UP0001-SSNE10000_00-0000000000000001.pkg ../pkg/${ platform } /RetroArch.PS3.DEX.PS3.pkg
2015-09-01 15:31:34 +00:00
elif [ $PLATFORM = "cex-ps3" ] ; then
2016-08-13 12:20:49 +00:00
$SCETOOL_PATH $SCETOOL_FLAGS_EBOOT ../retroarch-salamander_${ platform } .elf ../pkg/${ platform } /SSNE10000/USRDIR/EBOOT.BIN
2015-09-01 15:00:07 +00:00
rm -rf ../retroarch-salamander_${ platform } .elf
2016-08-13 11:52:35 +00:00
../tools/ps3/ps3py/pkg.py --contentid UP0001-SSNE10000_00-0000000000000001 ../pkg/${ platform } /SSNE10000/ ../pkg/${ platform } /RetroArch.PS3.CEX.PS3.pkg
2015-09-01 15:31:34 +00:00
elif [ $PLATFORM = "ode-ps3" ] ; then
2016-08-09 18:01:01 +00:00
$SCETOOL_PATH $SCETOOL_FLAGS_ODE ../retroarch-salamander_${ platform } .elf ../pkg/${ platform } _iso/PS3_GAME/USRDIR/EBOOT.BIN
2015-09-01 15:07:13 +00:00
rm -rf ../retroarch-salamander_${ platform } .elf
2016-08-11 19:13:55 +00:00
$GENPS3ISO_PATH ../pkg/${ platform } _iso ../pkg/${ platform } /RetroArch.PS3.ODE.PS3.iso
2015-09-01 15:07:13 +00:00
fi