Skip to content

armgit / chops

Public Imported from GitHub
0

Your AI agent skills, finally organized. A macOS app to browse, edit, and manage skills across Claude Code, Cursor, Codex, Windsurf, and Amp.

fix: wait for Finder to register the DMG volume before styling it

Josh Pigford9d379d582c8b
diff --git a/scripts/release.sh b/scripts/release.sh
index 7c219a9..c267f4e 100755
--- a/scripts/release.sh
+++ b/scripts/release.sh
@@ -91,6 +91,14 @@ create_chops_dmg() {
mkdir -p "/Volumes/Chops/.background"
cp scripts/dmg-background.png "/Volumes/Chops/.background/background.png"
+ # hdiutil attach returns before Finder registers the volume; wait for it
+ for _ in $(seq 1 30); do
+ if [ "$(osascript -e 'tell application "Finder" to exists disk "Chops"')" = "true" ]; then
+ break
+ fi
+ sleep 1
+ done
+
osascript <<'APPLESCRIPT'
tell application "Finder"
tell disk "Chops"