build: fix iOS framework build (#22813)

This fixes a regression introduced in #22804.
This commit is contained in:
Felix Lange 2021-05-04 21:45:45 +02:00 committed by GitHub
parent d107f90d1c
commit 973ad66b49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -972,6 +972,9 @@ func doXCodeFramework(cmdline []string) {
// Create the archive. // Create the archive.
maybeSkipArchive(env) maybeSkipArchive(env)
archive := "geth-" + archiveBasename("ios", params.ArchiveVersion(env.Commit)) archive := "geth-" + archiveBasename("ios", params.ArchiveVersion(env.Commit))
if err := os.MkdirAll(archive, 0755); err != nil {
log.Fatal(err)
}
bind.Dir, _ = filepath.Abs(archive) bind.Dir, _ = filepath.Abs(archive)
build.MustRun(bind) build.MustRun(bind)
build.MustRunCommand("tar", "-zcvf", archive+".tar.gz", archive) build.MustRunCommand("tar", "-zcvf", archive+".tar.gz", archive)