foxygit / doom Log in
commit 45d712f1c6141f3e131a900810a57ab576bdc182
Author:     Roman Fomin <rfomin@gmail.com>
AuthorDate: Tue Oct 17 00:30:08 2023 +0700
Commit:     Roman Fomin <rfomin@gmail.com>
CommitDate: Tue Nov 7 21:21:15 2023 +0700

    Add workaround for occasional "Can’t get disk" (-1728) issues
---
 pkg/osx/GNUmakefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/pkg/osx/GNUmakefile b/pkg/osx/GNUmakefile
index 1647954b..22ef8e48 100644
--- a/pkg/osx/GNUmakefile
+++ b/pkg/osx/GNUmakefile
@@ -16,6 +16,7 @@ TOPLEVEL_DOCS=$(patsubst %,../../%,$(DOC_FILES))

 $(DMG) : tmp.dmg
 	rm -f $@
+	sleep 2 # pause to workaround occasional "Can’t get disk" (-1728) issues
 	./dmgfix "$(realpath tmp.dmg)" "$(PACKAGE_STRING)" "$(PACKAGE_NAME).app"
 	hdiutil convert -format UDBZ -o $@ tmp.dmg
 	rm -f tmp.dmg