Install fbterm via your favorite package manager
pacman -S fbterm| git branch -m old_branch new_branch # Rename branch locally | |
| git push origin :old_branch # Delete the old branch | |
| git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
| struct Platform | |
| { | |
| static let isSimulator: Bool = { | |
| var isSim = false | |
| #if arch(i386) || arch(x86_64) | |
| isSim = true | |
| #endif | |
| return isSim | |
| }() | |
| } |
| #!/bin/sh | |
| UNIVERSAL_OUTPUTFOLDER=${BUILD_DIR}/${CONFIGURATION}-universal | |
| # make sure the output directory exists | |
| mkdir -p "${UNIVERSAL_OUTPUTFOLDER}" | |
| # Step 1. Build Device and Simulator versions | |
| xcodebuild -target "${PROJECT_NAME}" ONLY_ACTIVE_ARCH=NO -configuration ${CONFIGURATION} -sdk iphoneos BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}" clean build | |
| xcodebuild -target "${PROJECT_NAME}" -configuration ${CONFIGURATION} -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}" clean build |
Download, but don't run, the Sierra installer from the Mac App Store. This places the installer at
/Applications/Install\ macOS\ Sierra.app/.
Now run the following commands to build a suitable VM image from the installer:
git clone https://github.com/jonanh/osx-vm-templates
cd osx-vm-templates/packer
sudo ../prepare_iso/prepare_vdi.sh -D DISABLE_REMOTE_MANAGEMENT -o macOS_10.12.vdi /Applications/Install\ macOS\ Sierra.app/ .
| import UIKit | |
| public extension CGSize { | |
| func snapped(scale: CGFloat) -> CGSize { | |
| var size = self | |
| size.width = ceil(size.width * scale) / scale | |
| size.height = ceil(size.height * scale) / scale | |
| return size | |
| } |
Note: This is an update of Will Haley's excellent post to use APFS instead of CoreStorage.
The script can't read the file containing the password on the USB thumb drive. When formatted
as FAT32 as described below, the user/group of the file is unknown/unknown. But I also tried formatting the USB thumb drive in HFS+, unchecking "Ignore permissions on this volume" and changing the file owner to root:wheel. The file is still not readable to the boot process. Probably something to do with new security restrictions in Catalina. A script running as root reading data from a thumb drive? Makes sense.
| { | |
| "65536": [ | |
| "alphashift" | |
| ], | |
| "131072": [ | |
| "shift" | |
| ], | |
| "196608": [ | |
| "alphashift", | |
| "shift" |