From 96837f6791a0d4b134717be561ba494bc378bb09 Mon Sep 17 00:00:00 2001 From: Brian Stafford Date: Tue, 12 Nov 2024 10:13:47 -0600 Subject: [PATCH] don't rebuild web assets for release branch builds --- client/cmd/bisonw-desktop/pkg/pkg-darwin.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/client/cmd/bisonw-desktop/pkg/pkg-darwin.sh b/client/cmd/bisonw-desktop/pkg/pkg-darwin.sh index d3b25d610f..280c221b40 100755 --- a/client/cmd/bisonw-desktop/pkg/pkg-darwin.sh +++ b/client/cmd/bisonw-desktop/pkg/pkg-darwin.sh @@ -82,12 +82,14 @@ function prepare() { } # Build the webpack bundle prior to building the webserver package, which embeds -# the files. -pushd ../../../webserver/site -go generate # just check, no write -npm ci -npm run build -popd +# the files. Don't do this for release builds because the assets are committed. +if [ "${META}" != "release" ]; then + pushd ../../../webserver/site + go generate # just check, no write + npm ci + npm run build + popd +fi function build_targets() { for TARGET in ${TARGETS}; do