Skip to content

Commit 65abfb9

Browse files
committed
debugging release workflow
1 parent 7607d59 commit 65abfb9

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

.github/workflows/release.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,22 @@ jobs:
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: |

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)