Skip to content

Commit

Permalink
create
Browse files Browse the repository at this point in the history
  • Loading branch information
danemadsen committed Jul 4, 2024
1 parent b3ace06 commit ae1a564
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/scripts/create_dmg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ DMG_SIZE=1g
mkdir -p "$(dirname ${DMG_OUTPUT})"
mkdir -p ${TMP_MOUNT}

# Convert the template DMG to a writable DMG with increased size
hdiutil convert ${DMG_TEMPLATE} -format UDRW -o ${TMP_DMG}
hdiutil resize -size ${DMG_SIZE} ${TMP_DMG}.dmg
# Create a new writable DMG with the specified size
hdiutil create -srcfolder ${DMG_TEMPLATE} -volname "${APP_NAME}" -format UDRW -size ${DMG_SIZE} ${TMP_DMG}

# Mount the writable DMG
hdiutil attach ${TMP_DMG}.dmg -mountpoint ${TMP_MOUNT} -nobrowse -noverify -noautoopen
Expand Down

0 comments on commit ae1a564

Please sign in to comment.