forked from hiroshi/Unofficial-Google-Wave-Notifier
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
32 lines (25 loc) · 1.07 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
APP = "Unofficial Google Wave Notifier.app"
ZIP = unofficial-google-wave-notifier-mac-$(VERSION).zip
LENGTH = $(shell ls -l build/Release/$(ZIP) | awk '{print $$5}')
DSA_SIGN = $(shell ruby "Sparkle/Signing Tools/sign_update.rb" build/Release/$(ZIP) ~/Dropbox/private/Sparkle/dsa_priv.pem)
DATE = $(shell date "+%a, %d %b %Y %H:%M:%S +0900")
.PHONY : build
all: build
build:
xcodebuild -configuration Release build
clean:
xcodebuild -configuration Release clean
run:
open build/Release/$(APP)
zip: clean build
(cd build/Release; rm -f $(ZIP); zip -r $(ZIP) $(APP))
appcast:
@echo "\
<item>\n\
<title>Release $(VERSION)</title>\n\
<sparkle:releaseNotesLink>\n\
http://github.com/hiroshi/Unofficial-Google-Wave-Notifier/raw/master/CHANGELOG\n\
</sparkle:releaseNotesLink>\n\
<pubDate>$(DATE)</pubDate>\n\
<enclosure url=\"http://cloud.github.com/downloads/hiroshi/Unofficial-Google-Wave-Notifier/$(ZIP)\" sparkle:version=\"$(VERSION)\" length=\"$(LENGTH)\" type=\"application/octet-stream\" sparkle:dsaSignature=\"$(DSA_SIGN)\" />\n\
</item>"