Created
January 21, 2012 05:03
-
-
Save hakobe/1651372 to your computer and use it in GitHub Desktop.
make testflight
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.PHONY: all build archive testflight | |
PROJECT ?= BKUMA.xcodeproj | |
SCHEME ?= B!KUMA Girls | |
SIGN ?= iPhone Developer: Yohei Fushii (123456789) | |
MOBILEPROVISION ?= provisionings/$(SCHEME).mobileprovision | |
DISTRIBUTION_LIST ?= B!KUMA Testers | |
NOTIFY ?= False | |
all: archive | |
out: | |
mkdir -p $@ | |
build: out | |
xcodebuild -project '$(PROJECT)' -scheme '$(SCHEME)' -sdk iphoneos5.0 -configuration 'Ad Hoc' install DSTROOT=out | |
archive: build | |
xcrun -sdk iphoneos5.0 PackageApplication 'out/Applications/$(SCHEME).app' -o '$(PWD)/out/$(SCHEME).ipa' --sign '$(SIGN)' --embed '$(MOBILEPROVISION)' | |
testflight: archive | |
curl 'http://testflightapp.com/api/builds.json' \ | |
-F 'file=@$(PWD)/out/$(SCHEME).ipa' \ | |
-F 'api_token=Your API token' \ | |
-F 'team_token=Your team token' \ | |
-F 'notes=This build was uploaded via the upload API' \ | |
-F 'distribution_lists=$(DISTRIBUTION_LIST)' \ | |
-F 'notify=$(NOTIFY)' | |
clean: | |
rm -rf ./out |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment