From 1705240c3ccfee5109180e1c531e5d363221302a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20B=C3=A1lint=20Misius?= Date: Tue, 30 Apr 2024 19:23:42 +0200 Subject: [PATCH] Hopefully fix random hdiutil failures on ghactions --- .github/build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/build.sh b/.github/build.sh index 5065b626e..8fe9832cd 100755 --- a/.github/build.sh +++ b/.github/build.sh @@ -484,7 +484,9 @@ if [[ $PACKAGE_MODE == dmg ]]; then mv $appdir dmgroot/$appdir cp ../LICENSE dmgroot/LICENSE cp ../README.md dmgroot/README.md - hdiutil create -format UDZO -volname $APP_NAME -fs HFS+ -srcfolder dmgroot -o $ASSET_PATH + # apparently using sudo here fixes the occasional "resource is busy" + # see https://github.com/actions/runner-images/issues/7522 + sudo hdiutil create -format UDZO -volname $APP_NAME -fs HFS+ -srcfolder dmgroot -o $ASSET_PATH elif [[ $PACKAGE_MODE == emscripten ]]; then tar cvf $ASSET_PATH $APP_EXE.js $APP_EXE.worker.js $APP_EXE.wasm elif [[ $PACKAGE_MODE == appimage ]]; then