Skip to content

Commit

Permalink
add archive function for macos
Browse files Browse the repository at this point in the history
Signed-off-by: Yuji Ito <[email protected]>
  • Loading branch information
llamerada-jp committed Jun 15, 2020
1 parent 33515d1 commit fddfab9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,5 +406,9 @@ func (b *build) makeArchive() error {
fname := fmt.Sprintf("libwebrtc-%s-linux-%s.tar.gz", b.chromeVersion, b.targetArch)
command(b.workDir, "tar", "cvzf", fname, "include", "lib")
}
if b.targetOS == "macos" {
fname := fmt.Sprintf("libwebrtc-%s-macos-%s.zip", b.chromeVersion, b.targetArch)
command(b.workDir, "zip", "-r", fname, "include", "lib")
}
return nil
}

0 comments on commit fddfab9

Please sign in to comment.