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
7 distribute: archive package generate_appcast
10 @scripts/package.sh "$(project_name)" "$(build_directory)"
13 @$(sparkle_path)/bin/generate_appcast --account $(sparkle_account) $(build_directory)
16 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
19 mkdir -p $(build_directory)
25 swift format lint -r .
27 .PHONY: package prepare archive generate_appcast package distribute format lint