Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
ba41efa8
Commit
ba41efa8
authored
Nov 28, 2016
by
Péter Szilágyi
Committed by
GitHub
Nov 28, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3362 from karalabe/cocoapods-fix-3000
build: use single CocoaPods package, pre-release dev builds
parents
665bb43a
f81660b6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
ci.go
build/ci.go
+5
-7
pod.podspec
build/pod.podspec
+1
-1
No files found.
build/ci.go
View file @
ba41efa8
...
@@ -826,13 +826,12 @@ func doXCodeFramework(cmdline []string) {
...
@@ -826,13 +826,12 @@ func doXCodeFramework(cmdline []string) {
// Prepare and upload a PodSpec to CocoaPods
// Prepare and upload a PodSpec to CocoaPods
if
*
deploy
!=
""
{
if
*
deploy
!=
""
{
meta
:=
newPodMetadata
(
env
,
archive
)
meta
:=
newPodMetadata
(
env
,
archive
)
build
.
Render
(
"build/pod.podspec"
,
meta
.
Name
+
"
.podspec"
,
0755
,
meta
)
build
.
Render
(
"build/pod.podspec"
,
"Geth
.podspec"
,
0755
,
meta
)
build
.
MustRunCommand
(
"pod"
,
*
deploy
,
"push"
,
meta
.
Name
+
"
.podspec"
,
"--allow-warnings"
,
"--verbose"
)
build
.
MustRunCommand
(
"pod"
,
*
deploy
,
"push"
,
"Geth
.podspec"
,
"--allow-warnings"
,
"--verbose"
)
}
}
}
}
type
podMetadata
struct
{
type
podMetadata
struct
{
Name
string
Version
string
Version
string
Commit
string
Commit
string
Archive
string
Archive
string
...
@@ -865,14 +864,13 @@ func newPodMetadata(env build.Environment, archive string) podMetadata {
...
@@ -865,14 +864,13 @@ func newPodMetadata(env build.Environment, archive string) podMetadata {
}
}
}
}
}
}
name
:=
"Geth"
version
:=
build
.
VERSION
()
if
isUnstableBuild
(
env
)
{
if
isUnstableBuild
(
env
)
{
name
+=
"Develop"
version
+=
"-unstable."
+
env
.
Buildnum
}
}
return
podMetadata
{
return
podMetadata
{
Name
:
name
,
Archive
:
archive
,
Archive
:
archive
,
Version
:
build
.
VERSION
()
,
Version
:
version
,
Commit
:
env
.
Commit
,
Commit
:
env
.
Commit
,
Contributors
:
contribs
,
Contributors
:
contribs
,
}
}
...
...
build/pod.podspec
View file @
ba41efa8
Pod
::
Spec
.
new
do
|
spec
|
Pod
::
Spec
.
new
do
|
spec
|
spec
.
name
=
'
{{.Name}}
'
spec
.
name
=
'
Geth
'
spec
.
version
=
'{{.Version}}'
spec
.
version
=
'{{.Version}}'
spec
.
license
=
{
:type
=>
'GNU Lesser General Public License, Version 3.0'
}
spec
.
license
=
{
:type
=>
'GNU Lesser General Public License, Version 3.0'
}
spec
.
homepage
=
'https://github.com/ethereum/go-ethereum'
spec
.
homepage
=
'https://github.com/ethereum/go-ethereum'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment