Skip to content

Commit

Permalink
Minor script changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
acornejo committed Oct 17, 2013
1 parent 13556ae commit b250fa3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions kilogui/create_dmg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,16 @@ fi
hdiutil create -srcfolder "${DMG}" -volname "${VOLNAME}" -fs HFS+ -format UDRW -size ${SIZE} pack.temp.dmg

if [ ! -f "dmg_DS_Store" ]; then
device=$(hdiutil attach -readwrite -noverify -noautoopen "pack.temp.dmg" | egrep '^/dev/' | sed 1q | awk '{print $1}')

device=$(hdiutil attach -readwrite -noverify -noautoopen "pack.temp.dmg" | egrep "^/Volumes" )
echo $device
open $device
open $device/.background

# open $device
# open $device/.background
echo "Setup the view options of the folders, and eject the volume before continuing."
read
# cp $device/.DS_Store dmg_DS_Store
fi
hdiutil convert "pack.temp.dmg" -format UDZO -imagekey zlib-level=9 -o ${DMGNAME}
# hdiutil convert "pack.temp.dmg" -format UDZO -imagekey zlib-level=9 -o ${DMGNAME}
hdiutil convert "pack.temp.dmg" -format UDBZ -o ${DMGNAME}
rm -f pack.temp.dmg
rm -fr $DMG
Binary file modified kilogui/dmg_DS_Store
Binary file not shown.

0 comments on commit b250fa3

Please sign in to comment.