Skip to content

Commit

Permalink
build: replace globally v=VERSION for cache busting
Browse files Browse the repository at this point in the history
  • Loading branch information
antobinary committed Aug 25, 2022
1 parent b677996 commit 59e54c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/packages-template/bbb-html5/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ mkdir -p staging/usr/share

# replace v=VERSION with build number in head and css files
if [ -f staging/usr/share/meteor/bundle/programs/web.browser/head.html ]; then
sed -i "s/VERSION/$(($BUILD))/" staging/usr/share/meteor/bundle/programs/web.browser/head.html
sed -i "s/VERSION/$(($BUILD))/g" staging/usr/share/meteor/bundle/programs/web.browser/head.html
fi

find staging/usr/share/meteor/bundle/programs/web.browser -name '*.css' -exec sed -i "s/VERSION/$(($BUILD))/" '{}' \;
find staging/usr/share/meteor/bundle/programs/web.browser -name '*.css' -exec sed -i "s/VERSION/$(($BUILD))/g" '{}' \;

# Compress CSS, Javascript and tensorflow WASM binaries used for virtual backgrounds. Keep the
# uncompressed versions as well so it works with mismatched nginx location blocks
Expand Down

0 comments on commit 59e54c8

Please sign in to comment.