File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed
Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 7575
7676 - name: Package with CPack
7777 working-directory: ${{github.workspace}}/build/${{ matrix.config.preset }}
78- run: cpack -C ${{env.BUILD_TYPE}} -G DragNDrop
78+ run: |
79+ for i in 1 2 3; do
80+ if cpack -C ${{env.BUILD_TYPE}} -G DragNDrop; then
81+ break
82+ elif [ $i -eq 3 ]; then
83+ echo "cpack failed after 3 attempts"
84+ exit 1
85+ else
86+ echo "cpack failed, retrying ($i)..."
87+ # Clean up any leftover mounts
88+ for vol in /Volumes/HDRView*; do
89+ [ -d "$vol" ] && hdiutil detach "$vol" 2>/dev/null || true
90+ done
91+ sleep 2
92+ fi
93+ done
7994
8095 - name: List files after CPack
8196 run: |
Original file line number Diff line number Diff line change @@ -1518,7 +1518,7 @@ if(APPLE)
15181518 endif()
15191519
15201520 # CPack DragNDrop settings
1521- set(CPACK_DMG_VOLUME_NAME "HDRView Installer")
1521+ set(CPACK_DMG_VOLUME_NAME "HDRView- Installer")
15221522 set(CPACK_DMG_FORMAT "UDBZ")
15231523
15241524 # Determine architecture suffix for DMG filename
You can’t perform that action at this time.
0 commit comments