5 Commits

Author SHA1 Message Date
b627949e22 Merge pull request #352 from tibroc/update-bbb-build
update bbb-build container tag
2025-04-29 22:58:19 +00:00
45d13f46cc Merge pull request #350 from tibroc/html5-safari-builds-#348
Html5 safari builds #348
2025-04-02 10:05:53 +00:00
40e54de7f0 use always latest bbb-build version 2025-03-28 21:23:59 +01:00
75f7a1fc26 add safari fix for v3.0.4, closes #348 2025-03-28 16:32:20 +01:00
437022b6bf update bbb-build container tag 2025-03-28 16:30:37 +01:00
2 changed files with 19 additions and 2 deletions

View File

@ -11,7 +11,24 @@ RUN cd /bbb-playback && npm install && npm run-script build
FROM bigbluebutton/bbb-build:$BBB_BUILD_TAG AS builder-html5
COPY --from=src-html5 / /source
RUN cd /source && CI=true npm ci
RUN cd /source && DISABLE_ESLINT_PLUGIN=true npm run build
RUN cd /source && DISABLE_ESLINT_PLUGIN=true npm run build-safari && npm run build
RUN cd /source/dist && \
HASH=$(ls | grep -Eo 'bundle\.[a-f0-9]{20}\.js' | head -n 1 | grep -Eo '[a-f0-9]{20}') && \
if [ -z "$HASH" ]; then \
echo "Bundle hash not found."; \
else \
for FILE in *.safari.js *.safari.js.map; do \
if [[ "$FILE" == *"$HASH"* ]]; then \
continue; \
fi; \
PREFIX="${FILE%%.safari.js*}"; \
SUFFIX="${FILE#*.safari.js}"; \
NEW_NAME="${PREFIX}.${HASH}.safari.js${SUFFIX}"; \
echo "Renaming $FILE$NEW_NAME"; \
mv "$FILE" "$NEW_NAME"; \
done; \
fi
RUN find /source/dist -name '*.js' -exec gzip -k -f -9 '{}' \; \
&& find /source/dist -name '*.css' -exec gzip -k -f -9 '{}' \; \
&& find /source/dist -name '*.wasm' -exec gzip -k -f -9 '{}' \;

View File

@ -36,7 +36,7 @@ function get_tag {
}
# https://hub.docker.com/r/bigbluebutton/bbb-build
BBB_BUILD_TAG=v3.0.x-release--2025-02-06-143818
BBB_BUILD_TAG=v3.0.x-release
docker run \
--rm \