-
Notifications
You must be signed in to change notification settings - Fork 41
/
easy-compile-docker-devkitpro
executable file
·40 lines (34 loc) · 1.22 KB
/
easy-compile-docker-devkitpro
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
#!/bin/bash -e
# Build bins for GC, WII, WIIU and/or SWITCH
PPC_IMAGE=paintown-dkp-ppc-build
ARM_IMAGE=paintown-dkp-arm-build
A64_IMAGE=paintown-dkp-a64-build
BUILD_DIR=/build
GAMECUBE_BUILD_DIR=${BUILD_DIR}/build-gamecube
WII_BUILD_DIR=${BUILD_DIR}/build-wii
WIIU_BUILD_DIR=${BUILD_DIR}/build-wiiu
DS_BUILD_DIR=${BUILD_DIR}/build-3ds
SWITCH_BUILD_DIR=${BUILD_DIR}/build-switch
mkdir -p ${PWD}/dkp-bin
echo "Building GameCube, WII and WII-U..."
docker build -t ${PPC_IMAGE} -f docker/Dockerfile.dkp.ppc .
docker run --rm -iv${PWD}:/paintown-bin ${PPC_IMAGE} sh -s <<EOF
chown $(id -u):$(id -g) ${BUILD_DIR}/*.dol
cp -a ${BUILD_DIR}/*.dol /paintown-bin/dkp-bin
EOF
################## NO SDL2 libs #########################
#echo "Building 3DS..."
#docker build -t ${ARM_IMAGE} -f docker/Dockerfile.dkp.arm .
#docker run --rm -iv${PWD}:/paintown-bin ${ARM_IMAGE} sh -s <<EOF
#chown $(id -u):$(id -g) ${BUILD_DIR}/*.dol
#cp -a ${BUILD_DIR}/*.dol /paintown-bin/dkp-bin
#EOF
echo "Building Switch..."
docker build -t ${A64_IMAGE} -f docker/Dockerfile.dkp.a64 .
docker run --rm -iv${PWD}:/paintown-bin ${A64_IMAGE} sh -s <<EOF
chown $(id -u):$(id -g) ${BUILD_DIR}/*.nro
cp -a ${BUILD_DIR}/*.nro /paintown-bin/dkp-bin
EOF
echo "
Builds Complete.
"