Skip to content

Commit

Permalink
Use template for appcast URL.
Browse files Browse the repository at this point in the history
  • Loading branch information
niw committed Feb 18, 2018
1 parent 42a656c commit cabcae2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ TARGET_PATH = $(XCODE_ARCHIVE_BUNDLE_PATH)
APPCAST_ARCHIVE_PATH = $(BUILD_PATH)/$(NAME).app.zip
APPCAST_PATH = $(BUILD_PATH)/appcast.xml
APPCAST_RELEASE_NOTE_PATH = $(BUILD_PATH)/release_note.md
APPCAST_ARCHIVE_URL = "https://github.com/niw/$(NAME)/releases/download/{{bundle_short_version_string}}/$(NAME).app.zip"

.PHONY: all
all: $(TARGET_PATH)
Expand Down Expand Up @@ -66,7 +67,7 @@ $(APPCAST_PATH): $(APPCAST_ARCHIVE_PATH) $(APPCAST_RELEASE_NOTE_PATH) $(TARGET_P
ifdef KEY
scripts/sparkle_appcast appcast \
--key="$(KEY)" \
--url="https://github.com/niw/$(NAME)/releases/download/$(shell scripts/sparkle_appcast info --bundle-short-version-string "$(TARGET_PATH)")/$(NAME).app.zip" \
--url="$(APPCAST_ARCHIVE_URL)" \
--release-note="$(APPCAST_RELEASE_NOTE_PATH)" \
--output "$@" \
"$(APPCAST_ARCHIVE_PATH)"
Expand Down

0 comments on commit cabcae2

Please sign in to comment.