diff options
author | Aaron Becker <akbecker@gmail.com> | 2011-09-04 01:47:00 -0500 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2011-09-05 02:16:27 +0200 |
commit | a06cfe0ffc68227f76cd9de92cefbd7b75c1e535 (patch) | |
tree | 7d508f476bee474e4d736fa98b346b9be48dce48 /crawl-ref/source/mac | |
parent | 3282701d3fdc80328d14703a7f660963ce9ea036 (diff) | |
download | crawl-ref-a06cfe0ffc68227f76cd9de92cefbd7b75c1e535.tar.gz crawl-ref-a06cfe0ffc68227f76cd9de92cefbd7b75c1e535.zip |
Include executable name in bundle plist and create release target
Diffstat (limited to 'crawl-ref/source/mac')
-rw-r--r-- | crawl-ref/source/mac/Crawl-Info.plist | 2 | ||||
-rw-r--r-- | crawl-ref/source/mac/Makefile.app-bundle | 16 |
2 files changed, 16 insertions, 2 deletions
diff --git a/crawl-ref/source/mac/Crawl-Info.plist b/crawl-ref/source/mac/Crawl-Info.plist index ca4c6aa677..720581e7e9 100644 --- a/crawl-ref/source/mac/Crawl-Info.plist +++ b/crawl-ref/source/mac/Crawl-Info.plist @@ -5,6 +5,8 @@ <string>English</string> <key>CFBundleDisplayName</key> <string>%NAME%</string> + <key>CFBundleExecutable</key> + <string>%EXECUTABLE%</string> <key>CFBundleIdentifier</key> <string>net.sourceforge.crawl-ref</string> <key>CFBundleInfoDictionaryVersion</key> diff --git a/crawl-ref/source/mac/Makefile.app-bundle b/crawl-ref/source/mac/Makefile.app-bundle index 68347b71f6..3748714532 100644 --- a/crawl-ref/source/mac/Makefile.app-bundle +++ b/crawl-ref/source/mac/Makefile.app-bundle @@ -15,14 +15,25 @@ APP_NAME := Dungeon Crawl Stone Soup ifneq (,$(findstring tiles,$(MAKECMDGOALS))) BUNDLE_NAME := Dungeon\ Crawl\ Stone\ Soup\ -\ Tiles TILE_APP := y +ifdef RELEASE +ZIP_QUALIFIER := -tiles +else ZIP_QUALIFIER := _tiles +endif EXECUTABLE_PATH := $(CRAWL_SRC)/crawl else BUNDLE_NAME := Dungeon\ Crawl\ Stone\ Soup\ -\ Console EXECUTABLE_PATH := crawl +ifdef RELEASE +ZIP_QUALIFIER := -console +endif endif -ZIP_NAME = crawl$(ZIP_QUALIFIER)_osx-$(SRC_VERSION)$(ZIP_ARCH).zip +ifdef RELEASE +ZIP_NAME = stone_soup-$(SRC_VERSION)$(ZIP_QUALIFIER)-macosx.zip +else +ZIP_NAME = crawl$(ZIP_QUALIFIER)_osx-$(SRC_VERSION).zip +endif STAGING_DIR := $(CRAWL_SRC)/build/app-bundle-stage ZIPPED_APP_DIR := $(CRAWL_SRC)/mac-app-zips @@ -90,5 +101,6 @@ copy-resources: copy-info-plist: perl -lpe "s/%VERSION%/$(SRC_VERSION)/g;" \ -e "s/%NAME%/$(APP_NAME)/g;" \ - -e "s/%YEAR%/(localtime)[5] + 1900/ge" \ + -e "s/%YEAR%/(localtime)[5] + 1900/ge;" \ + -e "s/%EXECUTABLE%/$(BUNDLE_NAME)/g;" \ Crawl-Info.plist >$(BUNDLE_DIRNAME)/Contents/Info.plist |