You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.3KB

  1. AUTODMG := /Applications/AutoDMG.app/Contents/MacOS/AutoDMG
  2. default: output.dmg
  3. .PHONY: prepare
  4. packages:
  5. cd osx-privacy-pkg && make
  6. clean:
  7. rm -f osx-privacy-pkg/*.pkg output.dmg
  8. prepare:
  9. sudo xcodebuild -license accept
  10. sudo pmset -a sleep 180
  11. sudo pmset -a displaysleep 180
  12. $(AUTODMG) update
  13. output.dmg: packages prepare
  14. -$(AUTODMG) \
  15. --log-level 7 \
  16. --logfile - \
  17. build \
  18. -n "root" \
  19. -u -U \
  20. -o /tmp/output.dmg \
  21. "/Applications/Install OS X El Capitan.app" \
  22. /Applications/Chromium.app \
  23. /Applications/Xcode.app \
  24. /Applications/AutoDMG.app \
  25. /Applications/Little\ Snitch\ Installer.app \
  26. "/Applications/Install OS X El Capitan.app" \
  27. $(PWD)/../extrapackages/*.pkg \
  28. $(PWD)/users/*.pkg \
  29. $(PWD)/clearRegistration.pkg \
  30. $(PWD)/osx-privacy-pkg/*.pkg && \
  31. cp /tmp/output.dmg $(PWD)/$@
  32. simple.dmg: prepare
  33. $(AUTODMG) \
  34. --log-level 7 \
  35. build \
  36. -n "root" \
  37. -u -U \
  38. -o /tmp/output.dmg \
  39. "/Applications/Install OS X El Capitan.app" \
  40. /Applications/Chromium.app \
  41. /Applications/Xcode.app \
  42. /Applications/AutoDMG.app \
  43. /Applications/Little\ Snitch\ Installer.app \
  44. "/Applications/Install OS X El Capitan.app" \
  45. $(PWD)/../extrapackages/*.pkg \
  46. $(PWD)/users/*.pkg \
  47. $(PWD)/clearRegistration.pkg \
  48. && cp /tmp/output.dmg $(PWD)/$@