From 74513643eb21e98a544f0e1ac8de860fe8d92d4c Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Wed, 26 Sep 2018 11:09:00 +0200 Subject: [PATCH] Componentize podspec version --- OpenSSL-Apple.podspec.template | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/OpenSSL-Apple.podspec.template b/OpenSSL-Apple.podspec.template index 601c2da..bb5e6e5 100644 --- a/OpenSSL-Apple.podspec.template +++ b/OpenSSL-Apple.podspec.template @@ -1,15 +1,18 @@ Pod::Spec.new do |s| + openssl_version = "%OPENSSL-VERSION%" + script_version = "v2" + s.name = "OpenSSL-Apple" - s.version = "%OPENSSL-VERSION%" + s.version = "#{openssl_version}-#{script_version}" s.summary = "A script for compiling OpenSSL for Apple Devices" s.authors = "Felix Schulze", "Davide De Rosa" s.homepage = "https://github.com/keeshux/openssl-apple.git" - s.source = { :git => s.homepage.to_s, :tag => "v2" } + s.source = { :git => s.homepage.to_s, :tag => script_version } s.license = { :type => 'Apache', :file => 'LICENSE' } s.prepare_command = <<-CMD -./build-libssl.sh --version=#{s.version} +./build-libssl.sh --version=#{openssl_version} ./create-openssl-framework.sh dynamic CMD