osxprivacy/Makefile

56 lines
1.3 KiB
Makefile
Raw Permalink Normal View History

2016-02-23 20:12:32 +00:00
AUTODMG := /Applications/AutoDMG.app/Contents/MacOS/AutoDMG
default: output.dmg
2016-03-08 10:59:50 +00:00
.PHONY: prepare
2016-02-23 20:12:32 +00:00
packages:
cd osx-privacy-pkg && make
clean:
rm -f osx-privacy-pkg/*.pkg output.dmg
2016-03-08 10:59:50 +00:00
prepare:
sudo xcodebuild -license accept
sudo pmset -a sleep 180
sudo pmset -a displaysleep 180
2016-02-23 20:12:32 +00:00
$(AUTODMG) update
2016-03-08 10:59:50 +00:00
output.dmg: packages prepare
-$(AUTODMG) \
2016-02-23 20:12:32 +00:00
--log-level 7 \
--logfile - \
build \
-n "root" \
-u -U \
-o /tmp/output.dmg \
"/Applications/Install OS X El Capitan.app" \
2016-03-08 10:59:50 +00:00
/Applications/Chromium.app \
/Applications/Xcode.app \
/Applications/AutoDMG.app \
/Applications/Little\ Snitch\ Installer.app \
"/Applications/Install OS X El Capitan.app" \
$(PWD)/../extrapackages/*.pkg \
$(PWD)/users/*.pkg \
$(PWD)/clearRegistration.pkg \
$(PWD)/osx-privacy-pkg/*.pkg && \
cp /tmp/output.dmg $(PWD)/$@
simple.dmg: prepare
$(AUTODMG) \
--log-level 7 \
build \
-n "root" \
-u -U \
-o /tmp/output.dmg \
"/Applications/Install OS X El Capitan.app" \
/Applications/Chromium.app \
2016-02-23 20:12:32 +00:00
/Applications/Xcode.app \
/Applications/AutoDMG.app \
2016-03-08 10:59:50 +00:00
/Applications/Little\ Snitch\ Installer.app \
2016-02-23 20:12:32 +00:00
"/Applications/Install OS X El Capitan.app" \
2016-03-08 10:59:50 +00:00
$(PWD)/../extrapackages/*.pkg \
$(PWD)/users/*.pkg \
$(PWD)/clearRegistration.pkg \
&& cp /tmp/output.dmg $(PWD)/$@