]> git.r.bdr.sh - rbdr/captura/blame - Makefile
Add license and contributing
[rbdr/captura] / Makefile
CommitLineData
578c4751
RBR
1project_name := Captura
2derived_data_path := ~/Library/Developer/Xcode/DerivedData
3sparkle_path := $(shell find $(derived_data_path) -type d -path '*artifacts/sparkle/Sparkle' -print -quit)
4build_directory := builds
5sparkle_account := tranquil.systems
6
7
8distribute: archive package generate_appcast
9
10package:
11 @scripts/package.sh "$(project_name)" "$(build_directory)"
12
13generate_appcast:
14 @$(sparkle_path)/bin/generate_appcast --account $(sparkle_account) $(build_directory)
15
16archive: prepare
17 xcodebuild -project $(project_name).xcodeproj -scheme $(project_name) -configuration Release -archivePath $(build_directory)/$(project_name).xcarchive archive && xcodebuild -exportArchive -archivePath $(build_directory)/$(project_name).xcarchive -exportPath $(build_directory) -exportOptionsPlist export_options.plist
18
19prepare:
20 mkdir -p $(build_directory)
21
22.PHONY: package prepare archive generate_appcast package distribute