diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2024-09-16 12:10:02 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2024-09-16 12:10:02 +0200 |
| commit | 4e7e11cfd56adfa14a557c76e192ff3148cd2842 (patch) | |
| tree | f7e61dd1ec2ba76535b4650e6e5b960f337a88f0 /Makefile | |
| parent | 9acbbf34f8183ead1f2a12e60ecb919d5b3fec07 (diff) | |
3.0.03.0.0
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 22 |
1 files changed, 20 insertions, 2 deletions
@@ -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 |