Skip to content

Commit 3eae70f

Browse files
committed
Move stuff after the cpack call
[ci skip]
1 parent 8551d9b commit 3eae70f

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.ci_scripts/package.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@ shopt -s nullglob
44

55
if ([ "$OS_NAME" = "macos-10.15" ] || [ "$OS_NAME" = "macos-13" ]) && [ "$PACKAGE" = "ON" ]; then
66
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 -depth -maxdepth 1)
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"
177

188
# Workaround resource busy bug on github on MacOS 13
199
# https://github.com/actions/runner-images/issues/7522
2010
i=0
2111
until
2212
cpack -G Bundle;
13+
14+
base_path="/Users/runner/work/supertux/supertux/build/_CPack_Packages/Darwin/Bundle"
15+
maybe_target=$(find $base_path -type d -depth -maxdepth 1)
16+
directory_name=$(basename $maybe_target)
17+
echo "Well, here's the example target:"
18+
echo $maybe_target
19+
echo "And here's the basename:"
20+
echo $directory_name
21+
22+
/usr/bin/hdiutil create -debug -ov -srcfolder $maybe_target -volname "SuperTux v0.6.3-1698-g56492b0c8" -fs "HFS+" -format UDRW "$base_path/temp.dmg"
2323
do
2424
if [ $i -eq 10 ]; then exit 1; fi
2525
i=$((i+1))

0 commit comments

Comments
 (0)