Update build-macos.yml

This commit is contained in:
Anirudh Sevugan 2025-08-08 16:36:21 -05:00 committed by GitHub
parent 05bb059b41
commit 18f25c5ef4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -62,9 +62,9 @@ jobs:
local dmg_name="$2"
local volume_name="$3"
# Calculate the size of the app bundle in KB, then add a buffer (e.g., 50MB)
# Calculate the size of the app bundle in KB, then add a 50MB buffer
APP_SIZE_KB=$(du -sk "$app_path" | cut -f1)
DMG_SIZE_MB=$(( ($APP_SIZE_KB / 1024) + 5 ))
DMG_SIZE_MB=$(( ($APP_SIZE_KB / 1024) + 50 ))
echo "Calculated DMG size: ${DMG_SIZE_MB}MB"