Add live-macOS updates from 2020-01-30
This commit is contained in:
parent
1b7c248102
commit
7a9d62cdd1
7 changed files with 125 additions and 0 deletions
BIN
.DS_Store
vendored
Normal file
BIN
.DS_Store
vendored
Normal file
Binary file not shown.
BIN
images/.DS_Store
vendored
Normal file
BIN
images/.DS_Store
vendored
Normal file
Binary file not shown.
BIN
images/macOS.png
Normal file
BIN
images/macOS.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 66 KiB |
69
setup/macos-live/Utilities.plist
Normal file
69
setup/macos-live/Utilities.plist
Normal file
|
|
@ -0,0 +1,69 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>Buttons</key>
|
||||||
|
<array>
|
||||||
|
<dict>
|
||||||
|
<key>BundlePath</key>
|
||||||
|
<string>/Applications/iTerm.app</string>
|
||||||
|
<key>DescriptionKey</key>
|
||||||
|
<string>Hardware Diagnostics</string>
|
||||||
|
<key>Path</key>
|
||||||
|
<string>/Applications/iTerm.app/Contents/MacOS/iTerm2</string>
|
||||||
|
<key>TitleKey</key>
|
||||||
|
<string>WizardKit: Hardware Diagnostics</string>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>BundlePath</key>
|
||||||
|
<string>/Applications/Utilities/Disk Utility.app</string>
|
||||||
|
<key>DescriptionKey</key>
|
||||||
|
<string>Repair or erase a volume.</string>
|
||||||
|
<key>Path</key>
|
||||||
|
<string>/Applications/Utilities/Disk Utility.app/Contents/MacOS/Disk Utility</string>
|
||||||
|
<key>TitleKey</key>
|
||||||
|
<string>Disk Utility</string>
|
||||||
|
</dict>
|
||||||
|
</array>
|
||||||
|
<key>Menu</key>
|
||||||
|
<array>
|
||||||
|
<dict>
|
||||||
|
<key>BundlePath</key>
|
||||||
|
<string>/Applications/Utilities/Firmware Password Utility.app</string>
|
||||||
|
<key>Path</key>
|
||||||
|
<string>/Applications/Utilities/Firmware Password Utility.app/Contents/MacOS/Firmware Password Utility</string>
|
||||||
|
<key>TitleKey</key>
|
||||||
|
<string>Firmware Password Utility</string>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>BundlePath</key>
|
||||||
|
<string>/System/Library/CoreServices/Applications/Network Utility.app</string>
|
||||||
|
<key>Path</key>
|
||||||
|
<string>/System/Library/CoreServices/Applications/Network Utility.app/Contents/MacOS/Network Utility</string>
|
||||||
|
<key>TitleKey</key>
|
||||||
|
<string>Network Utility</string>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>BundlePath</key>
|
||||||
|
<string>/System/Library/CoreServices/Applications/RAID Utility.app</string>
|
||||||
|
<key>Path</key>
|
||||||
|
<string>/System/Library/CoreServices/Applications/RAID Utility.app/Contents/MacOS/RAID Utility</string>
|
||||||
|
<key>Show If</key>
|
||||||
|
<dict>
|
||||||
|
<key>Selector</key>
|
||||||
|
<string>shouldShowRAIDUtility</string>
|
||||||
|
</dict>
|
||||||
|
<key>TitleKey</key>
|
||||||
|
<string>RAID Utility</string>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>BundlePath</key>
|
||||||
|
<string>/Applications/Utilities/Terminal.app</string>
|
||||||
|
<key>Path</key>
|
||||||
|
<string>/Applications/Utilities/Terminal.app/Contents/MacOS/Terminal</string>
|
||||||
|
<key>TitleKey</key>
|
||||||
|
<string>Terminal</string>
|
||||||
|
</dict>
|
||||||
|
</array>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
BIN
setup/macos-live/com.googlecode.iterm2.plist
Normal file
BIN
setup/macos-live/com.googlecode.iterm2.plist
Normal file
Binary file not shown.
16
setup/macos-live/live-macos-startup
Executable file
16
setup/macos-live/live-macos-startup
Executable file
|
|
@ -0,0 +1,16 @@
|
||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
## Init macOS env
|
||||||
|
|
||||||
|
# Set Locale
|
||||||
|
LC_ALL=en_US.UTF-8; export LC_ALL
|
||||||
|
LANG=en_US.UTF-8; export LANG
|
||||||
|
|
||||||
|
# Set PATH
|
||||||
|
for p in /usr{/local/opt/{e2fsprogs,ruby,util-linux},/local,}/{bin,sbin}; do
|
||||||
|
PATH="${p}:${PATH}"
|
||||||
|
done
|
||||||
|
export PATH
|
||||||
|
|
||||||
|
# Run cmd
|
||||||
|
"$1"
|
||||||
40
setup/macos-live/update-base-image
Executable file
40
setup/macos-live/update-base-image
Executable file
|
|
@ -0,0 +1,40 @@
|
||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
## Update BaseImage for use as WK
|
||||||
|
|
||||||
|
set -o errexit
|
||||||
|
set -o errtrace
|
||||||
|
set -o nounset
|
||||||
|
set -o pipefail
|
||||||
|
|
||||||
|
WK_DEV="$1"
|
||||||
|
|
||||||
|
# BaseSystem
|
||||||
|
rm -Rv "${WK_DEV}"/Install*.app
|
||||||
|
cp -av Utilities.plist "${WK_DEV}/System/Installation/CDIS/OS X Utilities.app/Contents/Resources/Utilities.plist"
|
||||||
|
|
||||||
|
# Homebrew
|
||||||
|
ln -s python3 "${WK_DEV}"/usr/local/bin/python
|
||||||
|
rsync -ahvPS /opt/ "${WK_DEV}"/opt/
|
||||||
|
rsync -ahvPS /usr/local/{Cellar,Frameworks,Homebrew,bin,etc,include,lib,libexec,opt,sbin,share,var} "${WK_DEV}"/usr/local/
|
||||||
|
|
||||||
|
# Fonts
|
||||||
|
cp -av /Library/Fonts/Inconsolata*ttf "${WK_DEV}"/System/Library/Fonts/
|
||||||
|
|
||||||
|
# iTerm2
|
||||||
|
cp -av ../linux/include/airootfs/etc/skel/.tmux.conf "${WK_DEV}"/etc/tmux.conf
|
||||||
|
rsync -ahvPS /Applications/iTerm.app "${WK_DEV}"/Applications/
|
||||||
|
rsync -ahvPS /System/Library/Colors/System.clr "${WK_DEV}"/System/Library/Colors/
|
||||||
|
rsync -ahvPS /System/Library/Frameworks/{Scripting,ScriptingBridge,LocalAuthentication}.framework "${WK_DEV}"/System/Library/Frameworks/
|
||||||
|
rsync -ahvPS /usr/bin/locale "${WK_DEV}"/usr/bin/
|
||||||
|
rsync -ahvLPS /usr/share/locale/en_US.UTF-8 "${WK_DEV}"/usr/share/locale/
|
||||||
|
rsync -ahvPS com.googlecode.iterm2.plist "${WK_DEV}"/var/root/Library/Preferences/
|
||||||
|
|
||||||
|
# pipes-sh
|
||||||
|
cp -av /usr/bin/tput "${WK_DEV}"/usr/bin/
|
||||||
|
|
||||||
|
# WizardKit
|
||||||
|
touch "${WK_DEV}"/.wk-live-macos
|
||||||
|
cp -av ../../images/macOS.png "${WK_DEV}"/usr/local/wallpaper.png
|
||||||
|
rsync -ahvPS /usr/bin/{env,killall} "${WK_DEV}"/usr/bin/
|
||||||
|
rsync -ahvPS live-macos-startup ../../scripts/ "${WK_DEV}"/usr/local/bin/
|
||||||
Loading…
Reference in a new issue