File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,17 @@ shopt -s nullglob
4
4
5
5
if ([ " $OS_NAME " = " macos-10.15" ] || [ " $OS_NAME " = " macos-13" ]) && [ " $PACKAGE " = " ON" ]; then
6
6
sudo chmod -R +w /usr/local/Cellar
7
+
8
+ base_path=" /Users/runner/work/supertux/supertux/build/_CPack_Packages/Darwin/Bundle"
9
+ maybe_target=$( find $base_path -type d -exec find {} -depth -maxdepth 1 -type f -print -quit \)
10
+ directory_name=$( basename $maybe_target )
11
+ echo " Well, here's the example target:"
12
+ echo $maybe_target
13
+ echo " And here's the basename:"
14
+ echo $directory_name
15
+
16
+ /usr/bin/hdiutil create -debug -ov -srcfolder $maybe_target -volname " SuperTux v0.6.3-1698-g56492b0c8" -fs " HFS+" -format UDRW " $base_path /temp.dmg"
17
+
7
18
# Workaround resource busy bug on github on MacOS 13
8
19
# https://github.com/actions/runner-images/issues/7522
9
20
i=0
Original file line number Diff line number Diff line change @@ -54,7 +54,6 @@ set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README.md")
54
54
set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR} /LICENSE.txt" )
55
55
set (CPACK_PACKAGE_VERSION_MAJOR ${SUPERTUX_VERSION_MAJOR} )
56
56
set (CPACK_PACKAGE_VERSION_MINOR ${SUPERTUX_VERSION_MINOR} )
57
- set (CPACK_COMMAND_HDIUTIL "/usr/bin/hdiutil -debug" )
58
57
59
58
if (SUPERTUX_VERSION_TWEAK)
60
59
set (CPACK_PACKAGE_VERSION_PATCH "${SUPERTUX_VERSION_PATCH} .${SUPERTUX_VERSION_TWEAK} " )
You can’t perform that action at this time.
0 commit comments