forked from toshi0383/Bitrise-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (21 loc) · 929 Bytes
/
Makefile
File metadata and controls
27 lines (21 loc) · 929 Bytes
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
SKETCHTOOL ?= /Applications/Sketch.app/Contents/MacOS/sketchtool
JQ ?= /usr/local/bin/jq
GO ?= /usr/local/bin/go
APPICONSET_DIR ?= BitriseClient/Assets.xcassets/AppIcon.appiconset
APPICON_SKETCH ?= resources/app-icon.sketch
SKETCHMATE ?= scripts/sketchmate
test:
xcodebuild test -project BitriseClient.xcodeproj -scheme BitriseClientTests -destination 'name=iPhone X'
clean:
rm -rf Carthage/Build/iOS
bootstrap:
carthage bootstrap --platform ios
app-icon:
rm $(APPICONSET_DIR)/*.png || :
#$(SKETCHTOOL) export artboards --scales=1x,2x,3x resources/launch-screen.sketch
$(SKETCHTOOL) list artboards $(APPICON_SKETCH) \
| $(GO) run $(SKETCHMATE)/* \
| $(JQ) . > $(APPICONSET_DIR)/Contents.json
$(SKETCHTOOL) export artboards $(APPICON_SKETCH) --output=$(APPICONSET_DIR)
$(SKETCHTOOL) export artboards $(APPICON_SKETCH) --output=$(APPICONSET_DIR) --item=Icon
rm $(APPICONSET_DIR)/"iOS App Icon Template.png" || :