Mac Packaging Cheatsheet
Create a component pkg from a DMG
pkgbuild --component /Volumes/ApplicationName/*.app --install-location \
/Applications ApplicationName-Version.pkg
pkgbuild --component /Volumes/ApplicationName/*.app --install-location \
/Applications ApplicationName-Version.pkg
sysadminctl is a tool Apple introduced in 10.10 for working with system user accounts. In 10.13, | |
sysadminctl is Apple's recommended tool for working with user accounts in the CLI, replacing functionality | |
that has long been provided by dscl and adds new features available only in 10.13. | |
sysadminctl can be used to change user passwords, create new users (including automatically provisioning | |
the user home folder) or check the status of a new-to-10.13 security feature named SecureToken. | |
SecureToken is a user attribute like password type or user home location. SecureToken is not publicly | |
documented by Apple so it is not possible to provide a full technical description, but in practice one | |
needs only to know if a user has SecureToken or not. Having SecureToken set signifies that a user can | |
unlock a FileVault-encrypted volume. Without the SecureToken bit on a user account, that user will not |
#!/bin/bash | |
clear | |
# This script enables all polices in a specified category | |
# Script is adapted from purgeAllPoliciesInCategory.bash by Jeffrey Compton, https://twitter.com/igeekjsc | |
# https://github.com/igeekjsc/JSSAPIScripts/blob/master/purgeAllPoliciesInCategory.bash | |
#Authenticate | |
read -p "Please enter your JSS URL (e.g. https://myJSS.myCompany.com:8443/) : " jssURL |
#!/bin/bash | |
clear | |
# This script enables all polices in a specified category | |
# Script is adapted from purgeAllPoliciesInCategory.bash by Jeffrey Compton, https://twitter.com/igeekjsc | |
# https://github.com/igeekjsc/JSSAPIScripts/blob/master/purgeAllPoliciesInCategory.bash | |
#Authenticate | |
read -p "Please enter your JSS URL (e.g. https://myJSS.myCompany.com:8443/) : " jssURL |
watchOS 2.2 Simulator: https://devimages.apple.com.edgekey.net/downloads/xcode/simulators/com.apple.pkg.WatchSimulatorSDK2_2-2.2.1.1460407064.dmg | |
watchOS 2.1 Simulator: https://devimages.apple.com.edgekey.net/downloads/xcode/simulators/com.apple.pkg.WatchSimulatorSDK2_1-2.1.1.1451948363.dmg | |
watchOS 2.0 Simulator: https://devimages.apple.com.edgekey.net/downloads/xcode/simulators/com.apple.pkg.WatchSimulatorSDK2_0-2.0.1.1446084258.dmg |
tvOS 10.1 Simulator: https://devimages-cdn.apple.com/downloads/xcode/simulators/com.apple.pkg.AppleTVSimulatorSDK10_1-10.1.1.1484185528.dmg | |
tvOS 10.0 Simulator: https://devimages-cdn.apple.com/downloads/xcode/simulators/com.apple.pkg.AppleTVSimulatorSDK10_0-10.0.1.1474488730.dmg | |
tvOS 9.2 Simulator: https://devimages.apple.com.edgekey.net/downloads/xcode/simulators/com.apple.pkg.AppleTVSimulatorSDK9_2-9.2.1.1460407064.dmg | |
tvOS 9.1 Simulator: https://devimages.apple.com.edgekey.net/downloads/xcode/simulators/com.apple.pkg.AppleTVSimulatorSDK9_1-9.1.1.1451953694.dmg | |
tvOS 9.0 Simulator: https://devimages.apple.com.edgekey.net/downloads/xcode/simulators/com.apple.pkg.AppleTVSimulatorSDK9_0-9.0.1.1446152618.dmg |
iOS 10.2 Simulator: https://devimages-cdn.apple.com/downloads/xcode/simulators/com.apple.pkg.iPhoneSimulatorSDK10_2-10.2.1.1484185528.dmg | |
iOS 10.1 Simulator: https://devimages-cdn.apple.com/downloads/xcode/simulators/com.apple.pkg.iPhoneSimulatorSDK10_1-10.1.1.1476902849.dmg | |
iOS 10.0 Simulator: https://devimages-cdn.apple.com/downloads/xcode/simulators/com.apple.pkg.iPhoneSimulatorSDK10_0-10.0.1.1474488730.dmg | |
iOS 9.3 Simulator: https://devimages.apple.com.edgekey.net/downloads/xcode/simulators/com.apple.pkg.iPhoneSimulatorSDK9_3-9.3.1.1460411551.dmg | |
iOS 9.2 Simulator: https://devimages.apple.com.edgekey.net/downloads/xcode/simulators/com.apple.pkg.iPhoneSimulatorSDK9_2-9.2.1.1451951473.dmg | |
iOS 9.1 Simulator: https://devimages.apple.com.edgekey.net/downloads/xcode/simulators/com.apple.pkg.iPhoneSimulatorSDK9_1-9.1.1.1446593668.dmg | |
iOS 9.0 Simulator: https://devimages.apple.com.edgekey.net/downloads/xcode/simulators/com.apple.pkg.iPhoneSimulatorSDK9_0-9.0.1.1443554484.dmg | |
iOS 8.4 Simulator: https://devimages.a |
For faster connection speed and more flexibility.
/Applications/Xcode.app/Contents/MacOS/Xcode
#!/bin/bash | |
# Resize boot volume to occupy all available space on the partition | |
/usr/sbin/diskutil resizeVolume / R |
#!/bin/bash | |
# Modified 4/5/2019 | |
Version=1.4 | |
# Original source is from MigrateUserHomeToDomainAcct.sh | |
# Written by Patrick Gallagher - https://twitter.com/patgmac | |
# | |
# Guidance and inspiration from Lisa Davies: | |
# http://lisacherie.com/?p=239 | |
# | |
# Modified by Rich Trouton |