Set podspec version statically
Podspecs are standalone files.
Partially reverts 4cbf935dea
.
This commit is contained in:
parent
4582579d42
commit
1d3071bdc4
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue