Mercurial > hg > orthanc-ohif
changeset 84:61dfe0cb629b
Updated OHIF to 3.12.0
| author | Alain Mazy <am@orthanc.team> |
|---|---|
| date | Fri, 20 Feb 2026 11:06:19 +0100 |
| parents | 0bb4079b925a |
| children | 51635d3ae75b |
| files | NEWS Resources/CreateOHIFDist.sh Resources/CreateOHIFDist/Dockerfile Resources/CreateOHIFDist/build.sh |
| diffstat | 4 files changed, 26 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/NEWS Fri Jan 02 15:21:52 2026 +0100 +++ b/NEWS Fri Feb 20 11:06:19 2026 +0100 @@ -1,3 +1,10 @@ +Pending changes in the mainline +=============================== + +* Updated OHIF to 3.12.0 +* removed the "BulkDataURI" configuration from the default configuration. + + Version 1.7 (2025-08-12) ========================
--- a/Resources/CreateOHIFDist.sh Fri Jan 02 15:21:52 2026 +0100 +++ b/Resources/CreateOHIFDist.sh Fri Feb 20 11:06:19 2026 +0100 @@ -31,7 +31,7 @@ set -ex if [ "$1" = "" ]; then - PACKAGE=Viewers-3.11.0 + PACKAGE=Viewers-3.12.0 # PACKAGE=Viewers-fix-video-auth-token else PACKAGE=$1
--- a/Resources/CreateOHIFDist/Dockerfile Fri Jan 02 15:21:52 2026 +0100 +++ b/Resources/CreateOHIFDist/Dockerfile Fri Feb 20 11:06:19 2026 +0100 @@ -25,4 +25,5 @@ RUN apt-get -y clean && apt-get -y update && apt-get install -y build-essential python3 && \ apt-get clean && rm -rf /var/lib/apt/lists/* -RUN npm install -g bun \ No newline at end of file +RUN npm install -g bun@1.2.23 +RUN npm install -g lerna@7.4.2 \ No newline at end of file
--- a/Resources/CreateOHIFDist/build.sh Fri Jan 02 15:21:52 2026 +0100 +++ b/Resources/CreateOHIFDist/build.sh Fri Feb 20 11:06:19 2026 +0100 @@ -26,21 +26,30 @@ exit -1 fi -cd /tmp/ +# note: we really copy the build process from the OHIF Dockerfile. +mkdir /tmp/source/ +cd /tmp/source/ tar xvf /source/$1.tar.gz +mkdir /tmp/$1 +cd /tmp/source/$1 + +cp package.json yarn.lock preinstall.js lerna.json /tmp/$1/ +cp --parents ./addOns/package.json ./addOns/*/*/package.json ./extensions/*/package.json ./modes/*/package.json ./platform/*/package.json /tmp/$1/ + cd /tmp/$1 bun pm cache rm -bun install --frozen-lockfile +bun install +bun add ajv@8.12.0 +cd /tmp/source/$1 +cp --link -r . /tmp/$1/ || true # this generates warnings but it is expected ! + +cd /tmp/$1 APP_CONFIG=config/default.js QUICK_BUILD=true PUBLIC_URL=./ bun run show:config APP_CONFIG=config/default.js QUICK_BUILD=true PUBLIC_URL=./ bun run build -# patch files where the PUBLIC_URL was not taken into account -# 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|"/dicom-microscopy-viewer|"./dicom-microscopy-viewer|g' /tmp/$1/platform/app/dist/dicom-microscopy-viewer/dicomMicroscopyViewer.min.js -sed -i 's|"/dicom-microscopy-viewer|"./dicom-microscopy-viewer|g' /tmp/$1/platform/app/dist/dicom-microscopy-viewer/index.worker.min.worker.js +# # patch files where the PUBLIC_URL was not taken into account 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
