masakih

OSXを起動したらそこには『艦隊これくしょん -艦これ-』の世界が広がっていたのです!?

  • R/O
  • HTTP
  • SSH
  • HTTPS

提交

Frequently used words (click to add to your profile)

javaandroidc++linuxc#objective-ccocoa誰得qtrubypythongamewindowsbathyscaphephpguic翻訳omegattwitterframeworktestbtronarduinovb.net計画中(planning stage)directxpreviewerゲームエンジンdom

Commit MetaInfo

修订版a96e697131d25ec6762eb41aa16a8d99ef224711 (tree)
时间2015-07-08 22:37:26
作者masakih <masakih@user...>
Commitermasakih

Log Message

Makefileを追加

更改概述

差异

--- /dev/null
+++ b/Makefile
@@ -0,0 +1,50 @@
1+// encoding=utf-8
2+PRODUCT_NAME=KanColleBrowserForOSX
3+PRODUCT_EXTENSION=app
4+BUILD_PATH=./build
5+DEPLOYMENT=Release
6+APP_BUNDLE=$(PRODUCT_NAME).$(PRODUCT_EXTENSION)
7+APP=$(BUILD_PATH)/$(DEPLOYMENT)/$(APP_BUNDLE)
8+APP_NAME=$(BUILD_PATH)/$(DEPLOYMENT)/$(PRODUCT_NAME)
9+SCHEME=KanColleBrowserForOSX
10+INFO_PLIST=KanColleBrowserForOSX/Info.plist
11+
12+LOCALIZE_FILES=
13+
14+VER_CMD=grep -A1 'CFBundleShortVersionString' $(INFO_PLIST) | tail -1 | tr -d "'\t</string>"
15+VERSION=$(shell $(VER_CMD))
16+
17+all: package
18+
19+Localizable: $(LOCALIZE_FILES)
20+ genstrings -o KanColleBrowserForOSX/ja.lproj $^
21+ (cd KanColleBrowserForOSX/ja.lproj; ${MAKE} $@;)
22+# genstrings -o KanColleBrowserForOSX/en.lproj $^
23+# (cd KanColleBrowserForOSX/en.lproj; ${MAKE} $@;)
24+
25+checkLocalizable:
26+# (cd KanColleBrowserForOSX/en.lproj; ${MAKE} $@;)
27+ (cd KanColleBrowserForOSX/ja.lproj; ${MAKE} $@;)
28+
29+deploy:
30+ test -z "`git status --porcelain`"
31+
32+release: updateRevision
33+ xcodebuild -derivedDataPath=build -configuration $(DEPLOYMENT)
34+ $(MAKE) restoreInfoPlist
35+
36+package: deploy release
37+ REV=`git show | head -1 | awk '{printf("%.7s\n", $$2)}'`; \
38+ ditto -ck -rsrc --keepParent $(APP) $(APP_NAME)-$(VERSION)-$${REV}.zip
39+
40+updateRevision:
41+ if [ ! -f $(INFO_PLIST).bak ] ; then cp $(INFO_PLIST) $(INFO_PLIST).bak ; fi ; \
42+ REV=`git show | head -1 | awk '{printf("%.7s\n", $$2)}'` ; \
43+ sed -e "s/%%%%REVISION%%%%/$${REV}/" $(INFO_PLIST) > $(INFO_PLIST).r ; \
44+ mv -f $(INFO_PLIST).r $(INFO_PLIST) ; \
45+
46+restoreInfoPlist:
47+ if [ -f $(INFO_PLIST).bak ] ; then mv -f $(INFO_PLIST).bak $(INFO_PLIST) ; fi
48+
49+
50+