diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2024-09-14 18:07:50 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2024-09-14 18:07:50 +0200 |
| commit | 578c47516baabf4cdcb3edb54f6e397a47032dd5 (patch) | |
| tree | 1b06288750ceb9466381ffe569593f7febdb6e5e /Makefile | |
| parent | 4b9281467f2794aa096929d665f5f9536152411c (diff) | |
Add sparkle
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..dd8bf56 --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +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) + +.PHONY: package prepare archive generate_appcast package distribute |