Skip to content

Commit

Permalink
fix(js): track hash of vue-vtk-js as well
Browse files Browse the repository at this point in the history
Similar to offline_viewer.html we track and report mismatched hash
of all external dependencies.
see also #70
  • Loading branch information
ChristosT authored and jourdain committed May 6, 2024
1 parent eb8461a commit c82ffec
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .externals.sha256
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
b757777855acdc69644186c0678fb8f15cd28614fc96454e567ee81ae57ff3be ./trame_vtk/tools/static_viewer.html
9916a1d1889d8aa24a2fa946a263ba9700d7ec2940de992efcb449e6b9604fcd ./trame_vtk/modules/common/serve/trame-vtk.js
5 changes: 2 additions & 3 deletions .fetch_externals.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ set -e

mkdir -p ./trame_vtk/modules/common/serve
curl https://unpkg.com/vue-vtk-js@3.2.1 -Lo ./trame_vtk/modules/common/serve/trame-vtk.js
# echo 19e7c20470b952cc7b38f1434180b5ec ./trame_vtk/modules/common/serve/trame-vtk.js | md5sum -c --status && echo OK
curl https://kitware.github.io/vtk-js/examples/OfflineLocalView/OfflineLocalView.html -Lo ./trame_vtk/tools/static_viewer.html

if ! sha256sum --check .static_viewer.sha256 ; then
echo "Hash for static_viewer.html differs, please update .static_viewer.sha256"
if ! sha256sum --check .externals.sha256 ; then
echo "Hash(es) for externals differs, please update .externals.sha256"
fi
1 change: 0 additions & 1 deletion .static_viewer.sha256

This file was deleted.

0 comments on commit c82ffec

Please sign in to comment.