From 759dc46f11d9d34e91b4a2446dfbe1e723baa3e8 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sun, 5 Nov 2023 00:22:24 -0600 Subject: [PATCH] chore: run go generate ./... for all builds --- tinygo-build-linux.sh | 2 ++ tinygo-build-macos.sh | 2 ++ tinygo-build-windows.ps1 | 4 +++- tinygo-build-windows.sh | 2 ++ 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/tinygo-build-linux.sh b/tinygo-build-linux.sh index 06cebe2..fad0859 100644 --- a/tinygo-build-linux.sh +++ b/tinygo-build-linux.sh @@ -31,6 +31,8 @@ fn_package() { ( echo "$my_bin.tar.xz" ); } +go generate ./... + export GOAMD64=v1 export GOARCH=amd64 fn_package diff --git a/tinygo-build-macos.sh b/tinygo-build-macos.sh index 9886faa..8811599 100644 --- a/tinygo-build-macos.sh +++ b/tinygo-build-macos.sh @@ -30,6 +30,8 @@ fn_package() { ( echo "$my_bin.tar.xz" ); } +go generate ./... + export GOAMD64=v2 export GOARCH=amd64 fn_package diff --git a/tinygo-build-windows.ps1 b/tinygo-build-windows.ps1 index 5bafec1..646e15d 100644 --- a/tinygo-build-windows.ps1 +++ b/tinygo-build-windows.ps1 @@ -21,7 +21,9 @@ function fn_package() { Compress-Archive "$my_bin" "$my_bin.zip" Write-Output "$my_bin.zip" - } +} + +go generate ./... $Env:GOAMD64 = "v1" $Env:GOARCH = "amd64" diff --git a/tinygo-build-windows.sh b/tinygo-build-windows.sh index 810f79c..9a4ddcd 100644 --- a/tinygo-build-windows.sh +++ b/tinygo-build-windows.sh @@ -32,6 +32,8 @@ fn_package() { ( echo "$my_bin.zip" ); } +go generate ./... + export GOAMD64=v1 export GOARCH=amd64 fn_package