Skip to content

Commit

Permalink
don't rebuild web assets for release branch builds (#3075)
Browse files Browse the repository at this point in the history
  • Loading branch information
buck54321 authored Nov 12, 2024
1 parent e5772ba commit 8ab29ba
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions client/cmd/bisonw-desktop/pkg/pkg-darwin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8ab29ba

Please sign in to comment.