[recipes] A script to build a dmg
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] A script to build a dmg
- Date: Tue, 28 Feb 2017 21:00:00 +0000 (UTC)
commit 2cdf932bec7c62ab03d62274b6009f0d02ed0bf5
Author: Matthias Clasen <mclasen Matthiass-MBP home>
Date: Tue Feb 28 07:57:24 2017 -0500
A script to build a dmg
osx/build-osx-installer.sh | 16 ++++++++++++++++
osx/template.dmg.gz | Bin 0 -> 204470 bytes
2 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/osx/build-osx-installer.sh b/osx/build-osx-installer.sh
new file mode 100755
index 0000000..11ccdad
--- /dev/null
+++ b/osx/build-osx-installer.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+mkdir -p mnttmp
+rm -f working.dmg
+gunzip < template.dmg.gz > working.dmg
+hdiutil attach working.dmg -noautoopen -quiet -mountpoint mnttmp
+# NOTE: output of hdiutil changes every now and then.
+# Verify that this is still working.
+DEV=`hdiutil info|tail -1|awk '{print $1}'`
+rm -rf mnttmp/Recipes.app
+mv ./Recipes.app mnttmp
+hdiutil detach ${DEV}
+rm -rf mnttmp
+rm -f recipes.dmg
+hdiutil convert working.dmg -quiet -format UDZO -imagekey zlib-level=9 -o recipes.dmg
+rm -f working.dmg
diff --git a/osx/template.dmg.gz b/osx/template.dmg.gz
new file mode 100644
index 0000000..3cd0774
Binary files /dev/null and b/osx/template.dmg.gz differ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]