Skip to content

Loading…

Script for creating nice DMG installation image #26

Open
wants to merge 3 commits into from

6 participants

@jirutka

Hi,

I wrote configuration for yoursway-create-dmg that creates DMG disk image for distributing MacVim in proper Mac way. Also created background image for it. However, I don't know how to properly integrate it to the build process of MacVim, but script itself is working well, as you can see – http://jirutka.cz/MacVim_7.3b64.dmg.

@jirutka jirutka Added script for creating nice DMG installation image.
MacVim developers, please integrate it to the build process. I don't know how to do that properly.
07b08c1
@necolas

This is the latest version of that logo http://dribbble.com/shots/337065-MacVim-Icon-Updated

IMO, this logo is much nicer than the standard Vim logo. I hope there can be some way for you to include it in future versions of MacVim.

@jirutka

@necolas I found this updated version just after I’ve send commit with the old one and didn’t want to modify it again. However today I had some time on little boring lecture so there’s update. And also commit with replaced application icon with this new one.

You can see how it looks – http://jirutka.cz/MacVim_7.3b64_new_icon.dmg (legacy version for Snow Leopard) – or modify any other version yourself.

@b4winckler
Owner

Thanks for the patch.

Having a dmg instead of an archive is nice and something I just never got around to investigating, so this might come in handy. Changing the icon is not an option however -- I have discussed why at length on the vim_mac mailing list, so please look at my reasoning there.

@jirutka

@b4winckler It’s pity, this new logo is really much nicer. Could it be at least on the background picture for DMG, or should I replace it with the original (ugly) one? In the first two patches is still original icon and new one is only in the background image, so if it would be okay, you can use it. Otherwise I will send new patch.

@mephux

@necolas @jirutka it's a nice logo (besides the python code in the background) but I agree with @b4winckler it should not deviate from the vim logo.

@teoljungberg

If you want the new logo, create a shell-script that fetches the logo and installes in on top off the older one

@eirnym

@jirutka Can you apply same pull request for https://github.com/macvim-dev/macvim ?

@jirutka jirutka referenced this pull request in macvim-dev/macvim
Merged

Add task for creating DMG installation image #59

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 11, 2012
  1. @jirutka

    Added script for creating nice DMG installation image.

    jirutka committed
    MacVim developers, please integrate it to the build process. I don't know how to do that properly.
Commits on Mar 12, 2012
  1. @jirutka

    Image background.png for DMG updated

    jirutka committed
    …with updated version of MacVim logo from http://dribbble.com/shots/337065-MacVim-Icon-Updated.
  2. @jirutka
This page is out of date. Refresh to see the latest.
View
BIN src/MacVim/dmg/background.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
36 src/MacVim/dmg/create-dmg.sh
@@ -0,0 +1,36 @@
+#!/bin/bash
+
+###############################################################################
+#
+# Script for creating nice DMG installation image for MacVim.
+#
+# Uses https://github.com/andreyvit/yoursway-create-dmg.
+#
+# Thanks to Drew Yeaton for awesome MacVim logo (used in background.png)
+# http://dribbble.com/shots/337065-MacVim-Icon-Updated
+#
+
+# Directory with source files (MacVim.app, Readme.txt, mvim)
+SOURCE="../build/Release/"
+
+# MacVim version
+VERSION="7.3"
+
+# Volume title (i.e. application name)
+TITLE="MacVim ${VERSION}"
+
+# Background image
+BGIMAGE='background.png'
+
+# Volume icon
+ICON="${SOURCE}/MacVim.app/Contents/Resources/MacVim.icns"
+
+# Output .dmg file
+DMGFILE="${TITLE}.dmg"
+
+# Path to Andreyvit's create-dmg script
+CREATEDMG="yoursway-create-dmg/create-dmg"
+
+$CREATEDMG --volname "${TITLE}" --volicon "${ICON}" --background "${BGIMAGE}" --window-size 650 480 \
+ --icon-size 64 --icon MacVim.app 240 360 --icon Readme.txt 80 80 --icon mvim 570 80 --app-drop-link 410 360 \
+ "${DMGFILE}" "${SOURCE}"
View
BIN src/MacVim/icons/MacVim.icns
Binary file not shown.
Something went wrong with that request. Please try again.