diff options
author | Michael Hutchinson <m.j.hutchinson@gmail.com> | 2012-02-08 04:20:08 +0400 |
---|---|---|
committer | Michael Hutchinson <m.j.hutchinson@gmail.com> | 2012-02-08 04:33:01 +0400 |
commit | 3a789b09b01e8022910e11c6902fc3f24f2551f0 (patch) | |
tree | 08963490e58b202fc3e800a73bbf90ed75007454 | |
parent | 53f40195b8815c33e06af4bd86f8b933cc8ea8f9 (diff) |
[Mac] Update the dmg background when building
-rw-r--r-- | .gitignore | 7 | ||||
-rw-r--r-- | main/build/MacOSX/DS_Store | bin | 12292 -> 15364 bytes | |||
-rw-r--r-- | main/build/MacOSX/Makefile.am | 24 | ||||
-rw-r--r-- | main/build/MacOSX/dmg-bg.png | bin | 93155 -> 261480 bytes | |||
-rw-r--r-- | main/build/MacOSX/dmg-bg.svg | 340 | ||||
-rwxr-xr-x | main/build/MacOSX/make-dmg-bundle.sh | 72 | ||||
-rw-r--r-- | main/build/MacOSX/render.cs | 22 |
7 files changed, 70 insertions, 395 deletions
diff --git a/.gitignore b/.gitignore index 7b4468d186..c810d6de5e 100644 --- a/.gitignore +++ b/.gitignore @@ -29,11 +29,14 @@ config.status aclocal.m4 install-sh autom4te.cache/ -*.dmg -*.app *.user *.tar.gz +#Mac bundle stuff +*.dmg +*.app +/main/build/MacOSX/render.exe + # Autogenerated stuff /local-config/ /bundle-addins/ diff --git a/main/build/MacOSX/DS_Store b/main/build/MacOSX/DS_Store Binary files differindex 6267f04d7d..8a19d4a470 100644 --- a/main/build/MacOSX/DS_Store +++ b/main/build/MacOSX/DS_Store diff --git a/main/build/MacOSX/Makefile.am b/main/build/MacOSX/Makefile.am index 0d2be4db03..151fb67f01 100644 --- a/main/build/MacOSX/Makefile.am +++ b/main/build/MacOSX/Makefile.am @@ -6,21 +6,23 @@ ADDINS=$(MACOS)/lib/monodevelop/AddIns EXTRAS=$(top_srcdir)/../extras ARTIFACTS=$(top_srcdir)/../../artifacts -CLEANFILES = MonoDevelop.dmg MonoDevelop.app +CLEANFILES = render.exe #DISTCLEANFILES = -EXTRA_DIST = dmg-bg.png DS_Store Info.plist.in make-dmg-bundle.sh mdtool monodevelop +EXTRA_DIST = dmg-bg.png DS_Store Info.plist.in make-dmg-bundle.sh mdtool monodevelop render.exe -all: MonoDevelop.app +all: app -MonoDevelop.dmg: MonoDevelop.app +render.exe: render.cs + gmcs -r:System.Drawing render.cs + +dmg: render.exe app ./make-dmg-bundle.sh clean-local: rm -rf MonoDevelop.app - rm -f MonoDevelop.dmg - rm -f MonoDevelop.app.zip + rm -f MonoDevelop*.dmg -MonoDevelop.app: +app: @echo "" @echo "Creating directories in app bundle" @echo "" @@ -143,10 +145,4 @@ MonoDevelop.app: @echo "" @rm -f missing-stuff -MonoDevelop.app.zip: MonoDevelop.app - zip -r9uyq MonoDevelop.app.zip MonoDevelop.app - -update-png: - /Applications/Inkscape.app/Contents/Resources/script --without-gui --export-png=`pwd`/dmg-bg.png `pwd`/dmg-bg.svg - -.PHONY: MonoDevelop.app +.PHONY: app dmg diff --git a/main/build/MacOSX/dmg-bg.png b/main/build/MacOSX/dmg-bg.png Binary files differindex c5cdb0a076..2db1b144c9 100644 --- a/main/build/MacOSX/dmg-bg.png +++ b/main/build/MacOSX/dmg-bg.png diff --git a/main/build/MacOSX/dmg-bg.svg b/main/build/MacOSX/dmg-bg.svg deleted file mode 100644 index 095aa1d8ca..0000000000 --- a/main/build/MacOSX/dmg-bg.svg +++ /dev/null @@ -1,340 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<!-- Created with Inkscape (http://www.inkscape.org/) --> - -<svg - xmlns:dc="http://purl.org/dc/elements/1.1/" - xmlns:cc="http://creativecommons.org/ns#" - xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" - xmlns:svg="http://www.w3.org/2000/svg" - xmlns="http://www.w3.org/2000/svg" - xmlns:xlink="http://www.w3.org/1999/xlink" - xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" - xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - width="568" - height="380" - id="svg2" - sodipodi:version="0.32" - inkscape:version="0.48.1 r9760" - sodipodi:docname="dmg-bg.svg" - inkscape:output_extension="org.inkscape.output.svg.inkscape" - version="1.0" - inkscape:export-filename="/Volumes/sources/monodevelop/main/build/MacOSX/dmg-bg.png" - inkscape:export-xdpi="128.65294" - inkscape:export-ydpi="128.65294"> - <sodipodi:namedview - id="base" - pagecolor="#ffffff" - bordercolor="#666666" - borderopacity="1.0" - inkscape:pageopacity="0.0" - inkscape:pageshadow="2" - inkscape:zoom="2" - inkscape:cx="267.40798" - inkscape:cy="167.79364" - inkscape:document-units="px" - showgrid="false" - inkscape:grid-points="false" - inkscape:guide-points="true" - inkscape:grid-bbox="true" - showguides="true" - inkscape:guide-bbox="true" - gridtolerance="10px" - inkscape:window-width="1836" - inkscape:window-height="1036" - inkscape:window-x="9" - inkscape:window-y="0" - inkscape:current-layer="layer1" - height="300px" - width="744.09448px" - inkscape:window-maximized="0"> - <inkscape:grid - id="GridFromPre046Settings" - type="xygrid" - originx="0px" - originy="0px" - spacingx="10px" - spacingy="10px" - color="#0000ff" - empcolor="#0000ff" - opacity="0.2" - empopacity="0.4" - empspacing="5" - visible="true" - enabled="true" - snapvisiblegridlinesonly="true" /> - </sodipodi:namedview> - <defs - id="defs4"> - <linearGradient - id="linearGradient6206"> - <stop - style="stop-color:#174398;stop-opacity:0.30405405;" - offset="0" - id="stop6208" /> - <stop - style="stop-color:#174398;stop-opacity:0.08108108;" - offset="1" - id="stop6210" /> - </linearGradient> - <linearGradient - id="linearGradient6562"> - <stop - style="stop-color:#b3c4df;stop-opacity:1;" - offset="0" - id="stop6564" /> - <stop - style="stop-color:#ffffff;stop-opacity:1;" - offset="1" - id="stop6566" /> - </linearGradient> - <linearGradient - id="linearGradient8252"> - <stop - style="stop-color:#ffffff;stop-opacity:0;" - offset="0" - id="stop8254" /> - <stop - style="stop-color:#ffffff;stop-opacity:0.89312977;" - offset="1" - id="stop8256" /> - </linearGradient> - <linearGradient - id="linearGradient6897"> - <stop - id="stop6899" - style="stop-color:#5c3566;stop-opacity:1;" - offset="0" /> - <stop - id="stop6901" - style="stop-color:#ad7fa8;stop-opacity:1;" - offset="1" /> - </linearGradient> - <linearGradient - inkscape:collect="always" - xlink:href="#linearGradient6562" - id="linearGradient5526" - gradientUnits="userSpaceOnUse" - x1="24.867023" - y1="2743.9929" - x2="266.82516" - y2="2454.3896" - gradientTransform="matrix(1.1519269,0,0,1.2201925,233.54869,-3078.4076)" /> - <linearGradient - inkscape:collect="always" - xlink:href="#linearGradient8252" - id="linearGradient5540" - gradientUnits="userSpaceOnUse" - gradientTransform="translate(-2396.3495,704.58591)" - x1="2609.625" - y1="-733.625" - x2="2609.625" - y2="-324.8125" /> - <radialGradient - inkscape:collect="always" - xlink:href="#linearGradient6897" - id="radialGradient6336" - cx="164.5639" - cy="3692.4255" - fx="164.5639" - fy="3692.4255" - r="73.639427" - gradientTransform="matrix(1.2422844,0.7337163,-0.1319094,0.2233377,535.52647,-854.2616)" - gradientUnits="userSpaceOnUse" /> - <linearGradient - inkscape:collect="always" - xlink:href="#linearGradient6206" - id="linearGradient6215" - x1="120.05058" - y1="3693.1145" - x2="333.14056" - y2="3610.1301" - gradientUnits="userSpaceOnUse" - gradientTransform="translate(-176.80001,-3730.1203)" /> - <radialGradient - inkscape:collect="always" - xlink:href="#linearGradient6897" - id="radialGradient3028" - gradientUnits="userSpaceOnUse" - gradientTransform="matrix(0.88250157,0.55716564,-0.0937066,0.16959701,333.3205,-727.66609)" - cx="164.5639" - cy="3692.4255" - fx="164.5639" - fy="3692.4255" - r="73.639427" /> - </defs> - <metadata - id="metadata7"> - <rdf:RDF> - <cc:Work - rdf:about=""> - <dc:format>image/svg+xml</dc:format> - <dc:type - rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> - <dc:title></dc:title> - </cc:Work> - <cc:Work - rdf:about=""> - <dc:format>image/svg+xml</dc:format> - <dc:type - rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> - </cc:Work> - </rdf:RDF> - </metadata> - <g - inkscape:label="Layer 1" - id="layer1" - inkscape:groupmode="layer" - transform="translate(2.5120108,104.22659)" - style="display:inline"> - <g - id="g3870" - transform="translate(635.66405,2901.0129)" /> - <g - id="g3915" - transform="translate(847.66691,2546.4933)" /> - <g - id="g4049" - transform="translate(396.70155,776.35284)" /> - <rect - style="fill:#eeeeec;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:2;marker:none;visibility:visible;display:none;overflow:visible;enable-background:accumulate" - id="rect6284" - width="48" - height="48" - x="-1661.8134" - y="-2051.1172" - inkscape:label="48x48/mono-develop.png" /> - <rect - inkscape:label="32x32/mono-develop.png" - y="-1975.1171" - x="-1654.8759" - height="32" - width="32" - id="rect6592" - style="fill:#eeeeec;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:2;marker:none;visibility:visible;display:none;overflow:visible;enable-background:accumulate" /> - <rect - style="fill:#eeeeec;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:2;marker:none;visibility:visible;display:none;overflow:visible;enable-background:accumulate" - id="rect6749" - width="22" - height="22" - x="-1654.8759" - y="-1924.0546" - inkscape:label="22x22/mono-develop.png" /> - <rect - inkscape:label="16x16/mono-develop.png" - y="-1882.1134" - x="-1654.8759" - height="16" - width="16" - id="rect6833" - style="fill:#eeeeec;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:2;marker:none;visibility:visible;display:none;overflow:visible;enable-background:accumulate" /> - <rect - inkscape:label="24x24/mono-develop.png" - y="-1925.1171" - x="-1630.8759" - height="24" - width="24" - id="rect8104" - style="fill:#eeeeec;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:2;marker:none;visibility:visible;display:none;overflow:visible;enable-background:accumulate" /> - <flowRoot - xml:space="preserve" - id="flowRoot6492" - style="font-size:12px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans" - transform="translate(126.19999,-84.12027)"><flowRegion - id="flowRegion6494"><rect - id="rect6496" - width="375.55652" - height="111.90051" - x="3084.1621" - y="-680.94263" /></flowRegion><flowPara - id="flowPara6498" /></flowRoot> <text - xml:space="preserve" - style="font-size:12px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans" - x="3258.2832" - y="-672.06036" - id="text6500"><tspan - sodipodi:role="line" - id="tspan6502" - x="3258.2832" - y="-672.06036" /></text> - <rect - style="fill:url(#linearGradient5526);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.36443818px;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate" - id="rect5451" - width="567.90002" - height="380.70001" - x="-2.5120108" - y="-104.9266" - ry="0" - inkscape:export-filename="/home/lluis/nowork/mdgit/main/build/MacOSX/dmg-bg.png" - inkscape:export-xdpi="128.64999" - inkscape:export-ydpi="128.64999" /> - <path - style="opacity:0.27106228;fill:url(#linearGradient5540);fill-opacity:1;fill-rule:evenodd;stroke:none;display:inline" - d="m 223.77549,-29.03909 c 0.0461,1.0178 0.0471,2.0394 0.0625,3.0625 0.6128,42.701905 -34.4301,66.607305 -57.625,87.062505 -27.6964,24.4238 -85.599997,64.028405 -86.062497,126.593695 -0.4067,55.2652 46.556797,91.02661 83.687497,91.0313 44.471,0.006 83.6443,-37.47649 86.5,-68.99999 19.7665,-6.4057 36.8888,-25.7645 37,-52.1875 0.1465,-35.0735 -43.3952,-38.5233 -54.375,-29.5938 -4.2645,3.4685 -4.1499,10.3334 -0.375,9.0938 23.4436,-7.7029 37.9503,7.4917 36.875,22.5937 -1.0628,14.9138 -7.7493,25.4165 -19.625,30.4375 -3.1491,-23.4993 -16.27,-48.0147 -51.6563,-51.0312 5.7505,-15.518 20.6476,-34.64081 51.625,-38.96881 19.1483,-2.674995 35.0323,3.1276 46.625,14.46881 11.5909,11.3413 19.1144,28.21609 19.625,43 1.6398,47.44049 -41.5744,78.68129 -59.7187,91.53119 -54.4578,38.56861 -96.8208,80.63811 -98.7187,130.7188 l 45.1562,0 c -0.0482,-1.0179 -0.0177,-2.03949 -0.0312,-3.0625 -0.6149,-42.702 34.4282,-66.63869 57.625,-87.0938 27.6963,-24.4239 85.5687,-63.9972 86.0312,-126.56249 0.4086,-55.26521 -46.5568,-91.057905 -83.6875,-91.062505 -44.4776,-0.006 -83.6515,37.505695 -86.5,69.031305 -19.7669,6.4056 -36.8903,25.7644 -37,52.1875 -0.1484,35.07339 43.3951,38.492 54.375,29.5625 4.2664,-3.4686 4.148,-10.3334 0.375,-9.0938 -23.4453,7.7029 -37.919,-7.46051 -36.8437,-22.5625 1.0628,-14.9119 7.7207,-25.4469 19.5937,-30.4687 3.1417,23.509 16.2543,48.01279 51.6563,51.0312 -5.7523,15.5172 -20.6506,34.6412 -51.625,38.96879 -19.1464,2.675 -35.0344,-3.0964 -46.625,-14.4375 -11.5926,-11.3414 -19.1144,-28.2162 -19.625,-42.99999 -1.6379,-47.4406 41.6075,-78.6813 59.75,-91.5313 54.458,-38.568605 96.7912,-80.638105 98.6874,-130.71871 l -45.1562,0 z m -28.3438,186.4062 c 24.7744,0.60291 34.157,22.4225 35.6876,36 -24.7546,-0.6049 -34.1484,-22.4213 -35.6876,-36 z" - id="path5518" - inkscape:connector-curvature="0" /> - <path - style="fill:url(#radialGradient6336);fill-opacity:1;fill-rule:evenodd;stroke:none" - d="m 255.13257,85.35521 c 24.59848,53.82701 85.09577,55.6064 85.09577,55.6064 l 0.32496,12.2312 26.71258,-20.87659 -28.02061,-19.68121 0.30149,13.3861 c -37.25346,0.9952 -63.19196,-11.79439 -84.41419,-40.6659 z" - id="path6326" - sodipodi:nodetypes="ccccccc" - inkscape:export-filename="/home/lluis/nowork/mdgit/main/build/MacOSX/dmg-bg.png" - inkscape:export-xdpi="128.64999" - inkscape:export-ydpi="128.64999" - inkscape:connector-curvature="0" /> - <text - xml:space="preserve" - style="font-size:34px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:url(#linearGradient6215);fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold" - x="3.8116512" - y="-67.38591" - id="text5419" - inkscape:export-filename="/home/lluis/nowork/mdgit/main/build/MacOSX/dmg-bg.png" - inkscape:export-xdpi="128.64999" - inkscape:export-ydpi="128.64999" - sodipodi:linespacing="125%"><tspan - sodipodi:role="line" - id="tspan5421" - x="3.8116512" - y="-67.38591" - style="font-size:34px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:url(#linearGradient6215);fill-opacity:1;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold">2.8.6</tspan></text> - <rect - style="fill:#9f0000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.49700001;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate" - id="rect5520-2-0" - width="56.373768" - height="17.284218" - x="-65.498886" - y="-61.988968" - ry="2.140903" - inkscape:export-filename="/home/lluis/nowork/mdgit/main/build/MacOSX/dmg-bg.png" - inkscape:export-xdpi="128.64999" - inkscape:export-ydpi="128.64999" /> - <text - xml:space="preserve" - style="font-size:13px;font-style:normal;font-variant:normal;font-weight:900;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:none;display:inline;font-family:Arial Black;-inkscape-font-specification:'Arial Black, Heavy'" - x="-60.324707" - y="-48.048279" - id="text5522-9-5" - sodipodi:linespacing="125%" - inkscape:export-filename="/home/lluis/nowork/mdgit/main/build/MacOSX/dmg-bg.png" - inkscape:export-xdpi="128.64999" - inkscape:export-ydpi="128.64999"><tspan - sodipodi:role="line" - id="tspan5524-3-9" - x="-60.324707" - y="-48.048279" - style="font-size:13px;font-style:normal;font-variant:normal;font-weight:900;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;font-family:Arial Black;-inkscape-font-specification:'Arial Black, Heavy'">Beta 3</tspan></text> - <path - inkscape:connector-curvature="0" - inkscape:export-ydpi="128.64999" - inkscape:export-xdpi="128.64999" - inkscape:export-filename="/home/lluis/nowork/mdgit/main/build/MacOSX/dmg-bg.png" - sodipodi:nodetypes="ccccccc" - id="path3026" - d="m 134.13257,-14.14479 c 17.47442,40.874872 60.45085,42.226097 60.45085,42.226097 l 0.23084,5.111503 10.45162,-12.815657 -11.38082,-9.250103 0.21418,5.608819 C 167.6349,17.491598 149.20854,7.779506 134.13257,-14.14479 z" - style="fill:url(#radialGradient3028);fill-opacity:1;fill-rule:evenodd;stroke:none" /> - </g> - <path - style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" - id="path22354" - d="m 5321.6746,-21894.952 0,-100 43.3719,-73.913 39.7087,-16.338 -39.7087,16.338 4.6421,-45.671 -4.6421,45.671 -43.3719,73.913 -21.7951,-46.548 1.3556,-44.428 -1.3556,44.428 -35.8418,-24.64 35.8418,24.64 21.7951,46.548 0,100" - inkscape:connector-curvature="0" /> -</svg> diff --git a/main/build/MacOSX/make-dmg-bundle.sh b/main/build/MacOSX/make-dmg-bundle.sh index 0c9c863c57..b861a8f61b 100755 --- a/main/build/MacOSX/make-dmg-bundle.sh +++ b/main/build/MacOSX/make-dmg-bundle.sh @@ -3,67 +3,75 @@ # Shamelessly lifted from Banshee's build process pushd $(dirname $0) &>/dev/null - -VOLUME_NAME=MonoDevelop + DMG_APP=MonoDevelop.app -DMG_FILE=$VOLUME_NAME.dmg -MOUNT_POINT=$VOLUME_NAME.mounted -if test ! -e $DMG_APP ; then +if test ! -e "$DMG_APP" ; then echo "Missing MonoDevelop.app" exit 1 fi - -rm -f $DMG_FILE -rm -f $DMG_FILE.master + +NAME=`grep -A1 CFBundleName "$DMG_APP/Contents/Info.plist" | grep string | sed -e 's/.*<string>//' -e 's,</string>,,'` +VERSION=`grep -A1 CFBundleVersion "$DMG_APP/Contents/Info.plist" | grep string | sed -e 's/.*<string>//' -e 's,</string>,,'` + +#if we use the version in the volume name, Finder can't find the background image +#because the DS_Store depends on the volume name, and we aren't currently able +#to alter it programmatically +VOLUME_NAME="$NAME" + +echo "Building bundle for $NAME $VERSION..." + +DMG_FILE="$NAME-$VERSION.dmg" +MOUNT_POINT="$VOLUME_NAME.mounted" + +rm -f "$DMG_FILE" +rm -f "$DMG_FILE.master" # Compute an approximated image size in MB, and bloat by 1MB -image_size=$(du -ck $DMG_APP | tail -n1 | cut -f1) +image_size=$(du -ck "$DMG_APP" | tail -n1 | cut -f1) image_size=$((($image_size + 2000) / 1000)) echo "Creating disk image (${image_size}MB)..." -hdiutil create $DMG_FILE -megabytes $image_size -volname $VOLUME_NAME -fs HFS+ -quiet || exit $? +hdiutil create "$DMG_FILE" -megabytes $image_size -volname "$VOLUME_NAME" -fs HFS+ -quiet || exit $? echo "Attaching to disk image..." -hdiutil attach $DMG_FILE -readwrite -noautoopen -mountpoint $MOUNT_POINT -quiet || exit $? +hdiutil attach "$DMG_FILE" -readwrite -noautoopen -mountpoint "$MOUNT_POINT" -quiet || exit $? echo "Populating image..." -mv $DMG_APP $MOUNT_POINT +mv "$DMG_APP" "$MOUNT_POINT" # This won't result in any deletions -#find $MOUNT_POINT -type d -iregex '.*\.svn$' &>/dev/null | xargs rm -rf +#find "$MOUNT_POINT" -type d -iregex '.*\.svn$' &>/dev/null | xargs rm -rf -pushd $MOUNT_POINT &>/dev/null -ln -s /Applications +pushd "$MOUNT_POINT" &>/dev/null +ln -s /Applications Applications popd &>/dev/null -mkdir -p $MOUNT_POINT/.background -cp dmg-bg.png $MOUNT_POINT/.background -cp DS_Store $MOUNT_POINT/.DS_Store -cp VolumeIcon.icns $MOUNT_POINT/.VolumeIcon.icns -SetFile -c icnC $MOUNT_POINT/.VolumeIcon.icns -SetFile -a C $MOUNT_POINT +mkdir -p "$MOUNT_POINT/.background" +mono render.exe "$NAME $VERSION" +mv dmg-bg-with-version.png "$MOUNT_POINT/.background/dmg-bg.png" +cp DS_Store "$MOUNT_POINT/.DS_Store" +cp VolumeIcon.icns "$MOUNT_POINT/.VolumeIcon.icns" +SetFile -c icnC "$MOUNT_POINT/.VolumeIcon.icns" +SetFile -a C "$MOUNT_POINT" echo "Detaching from disk image..." -hdiutil detach $MOUNT_POINT -quiet || exit $? +hdiutil detach "$MOUNT_POINT" -quiet || exit $? -mv $DMG_FILE $DMG_FILE.master +mv "$DMG_FILE" "$DMG_FILE.master" echo "Creating distributable image..." -hdiutil convert -quiet -format UDBZ -o $DMG_FILE $DMG_FILE.master || exit $? - -#echo "Installing end user license agreement..." -#hdiutil flatten -quiet $DMG_FILE -#/Developer/Tools/Rez /Developer/Headers/FlatCarbon/*.r dmg-data/license.r -a -o $DMG_FILE -#hdiutil unflatten -quiet $DMG_FILE +hdiutil convert -quiet -format UDBZ -o "$DMG_FILE" "$DMG_FILE.master" || exit $? -echo "Done." +echo "Built disk image $DMG_FILE" if [ ! "x$1" = "x-m" ]; then -rm $DMG_FILE.master +rm "$DMG_FILE.master" fi -rm -rf $MOUNT_POINT +rm -rf "$MOUNT_POINT" + +echo "Done." popd &>/dev/null diff --git a/main/build/MacOSX/render.cs b/main/build/MacOSX/render.cs index 5d605c97a2..6c6585bf39 100644 --- a/main/build/MacOSX/render.cs +++ b/main/build/MacOSX/render.cs @@ -3,14 +3,22 @@ using System.Drawing; using System.Drawing.Imaging; class X { - static void Main () + static void Main (string[] args) { var background = new Bitmap ("dmg-bg.png"); var ctx = Graphics.FromImage (background); - var font = new Font ("Helvetica", 36); - var color = Color.FromArgb (255, 159, 180, 213); - var brush = new SolidBrush (color); - ctx.DrawString ("FOOBAR", font, brush, new PointF (10, 12)); - background.Save ("new.png", ImageFormat.Png); + + //system.drawing doesn't allow setting the actual font weight + //so we can't get it as heavy as we need :/ + var font = new Font ("Helvetica", 12, FontStyle.Bold); + + var light = new SolidBrush (Color.FromArgb (255, 255, 255, 255)); + var dark = new SolidBrush (Color.FromArgb (230, 151, 173, 190)); + + float x = 10, y = 10; + ctx.DrawString (args[0], font, light, new PointF (x, y + 1f)); + ctx.DrawString (args[0], font, dark, new PointF (x, y)); + + background.Save ("dmg-bg-with-version.png", ImageFormat.Png); } -}
\ No newline at end of file +} |