-
Notifications
You must be signed in to change notification settings - Fork 14
/
Makefile
69 lines (57 loc) · 2.2 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Makefile for the ARIS Client
#
# Timestamps builds & Deploys to the prod servers. (Make sure they are in your ssh config)
#
# Some output is supressed, just remove the @ or dev/null redirects if troubleshooting.
#
OK_COLOR=\033[0;32m
INFO_COLOR=\033[1;36m
CLEAR=\033[m\017
help:
@echo "Aris Client"
@echo ""
@echo "Targets:"
@echo " all: timestamp, copy, clean."
@echo " simulate: build and run ios-sim launcher "
@echo " copy: push ipas to aris"
@echo " timestamp: rename dist/ARIS.ipa to current version"
@echo " add POSTFIX=xyz for multiple versions on the same date."
@echo " ie: make timestamp POSTFIX=2"
@echo " tag: create git tag from current version"
@echo " clean: remove all created ipa/plist from dist."
@echo ""
@echo "make [all|copy|timestamp|clean]"
COPY_FILES=dist/ARIS-*.ipa dist/ARIS-*.plist
COPY_DESTINATION=/var/www/html/clients/
copy:
@echo "Copying to server 1."
@scp $(COPY_FILES) aris-prod1:$(COPY_DESTINATION)
@echo " $(OK_COLOR)(Done)$(CLEAR)"
@echo "Copying to server 2."
@scp $(COPY_FILES) aris-prod2:$(COPY_DESTINATION)
@echo " $(OK_COLOR)(Done)$(CLEAR)"
@echo "Copying to server 3."
@scp $(COPY_FILES) aris-prod3:$(COPY_DESTINATION)
@echo " $(OK_COLOR)(Done)$(CLEAR)"
timestamp:
@echo "Generating timestamped .ipa/.plist from Info.plist version"
@bin/timestamp_build.sh $(POSTFIX)
@echo " $(OK_COLOR)(Done)$(CLEAR)"
tag:
@echo "Creating git tag from Info.plist version."
@bin/tag_release.sh
@echo " $(OK_COLOR)(Done)$(CLEAR)"
clean:
@echo "Removing dist/ARIS-*.plist/ipa"
@rm dist/ARIS-*.plist dist/ARIS-*.ipa
@echo " $(OK_COLOR)(Done)$(CLEAR)"
ARIS_OUTPUT_DIR=./build
simbuild:
xcodebuild build -workspace ARIS.xcworkspace -scheme ARIS -sdk iphonesimulator8.1 -destination platform='iOS Simulator',OS='8.1',name='aris 6 dev two' CONFIGURATION_BUILD_DIR=$(ARIS_OUTPUT_DIR)
phonebuild:
xcodebuild build -workspace ARIS.xcworkspace -scheme ARIS -sdk iphoneos8.1 -destination platform='iOS',name='iPod touch 8'
simrun:
# $BUILD_PRODUCTS_DIR
ios-sim launch $(ARIS_OUTPUT_DIR)/ARIS.app --devicetypeid "com.apple.CoreSimulator.SimDeviceType.iPhone-6, 8.1" --exit
simulate: simbuild simrun
all: timestamp copy clean