X-Git-Url: https://git.r.bdr.sh/rbdr/map/blobdiff_plain/e2c37ac1dd2ad562e3d619d39b72a174a2212b67..f93215a7b37e065a0a52a852bb2c35d2a3d77b0b:/Makefile?ds=sidebyside diff --git a/Makefile b/Makefile index c02a227..8d1a3b1 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,22 @@ -swift_version = 5.3 +project_name := Map +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 . @@ -6,4 +24,4 @@ format: lint: swift format lint -r . -.PHONY: format lint docker-build docker-push +.PHONY: package prepare archive generate_appcast package distribute format lint