update for 10.13

This commit is contained in:
Jeffrey Paul 2017-09-26 07:05:30 -04:00
parent 18e8162664
commit 9468eddf84
1 changed files with 4 additions and 4 deletions

View File

@ -4,16 +4,16 @@
# install the following to /Applications before proceeding: # install the following to /Applications before proceeding:
# * CreateUserPkg # * CreateUserPkg
# * AutoDMG.app # * AutoDMG.app
# * the OSX installer (Install macOS Sierra.app) # * the OSX installer (Install macOS High Sierra.app)
# * Xcode.app # * Xcode.app
# to /Applications before proceeding. # to /Applications before proceeding.
# Put additional big packages (e.g. printer drivers) # Put additional big packages (e.g. printer drivers)
# in ~/Documents/packages.10.12/ before running # in ~/Documents/packages.10.12/ before running
OSX := /Applications/Install macOS Sierra.app OSX := /Applications/Install macOS High Sierra.app
AUTODMG := /Applications/AutoDMG.app/Contents/MacOS/AutoDMG AUTODMG := /Applications/AutoDMG.app/Contents/MacOS/AutoDMG
OUTPUT := $(shell date +%Y%m%d).osx.10.12.adminadmin.dmg OUTPUT := $(shell date +%Y%m%d).osx.$(shell sw_vers -productVersion).adminadmin.dmg
default: $(OUTPUT) default: $(OUTPUT)
@ -31,6 +31,7 @@ $(OUTPUT): prepare custompkg/custom.pkg
--logfile - \ --logfile - \
build \ build \
-n "root" \ -n "root" \
--filesystem apfs \
-u -U \ -u -U \
-o /tmp/output.dmg \ -o /tmp/output.dmg \
"$(OSX)" \ "$(OSX)" \
@ -38,7 +39,6 @@ $(OUTPUT): prepare custompkg/custom.pkg
/Applications/AutoDMG.app \ /Applications/AutoDMG.app \
/Applications/CreateUserPkg.app \ /Applications/CreateUserPkg.app \
"$(OSX)" \ "$(OSX)" \
~/Documents/packages.$(shell sw_vers -productVersion)/*.pkg \
$(PWD)/custompkg/custom.pkg \ $(PWD)/custompkg/custom.pkg \
$(PWD)/pkgs/*.pkg && \ $(PWD)/pkgs/*.pkg && \
cp /tmp/output.dmg $(PWD)/$@ cp /tmp/output.dmg $(PWD)/$@