diff options
| author | Simon Tatham <anakin@pobox.com> | 2015-01-08 14:10:15 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2015-01-09 19:05:25 +0000 |
| commit | 70b26db85a8e452b9b2fb65634e21d00baf04042 (patch) | |
| tree | 3698e5a49a09a4da5cd66ffd392fe3ebe70097e4 /Buildscr | |
| parent | 8f8333a3516bbbd266d66e72f646741fc258ff02 (diff) | |
| download | puzzles-70b26db85a8e452b9b2fb65634e21d00baf04042.zip puzzles-70b26db85a8e452b9b2fb65634e21d00baf04042.tar.gz puzzles-70b26db85a8e452b9b2fb65634e21d00baf04042.tar.bz2 puzzles-70b26db85a8e452b9b2fb65634e21d00baf04042.tar.xz | |
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.
Diffstat (limited to 'Buildscr')
| -rw-r--r-- | Buildscr | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 '$#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. in puzzles do perl mkfiles.pl -U in puzzles do make |