]>
Commit | Line | Data |
---|---|---|
1 | project_name := Captura | |
2 | derived_data_path := ~/Library/Developer/Xcode/DerivedData | |
3 | sparkle_path := $(shell find $(derived_data_path) -type d -path '*artifacts/sparkle/Sparkle' -print -quit) | |
4 | build_directory := builds | |
5 | sparkle_account := tranquil.systems | |
6 | ||
7 | ||
8 | distribute: archive package generate_appcast | |
9 | ||
10 | package: | |
11 | @scripts/package.sh "$(project_name)" "$(build_directory)" | |
12 | ||
13 | generate_appcast: | |
14 | @$(sparkle_path)/bin/generate_appcast --account $(sparkle_account) $(build_directory) | |
15 | ||
16 | archive: 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 | ||
19 | prepare: | |
20 | mkdir -p $(build_directory) | |
21 | ||
22 | format: | |
23 | swift format -i -r . | |
24 | ||
25 | lint: | |
26 | swift format lint -r . | |
27 | ||
28 | .PHONY: package prepare archive generate_appcast package distribute format lint |