Pick version from shared file

Reuse for podspec.
This commit is contained in:
Davide De Rosa 2018-09-23 15:33:39 +02:00
parent 657cb566cd
commit 4cbf935dea
3 changed files with 4 additions and 3 deletions

View File

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

1
ci/VERSION Normal file
View File

@ -0,0 +1 @@
1.1.0

View File

@ -1,6 +1,6 @@
#!/bin/sh
VERSION="1.1.0"
PWD=`dirname $0`
VERSION=`cat $PWD/VERSION`
BUILD=`git rev-list HEAD --count`
agvtool new-marketing-version $VERSION
agvtool new-version $BUILD