Skip to content

Commit 7b4df97

Browse files
authored
Merge pull request macvim-dev#1540 from ychin/dmg-design-updates
Beautify MacVim's dmg installer background and volume icon
2 parents 1ca0a97 + c22b4df commit 7b4df97

14 files changed

+51
-17
lines changed

src/MacVim/Credits.rtf

+6-11
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{\rtf1\ansi\ansicpg1252\cocoartf2709
1+
{\rtf1\ansi\ansicpg1252\cocoartf2821
22
\cocoascreenfonts1\cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fswiss\fcharset0 Helvetica-Bold;\f1\fswiss\fcharset0 Helvetica;\f2\fswiss\fcharset0 Helvetica-Oblique;
33
}
44
{\colortbl;\red255\green255\blue255;}
@@ -51,15 +51,10 @@ Dmitry Vazhov\
5151
\f1\i0 \cf0 \
5252
...and many others who have helped by reporting bugs etc.\
5353
\
54-
\
55-
Thank you to {\field{\*\fldinst{HYPERLINK "http://www.positivespinmedia.com"}}{\fldrslt Positive Spin Media}} for the PSMTabBarControl Framework.\
56-
\
54+
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\partightenfactor0
55+
\cf0 The MacVim icon was designed by {\field{\*\fldinst{HYPERLINK "https://jasonlong.me/"}}{\fldrslt Jason Long}}.\
56+
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\partightenfactor0
57+
\cf0 \
5758
Thank you to {\field{\*\fldinst{HYPERLINK "https://whomwah.github.io/qlstephen/"}}{\fldrslt Duncan Robertson}} for the QLStephen QuickLook plugin.\
5859
\
59-
Toolbar icons by {\field{\*\fldinst{HYPERLINK "http://www.mattballdesign.com/"}}{\fldrslt Matt Ball}} (free Developer Icons), {\field{\*\fldinst{HYPERLINK "http://www.jonasraskdesign.com/"}}{\fldrslt Jonas Rask}} (Danish Royalty Free icon set), and {\field{\*\fldinst{HYPERLINK "http://www.everaldo.com"}}{\fldrslt Everaldo Coelho}} (Crystal Project Icons, released under LGPL license).\
60-
\
61-
Revamped MacVim icon by RIC.\
62-
\
63-
Thanks to Andy Matuschak for {\field{\*\fldinst{HYPERLINK "http://sparkle-project.org"}}{\fldrslt Sparkle}}.\
64-
\
65-
Thanks to Damien Guard for {\field{\*\fldinst{HYPERLINK "http://damieng.com/blog/2008/05/26/envy-code-r-preview-7-coding-font-released"}}{\fldrslt Envy Code R}} (used in MacVim's 16x16 document icons).}
60+
Thanks to Andy Matuschak and the Sparkle Project for {\field{\*\fldinst{HYPERLINK "http://sparkle-project.org"}}{\fldrslt Sparkle}}.}

src/MacVim/dmg/background.png

-23.8 KB
Binary file not shown.

src/MacVim/dmg/background.pxd

-47.6 KB
Binary file not shown.

src/MacVim/dmg/[email protected]

130 KB
Loading

src/MacVim/dmg/[email protected]

418 KB
Loading
15.9 KB
Loading
751 Bytes
Loading
55.5 KB
Loading
1.89 KB
Loading
228 KB
Loading
867 KB
Loading
5.2 KB
Loading

src/MacVim/scripts/create_icns

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/bin/sh
2+
3+
# Utility script to create an icns file from an iconset folder. It will handle
4+
# duplicating the necessary images for 1x/2x use so we don't have to commit
5+
# identical images to the repository.
6+
7+
if [[ $# == 0 || $# == 1 || $# == 2 ]]; then
8+
echo "Usage: create_icns <folder> <output_folder> <icns_name>"
9+
exit -1
10+
fi
11+
12+
set -e
13+
14+
icons_folder=$1
15+
output_folder=$2
16+
output_name=$3
17+
18+
cp -R "$icons_folder" "$output_folder/$output_name.iconset"
19+
20+
cd "$output_folder/$output_name.iconset"
21+
22+
23+
24+
25+
26+
27+
28+
cd ..
29+
iconutil --convert icns $output_name.iconset --out $output_name.icns

src/Makefile

+16-6
Original file line numberDiff line numberDiff line change
@@ -3744,21 +3744,31 @@ macvim-dmg-legacy: DMGFILESYSTEM = HFS+
37443744
macvim-dmg-legacy: DMGFORMAT = UDZO
37453745
macvim-dmg-legacy: macvim-dmg
37463746

3747+
# Build the dmg installer.
3748+
# First, create 1x/2x versions of backgorund images and volume icons.
3749+
# Second, use create-dmg to create the image.
3750+
# - Note: Background is 472 pt high, but the macOS title bar is an additional
3751+
# 28. Add them up (472+28=500) so the window can show the entire image
3752+
# without being clipped. Note that if the user has "Show Path Bar" set in
3753+
# Finder this will still clip the bottom but there's nothing we can do about
3754+
# that.
37473755
macvim-dmg:
37483756
rm -rf $(DMGDIR)
37493757
mkdir -p $(DMGDIR)
37503758
cp -a $(RELEASEDIR)/MacVim.app $(DMGDIR)/
3759+
tiffutil -cathidpicheck MacVim/dmg/[email protected] MacVim/dmg/[email protected] -out $(DMGDIR)/background.tiff
3760+
MacVim/scripts/create_icns MacVim/dmg/volume_icons $(DMGDIR) volume
37513761
rm -rf $(RELEASEDIR)/$(DMGFILE)
37523762
MacVim/create-dmg/create-dmg \
37533763
--filesystem "$(DMGFILESYSTEM)" \
37543764
--format "$(DMGFORMAT)" \
37553765
--volname "MacVim" \
3756-
--volicon MacVim/icons/MacVim.icns \
3757-
--background MacVim/dmg/background.png \
3758-
--window-size 650 470 \
3759-
--icon-size 80 \
3760-
--icon MacVim.app 240 320 \
3761-
--app-drop-link 410 320 \
3766+
--volicon $(DMGDIR)/volume.icns \
3767+
--background $(DMGDIR)/background.tiff \
3768+
--window-size 650 500 \
3769+
--icon-size 128 \
3770+
--icon MacVim.app 210 290 \
3771+
--app-drop-link 440 290 \
37623772
$(CREATEDMG_FLAGS) $(RELEASEDIR)/$(DMGFILE) $(DMGDIR)
37633773

37643774
macvimclean:

0 commit comments

Comments
 (0)