forked from fgsfdsfgs/sm64-port
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathisobuild.sh
40 lines (29 loc) · 857 Bytes
/
isobuild.sh
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
#This will build isos, WIP.
mkdir sm64iso
cp build/*_ps2/*.elf sm64iso/'SLUS_064.64'
# if ntsc, copy ntsc system.cnf
#if pal, copy pal system.cnf
echo -n "What is the rom region $Region ? Options: NTSC, PAL. "
read Region
case $Region in
NTSC)
echo -n "Executing for NTSC"
cp isoneeds/ntsc/*.CNF sm64iso
;;
PAL)
echo -n "Executing for PAL"
cp isoneeds/pal/*.CNF sm64iso
;;
#JP")
# echo -n "Executing for JP-NTSC"
# #cp isoneeds/jp/*.cnf sm64iso
# ;;
*)
echo -n "unknown"
echo -n "Invalid options entered, correct options are: NTSC, PAL"
;;
esac
echo -n "The following command will error out if you don't have mkisofs. We will try to install it. Install it manually if you face errors."
sudo apt-get update && sudo apt-get install mkisofs
sudo pacman -S cdrkit
mkisofs -o sm64.iso sm64iso