[gedit] [osx] Compress template image



commit 9c0bfe1ec432bdc1acfb471d03f015eac3e9bfd6
Author: Jesse van den Kieboom <jessevdk gmail com>
Date:   Wed Aug 27 13:28:31 2014 +0200

    [osx] Compress template image

 osx/bundle/bundle                |    4 +++-
 osx/bundle/data/template.dmg     |  Bin 19345408 -> 0 bytes
 osx/bundle/data/template.dmg.bz2 |  Bin 0 -> 2101803 bytes
 3 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/osx/bundle/bundle b/osx/bundle/bundle
index 4958185..9bd9a77 100755
--- a/osx/bundle/bundle
+++ b/osx/bundle/bundle
@@ -54,7 +54,9 @@ function cmd_dmg() {
 
        TMPNAME="${DMG_FILE%.dmg}_tmp.dmg"
 
-       cp "$D/data/template.dmg" "$TMPNAME"
+       cp "$D/data/template.dmg.bz2" "$TMPNAME.bz2"
+       bunzip2 "$TMPNAME.bz2"
+
        hdiutil resize -size ${image_size}m "$TMPNAME" || exit 1
 
        echo "Attaching to disk image..."
diff --git a/osx/bundle/data/template.dmg.bz2 b/osx/bundle/data/template.dmg.bz2
new file mode 100644
index 0000000..b6450e2
Binary files /dev/null and b/osx/bundle/data/template.dmg.bz2 differ


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]