Skip to content

Commit

Permalink
Trust gsutil on more content-types
Browse files Browse the repository at this point in the history
It appears to use `file -b --mime`. The only file types this gives me
an unexpected result for are glsl and wgsl

https://github.com/GoogleCloudPlatform/gsutil/blob/a872f98b59bad2bb72010afb9b0b90aa91ec5d0c/gslib/utils/copy_helper.py#L1702
  • Loading branch information
ccouzens committed Apr 5, 2024
1 parent fd5f767 commit 5a29fb8
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions build-and-release.bash
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ cp build/rendering-playground.html "build/rendering-playground-${VERSION}.html"
ls -- build

gsutil \
-m \
-h "Content-Type:text/plain" \
cp \
-Z \
Expand All @@ -20,23 +21,11 @@ gsutil \
gs://maze-playground/

gsutil \
-h "Content-Type:application/wasm" \
cp \
-Z \
build/*.wasm \
gs://maze-playground/

gsutil \
-h "Content-Type:application/json" \
-m \
cp \
-Z \
build/*.js.map \
build/*.css.map \
gs://maze-playground/

gsutil \
cp \
-Z \
build/*.js \
build/*.css \
build/*.html \
Expand Down

0 comments on commit 5a29fb8

Please sign in to comment.