blob: f90daf664f89b84be327d89731b84ebe1fb6df0d (
plain)
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
|
project_name := Captura
derived_data_path := ~/Library/Developer/Xcode/DerivedData
sparkle_path := $(shell find $(derived_data_path) -type d -path '*artifacts/sparkle/Sparkle' -print -quit)
build_directory := builds
sparkle_account := tranquil.systems
distribute: archive package generate_appcast
package:
@scripts/package.sh "$(project_name)" "$(build_directory)"
generate_appcast:
@$(sparkle_path)/bin/generate_appcast --account $(sparkle_account) $(build_directory)
archive: prepare
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
prepare:
mkdir -p $(build_directory)
format:
swift format -i -r .
lint:
swift format lint -r .
.PHONY: package prepare archive generate_appcast package distribute format lint
|