Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
50bf6178b9 | ||
|
|
53bdca4fc9 | ||
|
|
005ea19d1c |
@@ -2,9 +2,9 @@ cff-version: 1.2.0
|
||||
message: Please use the following metadata when citing this project in your work.
|
||||
title: macOS
|
||||
abstract: Shell scripts for automated macOS machine setup.
|
||||
version: 18.3.2
|
||||
version: 19.0.0
|
||||
license: Hippocratic-2.1
|
||||
date-released: 2024-09-03
|
||||
date-released: 2024-09-19
|
||||
authors:
|
||||
- family-names: Kuhlmann
|
||||
given-names: Brooke
|
||||
|
||||
22
README.adoc
22
README.adoc
@@ -40,7 +40,7 @@ toc::[]
|
||||
|
||||
== Requirements
|
||||
|
||||
. link:https://www.apple.com/macos/sonoma[macOS Sonoma]
|
||||
. link:https://www.apple.com/macos/macos-sequoia[macOS 15.0.0 (Sequoia)]
|
||||
. link:https://developer.apple.com/xcode[Xcode]
|
||||
|
||||
== Setup
|
||||
@@ -51,7 +51,7 @@ To install, run:
|
||||
----
|
||||
git clone https://github.com/bkuhlmann/mac_os.git
|
||||
cd mac_os
|
||||
git checkout 18.3.2
|
||||
git checkout 19.0.0
|
||||
----
|
||||
|
||||
== Usage
|
||||
@@ -116,23 +116,25 @@ When attempting to create a boot disk via `bin/run B`, you’ll be presented wit
|
||||
documentation (provided here for reference):
|
||||
|
||||
....
|
||||
macOS Boot Disk Tips
|
||||
- Use a USB drive (8GB or higher).
|
||||
- Use Disk Utility to format the USB drive as "Mac OS Extended (Journaled)".
|
||||
- Use Disk Utility to label the USB drive as "Untitled".
|
||||
macOS Boot Disk Setup
|
||||
1. Insert a USB drive (8GB or higher).
|
||||
2. Use Disk Utility to format as "Mac OS Extended (Journaled)".
|
||||
3. Use Disk Utility to set the schema, if available, as "GUID Partition Map".
|
||||
4. Use Disk Utility to label as "Untitled".
|
||||
5. Run this script to install the OS and create a bootable USB drive.
|
||||
|
||||
macOS Boot Disk Usage:
|
||||
1. Insert the USB boot disk into the machine to be upgraded.
|
||||
1. Insert the USB drive, created above, into the machine to be upgraded.
|
||||
2. Reboot the machine.
|
||||
3. Hold the POWER (Silicon) or OPTION (Intel) key before the Apple logo appears.
|
||||
3. Press and hold the POWER key before the Apple logo appears.
|
||||
4. Select the USB boot disk from the menu.
|
||||
5. Use Disk Utility to delete and/or erase the hard drive including associated partitions.
|
||||
6. Use Disk Utility to create a single "APFS" drive as a "GUID Partition Table".
|
||||
6. Use Disk Utility to create a single "APFS" drive.
|
||||
7. Install the new operating system.
|
||||
|
||||
macOS Boot Disk Recovery:
|
||||
1. Start/restart the machine.
|
||||
2. Hold the POWER (Silicon) or COMMAND+R (Intel) keys before the Apple logo appears.
|
||||
2. Press and hold the POWER key before the Apple logo appears.
|
||||
3. Wait for the macOS installer to load from the recovery partition.
|
||||
4. Use the dialog options to launch Disk Utility, reinstall the system, etc.
|
||||
....
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
= Versions
|
||||
|
||||
== 19.0.0 (2024-09-19)
|
||||
|
||||
* 🟢 Added version release notes - Brooke Kuhlmann
|
||||
* 🔼 Updated install root to use XDG binary path - Brooke Kuhlmann
|
||||
* 🔼 Updated to macOS 15.0.0 (Sequoia) - Brooke Kuhlmann
|
||||
|
||||
== 18.3.2 (2024-09-03)
|
||||
|
||||
* 🟢 Added README Developer Certificate of Origin documentation - Brooke Kuhlmann
|
||||
|
||||
@@ -2,14 +2,16 @@
|
||||
|
||||
# Creates macOS boot disk.
|
||||
|
||||
printf "%s\n" "macOS Boot Disk Tips"
|
||||
printf "%s\n" " - Use a USB drive (8GB or higher)."
|
||||
printf "%s\n" " - Use Disk Utility to format the USB drive as \"APSF\"."
|
||||
printf "%s\n" " - Use Disk Utility to label the USB drive as \"Untitled\"."
|
||||
printf "%s\n" "macOS Boot Disk Setup"
|
||||
printf "%s\n" " 1. Insert a USB drive (8GB or higher)."
|
||||
printf "%s\n" " 2. Use Disk Utility to format as \"Mac OS Extended (Journaled)\"."
|
||||
printf "%s\n" " 3. Use Disk Utility to set the schema, if available, as \"GUID Partition Map\"."
|
||||
printf "%s\n" " 4. Use Disk Utility to label as \"Untitled\"."
|
||||
printf "%s\n" " 5. Run this script to install the OS and create a bootable USB drive."
|
||||
printf "\n%s\n" "macOS Boot Disk Usage:"
|
||||
printf "%s\n" " 1. Insert the USB boot disk into the machine to be upgraded."
|
||||
printf "%s\n" " 1. Insert the USB drive, created above, into the machine to be upgraded."
|
||||
printf "%s\n" " 2. Reboot the machine."
|
||||
printf "%s\n" " 3. Press and hold the POWER key before the Apple logssssso appears."
|
||||
printf "%s\n" " 3. Press and hold the POWER key before the Apple logo appears."
|
||||
printf "%s\n" " 4. Select the USB boot disk from the menu."
|
||||
printf "%s\n" " 5. Use Disk Utility to delete and/or erase the hard drive including associated partitions."
|
||||
printf "%s\n" " 6. Use Disk Utility to create a single \"APFS\" drive."
|
||||
|
||||
@@ -216,12 +216,15 @@ export -f install_pkg
|
||||
install_program() {
|
||||
local url="$1"
|
||||
local program_name="$2"
|
||||
local install_root=""
|
||||
local install_path=""
|
||||
|
||||
install_root=$(get_install_root "$program_name")
|
||||
install_path=$(get_install_path "$program_name")
|
||||
|
||||
if [[ ! -e "$install_path" ]]; then
|
||||
download_file "$url" "$program_name"
|
||||
mkdir -p "$install_root"
|
||||
mv "$MAC_OS_WORK_PATH/$program_name" "$install_path"
|
||||
chmod 755 "$install_path"
|
||||
printf "%s\n" "Installed: $program_name."
|
||||
|
||||
@@ -5,7 +5,7 @@ set -o errexit
|
||||
set -o pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
export MAC_OS_BOOT_DISK_CREATOR="/Applications/Install macOS Sonoma.app/Contents/Resources/createinstallmedia"
|
||||
export MAC_OS_BOOT_DISK_CREATOR="/Applications/Install macOS Sequoia.app/Contents/Resources/createinstallmedia"
|
||||
export MAC_OS_BOOT_DISK_PATH="/Volumes/Untitled"
|
||||
export MAC_OS_WORK_PATH=/tmp/downloads
|
||||
export MAC_OS_CONFIG_PATH="../mac_os-config"
|
||||
|
||||
@@ -89,7 +89,7 @@ get_install_root() {
|
||||
|
||||
case $(get_extension "$file_name") in
|
||||
'')
|
||||
printf "/usr/local/bin";;
|
||||
printf "%s" "$HOME/.local/bin";;
|
||||
'app')
|
||||
printf "/Applications";;
|
||||
'prefPane')
|
||||
|
||||
Reference in New Issue
Block a user