Skip to content

Commit

Permalink
fixup! release: add Mac OSX installer build
Browse files Browse the repository at this point in the history
Sometimes the Makefile process is too fast and the `hdiutil` command
fails with:

	hdiutil: create failed - Resource busy

A couple moments later that command would succeed, though. So let's just
try again after sleeping 5s.

Signed-off-by: Johannes Schindelin <[email protected]>
  • Loading branch information
dscho committed Nov 4, 2023
1 parent 3cadb39 commit 55112d2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/macos-installer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ disk-image/git-$(VERSION)-$(ARCH_UNIV).pkg: disk-image/VERSION-$(VERSION)-$(ARCH
$(pkg_cmd)

git-%-$(ARCH_UNIV).dmg:
hdiutil create git-$(VERSION)-$(ARCH_UNIV).uncompressed.dmg -fs HFS+ -srcfolder disk-image -volname "Git $(VERSION) $(ARCH_UNIV)" -ov
hdiutil create git-$(VERSION)-$(ARCH_UNIV).uncompressed.dmg -fs HFS+ -srcfolder disk-image -volname "Git $(VERSION) $(ARCH_UNIV)" -ov 2>&1 | tee err || { \
grep "Resource busy" err && \
sleep 5 && \
hdiutil create git-$(VERSION)-$(ARCH_UNIV).uncompressed.dmg -fs HFS+ -srcfolder disk-image -volname "Git $(VERSION) $(ARCH_UNIV)" -ov; }
hdiutil convert -format UDZO -o $@ git-$(VERSION)-$(ARCH_UNIV).uncompressed.dmg
rm -f git-$(VERSION)-$(ARCH_UNIV).uncompressed.dmg

Expand Down

0 comments on commit 55112d2

Please sign in to comment.