From 670cd80d7b011447453152feeae5ccf637250f8f Mon Sep 17 00:00:00 2001 From: Nicholas Sherlock Date: Wed, 16 Mar 2022 00:31:50 +1300 Subject: [PATCH] Avoid redownloading Monterey app if it already exists (#192) --- scripts/monterey/Makefile | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/scripts/monterey/Makefile b/scripts/monterey/Makefile index eb36bec..b257ce3 100644 --- a/scripts/monterey/Makefile +++ b/scripts/monterey/Makefile @@ -31,18 +31,25 @@ all: Monterey-recovery.img ln $< $@ || cp $< $@ ifeq ($(OS),MACOS) + Monterey-full.dmg : $(MONTEREY_APP) hdiutil create -o "$@" -size 14g -layout GPTSPUD -fs HFS+J hdiutil attach -noverify -mountpoint /Volumes/install_build "$@" sudo "$