mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -07:00
Add OS X metadata to make Puzzles.app searchable in Spotlight.
Thanks to Stephen Norman for most of the work, particularly working out what all the metadata had to be in the first place. This patch is mostly his work, and all I've done is fiddle with the plumbing that gets the right version number into the right places.
This commit is contained in:
6
Buildscr
6
Buildscr
@ -18,6 +18,12 @@ in puzzles do perl -e 'print "\n\\versionid Simon Tatham'\''s Portable Puzzle Co
|
|||||||
in puzzles do echo '/* Generated by automated build script */' > version.h
|
in puzzles do echo '/* Generated by automated build script */' > version.h
|
||||||
in puzzles do echo '$#define VER "Version $(Version)"' >> version.h
|
in puzzles do echo '$#define VER "Version $(Version)"' >> version.h
|
||||||
|
|
||||||
|
# And do the same substitution in the OS X metadata. (This is a bit
|
||||||
|
# icky in principle because it presumes that my version numbers don't
|
||||||
|
# need XML escaping, but frankly, if they ever do then I should fix
|
||||||
|
# them!)
|
||||||
|
in puzzles do perl -i -pe 's/Unidentified build/$(Version)/' osx-info.plist
|
||||||
|
|
||||||
# First build some local binaries, to run the icon build.
|
# First build some local binaries, to run the icon build.
|
||||||
in puzzles do perl mkfiles.pl -U
|
in puzzles do perl mkfiles.pl -U
|
||||||
in puzzles do make
|
in puzzles do make
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
<plist version="1.0">
|
<plist version="1.0">
|
||||||
<dict>
|
<dict>
|
||||||
<key>CFBundleIconFile</key>
|
<key>CFBundleIconFile</key>
|
||||||
@ -8,5 +8,27 @@
|
|||||||
<string>Help</string>
|
<string>Help</string>
|
||||||
<key>CFBundleHelpBookName</key>
|
<key>CFBundleHelpBookName</key>
|
||||||
<string>Puzzles Help</string>
|
<string>Puzzles Help</string>
|
||||||
|
<key>CFBundleName</key>
|
||||||
|
<string>Puzzles</string>
|
||||||
|
<key>CFBundleDisplayName</key>
|
||||||
|
<string>Puzzles</string>
|
||||||
|
<key>CFBundleExecutable</key>
|
||||||
|
<string>Puzzles</string>
|
||||||
|
<key>CFBundleVersion</key>
|
||||||
|
<string>Unidentified build</string>
|
||||||
|
<key>CFBundleShortVersionString</key>
|
||||||
|
<string>Unidentified build</string>
|
||||||
|
<key>CFBundleDevelopmentRegion</key>
|
||||||
|
<string>en</string>
|
||||||
|
<key>CFBundleIndentifier</key>
|
||||||
|
<string>uk.org.greenend.chiark.sgtatham.puzzles</string>
|
||||||
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
|
<string>6.0</string>
|
||||||
|
<key>CFBundlePackageType</key>
|
||||||
|
<string>APPL</string>
|
||||||
|
<key>CFBundleSignature</key>
|
||||||
|
<string>????</string>
|
||||||
|
<key>NSHumanReadableCopyright</key>
|
||||||
|
<string>This software is copyright (c) 2004-2014 Simon Tatham</string>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
Reference in New Issue
Block a user