Skip to content

Commit

Permalink
makefile update
Browse files Browse the repository at this point in the history
  • Loading branch information
AshishRastogiAtExotel committed May 20, 2024
1 parent b2c3729 commit 5c36948
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Exotel-Voice-Sample/Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
PWD=$(shell pwd)
get_latest_version_cmd := curl --silent https://github.com/exotel/exotel-voip-sdk-ios/releases | grep -o '\/tag\/.*' | awk -F'[<>]' '{print $$2}' | head -n 1
EXOTEL_SDK_VERSION := $(shell $(get_latest_version_cmd))
GIT_URL := https://github.com/exotel/exotel-voip-sdk-ios/releases/download/$(EXOTEL_SDK_VERSION)/ExotelVoice.-$(EXOTEL_SDK_VERSION).xcframework.zip
GIT_URL := https://github.com/exotel/exotel-voip-sdk-ios/releases/download/$(EXOTEL_SDK_VERSION)/ExotelVoice-$(EXOTEL_SDK_VERSION).tar.gz

clean :
rm -rf ExotelVoice.xcframework
deps: clean
curl -L $(GIT_URL) -o ExotelVoice.xcframework.zip
unzip -o ExotelVoice.xcframework.zip
rm -rf *.zip
curl -L $(GIT_URL) -o ExotelVoice.tar.gz
tar -xzf ExotelVoice.tar.gz
rm -rf *.tar.gz
rm -rf __MACOSX

echo "Latest version: $latest_version"

0 comments on commit 5c36948

Please sign in to comment.