Skip to content

Commit ad2e081

Browse files
Remove git submodule for ohif (#808)
Signed-off-by: Sachidanand Alle <[email protected]>
1 parent b94ac7b commit ad2e081

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
[submodule "plugins/ohif/Viewers"]
2-
path = plugins/ohif/Viewers
3-
url = https://github.com/OHIF/Viewers.git

plugins/ohif/Viewers

Lines changed: 0 additions & 1 deletion
This file was deleted.

plugins/ohif/build.sh

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,20 @@ echo "My Dir: ${my_dir}"
2424
echo "Installing OHIF at: ${install_dir}"
2525

2626
cd ${my_dir}
27-
git submodule update --init
28-
27+
rm -rf Viewers
28+
git clone https://github.com/OHIF/Viewers.git
2929
cd Viewers
30+
git checkout 460fdeb534cd94bff55892c8e3d7100ccf8957de
3031

3132
# Viewers/platform/viewer/public/config/default.js
32-
git checkout -- ./platform/viewer/public/config/default.js
33+
#git checkout -- ./platform/viewer/public/config/default.js
3334
sed -i "s|routerBasename: '/'|routerBasename: '/ohif/'|g" ./platform/viewer/public/config/default.js
3435
sed -i "s|name: 'DCM4CHEE'|name: 'Orthanc'|g" ./platform/viewer/public/config/default.js
3536
sed -i "s|https://server.dcmjs.org/dcm4chee-arc/aets/DCM4CHEE/wado|/proxy/dicom/wado|g" ./platform/viewer/public/config/default.js
3637
sed -i "s|https://server.dcmjs.org/dcm4chee-arc/aets/DCM4CHEE/rs|/proxy/dicom|g" ./platform/viewer/public/config/default.js
3738

3839
# Viewers/platform/viewer/.env
39-
git checkout -- ./platform/viewer/.env
40+
#git checkout -- ./platform/viewer/.env
4041
sed -i "s|PUBLIC_URL=/|PUBLIC_URL=/ohif/|g" ./platform/viewer/.env
4142

4243
# monailabel plugin
@@ -45,7 +46,7 @@ rm monai-label
4546
ln -s ../../monai-label monai-label
4647
cd ..
4748

48-
git checkout -- ./platform/viewer/src/index.js
49+
#git checkout -- ./platform/viewer/src/index.js
4950
sed -i "s|let config = {};|import OHIFMONAILabelExtension from '@ohif/extension-monai-label';\nlet config = {};|g" ./platform/viewer/src/index.js
5051
sed -i "s|defaultExtensions: \[|defaultExtensions: \[OHIFMONAILabelExtension,|g" ./platform/viewer/src/index.js
5152

@@ -55,16 +56,17 @@ rm -rf ./Viewers/platform/viewer/dist
5556
QUICK_BUILD=true yarn run build
5657

5758
# Reset if you want to run directly from yarn run dev:orthanc (without monailabel server)
58-
git checkout -- platform/viewer/.env
59-
git checkout -- platform/viewer/public/config/default.js
60-
git checkout -- yarn.lock
59+
#git checkout -- platform/viewer/.env
60+
#git checkout -- platform/viewer/public/config/default.js
61+
#git checkout -- yarn.lock
62+
6163
cd ..
6264

6365
rm -rf ${install_dir}
6466
mv ./Viewers/platform/viewer/dist ${install_dir}
6567
echo "Copied OHIF to ${install_dir}"
6668

6769
rm -rf Viewers
68-
git restore Viewers
70+
#git restore Viewers
6971

7072
cd ${curr_dir}

0 commit comments

Comments
 (0)