ci: Try harder to detach dmg image

See https://github.com/actions/runner-images/issues/7522
This commit is contained in:
Florian Bruhin 2024-12-06 21:45:27 +01:00
parent 6c9fd35bfa
commit 557cd19a1d
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ $(MASTER_DMG): $(WC_DMG) $(addprefix $(SOURCE_DIR)/,$(SOURCE_FILES))
#rm -f "$@"
#hdiutil create -srcfolder "$(WC_DIR)" -format UDZO -imagekey zlib-level=9 "$@" -volname "$(NAME) $(VERSION)" -scrub -quiet
WC_DEV=`hdiutil info | grep "$(WC_DIR)" | grep "Apple_HFS" | awk '{print $$1}'` && \
hdiutil detach $$WC_DEV -force || { sleep 30; hdiutil detach $$WC_DEV -force -debug; }
for i in {1..30}; do hdiutil detach $$WC_DEV -force -debug && break; sleep 2; done
rm -f "$(MASTER_DMG)"
hdiutil convert "$(WC_DMG)" -quiet -format UDZO -imagekey zlib-level=9 -o "$@"
rm -rf $(WC_DIR)