mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-23 04:34:27 +00:00
This way, we don't rely on automatic scheme creation in Travis, nor do we have to update the Makefile for Travis if we want to add an additional test target to the project. Also, Travis should now build all targets (including BinaryDelta and Sparkle Test App), giving us better build coverage.
22 lines
676 B
Makefile
22 lines
676 B
Makefile
.PHONY: all localizable-strings release build test travis
|
|
|
|
BUILDDIR := $(shell mktemp -d "$(TMPDIR)/Sparkle.XXXXXX")
|
|
|
|
localizable-strings:
|
|
rm -f Sparkle/en.lproj/Sparkle.strings
|
|
genstrings -o Sparkle/en.lproj -s SULocalizedString Sparkle/*.m Sparkle/*.h
|
|
iconv -f UTF-16 -t UTF-8 < Sparkle/en.lproj/Localizable.strings > Sparkle/en.lproj/Sparkle.strings
|
|
rm Sparkle/en.lproj/Localizable.strings
|
|
|
|
release:
|
|
xcodebuild -scheme Distribution -configuration Release -derivedDataPath "$(BUILDDIR)" build
|
|
open -R "$(BUILDDIR)/Build/Products/Release/Sparkle-"*.tar.bz2
|
|
|
|
build:
|
|
xcodebuild clean build
|
|
|
|
test:
|
|
xcodebuild -scheme Distribution -configuration Debug test
|
|
|
|
travis: test
|