forked from LongQT-sea/OpenCore-ISO
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMake_ISO.command
More file actions
executable file
·43 lines (38 loc) · 945 Bytes
/
Make_ISO.command
File metadata and controls
executable file
·43 lines (38 loc) · 945 Bytes
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
#!/usr/bin/env bash
ISO_FILE_NAME=LongQT-OpenCore-v0.5.iso
VOL_NAME=LongQT-OpenCore
SOURCE_DIR=./
BOOT_IMG=BOOT.img
cd "$(dirname "$0")"
# Cleanup
find ${SOURCE_DIR} \
\( \
-name ".DS_Store" \
-o -name "._*" \
-o -name ".Spotlight-V100" \
-o -name ".Trashes" \
-o -name ".fseventsd" \
-o -name ".DocumentRevisions-V100" \
-o -name ".TemporaryItems" \
-o -name "__MACOSX" \
\) \
-exec rm -rf {} +
if ! command -v xorriso >/dev/null 2>&1; then
echo "xorriso not found. Please install it with: brew install xorriso"
exit 1
fi
xorriso -rockridge off -as mkisofs \
-iso-level 3 \
-V "${VOL_NAME}" \
-J -joliet-long\
-e "${BOOT_IMG}" \
-no-emul-boot \
--boot-catalog-hide \
-m ".git*" \
-m "README.md" \
-m "Make_ISO*" \
-m "LICENSE*" \
-m "cpu-models.conf" \
-m "Create_Recovery_ISO*" \
-output ~/Desktop/${ISO_FILE_NAME} \
${SOURCE_DIR}