aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-06-20 00:23:59 +0900
committerOphestra <cat@gensokyo.uk>2026-06-20 00:59:47 +0900
commited5cdd38a40e0e121b8bc1c432bbb57ca584f798 (patch)
tree29d2eaee38ae74cd36ac74d18efcc537091543dc /internal
parentf6318304eea92c5a918cd723708fd790fc5d2ecd (diff)
cmd/dist: build hsu separately
This program must be built with cgo disabled, and was missed when migrating build script. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal')
-rw-r--r--internal/rosa/package/hakurei/package.az7
1 files changed, 6 insertions, 1 deletions
diff --git a/internal/rosa/package/hakurei/package.az b/internal/rosa/package/hakurei/package.az
index 2f33d200..b31ea6c4 100644
--- a/internal/rosa/package/hakurei/package.az
+++ b/internal/rosa/package/hakurei/package.az
@@ -48,8 +48,13 @@ go build -trimpath -tags=rosa -o /work/system/libexec/hakurei -ldflags="-s -w
-X hakurei.app/internal/info.buildVersion=$(cat cmd/dist/VERSION)
-X hakurei.app/internal/info.hakureiPath=/system/bin/hakurei
-X hakurei.app/internal/info.hsuPath=/system/bin/hsu
+" ./cmd/hakurei ./cmd/sharefs
+
+echo "Building hsu for $(go env GOOS)/$(go env GOARCH)."
+CGO_ENABLED=0 go build -trimpath -tags=rosa -o /work/system/libexec/hakurei -ldflags="-s -w
+ -buildid=
-X main.hakureiPath=/system/bin/hakurei
-" ./...
+" ./cmd/hsu
echo`;
check = `
echo '##### Testing hakurei.'