From 220844521a0a7b801a4df25e01b5f71ce75b94ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20B=C3=A1lint=20Misius?= Date: Sun, 15 Jan 2023 14:22:40 +0100 Subject: [PATCH] Merge hdiutil calls in build.sh Because for some reason the hdiutil convert step would sometimes fail with "image corrupt" when given an image the hdiutil create step had just previously created. Too cursed for my pay grade; I took the easy way out. --- .github/build.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/build.sh b/.github/build.sh index 86d1ee3f8..ee1b60477 100755 --- a/.github/build.sh +++ b/.github/build.sh @@ -428,8 +428,7 @@ if [[ $PACKAGE_MODE == dmg ]]; then mv $appdir dmgroot/$appdir cp ../LICENSE dmgroot/LICENSE cp ../README.md dmgroot/README.md - hdiutil create uncompressed.dmg -ov -volname $APP_NAME -fs HFS+ -srcfolder dmgroot - hdiutil convert uncompressed.dmg -format UDZO -o $ASSET_PATH + hdiutil create -format UDZO -volname $APP_NAME -fs HFS+ -srcfolder dmgroot -o $ASSET_PATH elif [[ $PACKAGE_MODE == appimage ]]; then # so far this can only happen with $BSH_HOST_PLATFORM-$BSH_HOST_LIBC == linux-gnu, but this may change later case $BSH_HOST_ARCH in