Set podspec version statically

Podspecs are standalone files.

Partially reverts 4cbf935dea.
This commit is contained in:
Davide De Rosa 2018-09-24 16:38:29 +02:00
parent 4582579d42
commit 1d3071bdc4
2 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "TunnelKit"
s.version = File.read("ci/VERSION")
s.version = "1.1.0"
s.summary = "Non-official OpenVPN client for Apple platforms."
s.homepage = "https://github.com/keeshux/tunnelkit"

View File

@ -4,3 +4,6 @@ VERSION=`cat $PWD/VERSION`
BUILD=`git rev-list HEAD --count`
agvtool new-marketing-version $VERSION
agvtool new-version $BUILD
echo "Setting podspec version to $VERSION..."
sed -i "" -E 's@s\.version( +)= "[0-9]+\.[0-9]+\.[0-9]+"$@s.version\1= "'$VERSION'"@g' TunnelKit.podspec