we're no longer building dynamically, so turn CGO back on, and fix names
This commit is contained in:
parent
a5f300d9f7
commit
f118a1d7a5
1 changed files with 3 additions and 3 deletions
|
@ -25,12 +25,12 @@ AREA_RENAME = {
|
||||||
def build_upload_binary(release: github3.repos.release.Release) -> None:
|
def build_upload_binary(release: github3.repos.release.Release) -> None:
|
||||||
# os.chdir(absolute_path)
|
# os.chdir(absolute_path)
|
||||||
# os.system("go build .")
|
# os.system("go build .")
|
||||||
cmd = f'CGO_ENABLED=0 go build -v -ldflags "-X github.com/lbryio/herald.go/meta.Version={release.name}"'
|
cmd = f'go build -o herald -v -ldflags "-X github.com/lbryio/herald.go/meta.Version={release.name}"'
|
||||||
print(cmd)
|
print(cmd)
|
||||||
# os.system("go build .")
|
# os.system("go build .")
|
||||||
os.system(cmd)
|
os.system(cmd)
|
||||||
with open("./hub", "rb") as f:
|
with open("./herald", "rb") as f:
|
||||||
release.upload_asset("binary", "hub", f)
|
release.upload_asset("binary", "herald", f)
|
||||||
|
|
||||||
|
|
||||||
def get_github():
|
def get_github():
|
||||||
|
|
Loading…
Reference in a new issue