Skip to content

Commit f81660b

Browse files
committed
build: use single CocoaPods package, pre-release dev builds
1 parent 665bb43 commit f81660b

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

build/ci.go

+5-7
Original file line numberDiff line numberDiff line change
@@ -826,13 +826,12 @@ func doXCodeFramework(cmdline []string) {
826826
// Prepare and upload a PodSpec to CocoaPods
827827
if *deploy != "" {
828828
meta := newPodMetadata(env, archive)
829-
build.Render("build/pod.podspec", meta.Name+".podspec", 0755, meta)
830-
build.MustRunCommand("pod", *deploy, "push", meta.Name+".podspec", "--allow-warnings", "--verbose")
829+
build.Render("build/pod.podspec", "Geth.podspec", 0755, meta)
830+
build.MustRunCommand("pod", *deploy, "push", "Geth.podspec", "--allow-warnings", "--verbose")
831831
}
832832
}
833833

834834
type podMetadata struct {
835-
Name string
836835
Version string
837836
Commit string
838837
Archive string
@@ -865,14 +864,13 @@ func newPodMetadata(env build.Environment, archive string) podMetadata {
865864
}
866865
}
867866
}
868-
name := "Geth"
867+
version := build.VERSION()
869868
if isUnstableBuild(env) {
870-
name += "Develop"
869+
version += "-unstable." + env.Buildnum
871870
}
872871
return podMetadata{
873-
Name: name,
874872
Archive: archive,
875-
Version: build.VERSION(),
873+
Version: version,
876874
Commit: env.Commit,
877875
Contributors: contribs,
878876
}

build/pod.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Pod::Spec.new do |spec|
2-
spec.name = '{{.Name}}'
2+
spec.name = 'Geth'
33
spec.version = '{{.Version}}'
44
spec.license = { :type => 'GNU Lesser General Public License, Version 3.0' }
55
spec.homepage = 'https://github.com/ethereum/go-ethereum'

0 commit comments

Comments
 (0)