changeset 69:74603a3f3ec5

fix
author Alain Mazy <am@orthanc.team>
date Tue, 15 Apr 2025 16:56:11 +0200
parents fdf64d580096
children 4dbc92d52306
files Resources/CreateOHIFDist/build.sh
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Resources/CreateOHIFDist/build.sh	Tue Apr 15 15:32:44 2025 +0200
+++ b/Resources/CreateOHIFDist/build.sh	Tue Apr 15 16:56:11 2025 +0200
@@ -37,7 +37,8 @@
 APP_CONFIG=config/default.js QUICK_BUILD=true PUBLIC_URL=./ bun run build
 
 # patch files where the PUBLIC_URL was not taken into account
-sed -i 's|/dicom-microscopy-viewer/dicomMicroscopyViewer.min.js|./dicom-microscopy-viewer/dicomMicroscopyViewer.min.js|g' app.bundle.*.js
-sed -i 's|/assets/android-chrome-|./assets/android-chrome-|g' manifest.json
+# Note that, for the microscopy, this is currently not working: https://github.com/OHIF/Viewers/issues/4906
+sed -i 's|/dicom-microscopy-viewer/dicomMicroscopyViewer.min.js|./dicom-microscopy-viewer/dicomMicroscopyViewer.min.js|g' /tmp/$1/platform/app/dist/app.bundle.*.js
+sed -i 's|/assets/android-chrome-|./assets/android-chrome-|g' /tmp/$1/platform/app/dist/manifest.json
 
 cp -r /tmp/$1/platform/app/dist/* /target