forked from OHIF/VTKPlugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
generateStaticSite.sh
executable file
·32 lines (26 loc) · 1.15 KB
/
generateStaticSite.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Build and copy the StandaloneViewer into the static directory
rm -rf build
rm -rf Viewers
mkdir build
git clone https://github.com/OHIF/Viewers.git
cd Viewers/StandaloneViewer
echo $DEPLOY_PRIME_URL
export ROOT_URL=$DEPLOY_PRIME_URL
export METEOR_PACKAGE_DIRS="../../Packages"
cd StandaloneViewer
mkdir -p client/staticSiteSupport
cp -R ../../../staticSiteSupport/startup/* client/staticSiteSupport/
mkdir -p public/plugins/VTKPlugin/lib
cp -R ../../../lib/* public/plugins/VTKPlugin/lib/
mkdir -p public/plugins/VTKPlugin/multiplanarReformatting
cp -R ../../../multiplanarReformatting/* public/plugins/VTKPlugin/multiplanarReformatting/
mkdir -p public/plugins/VTKPlugin/volumeRendering
cp -R ../../../volumeRendering/* public/plugins/VTKPlugin/volumeRendering/
# Temporary: Overwrite the toolbar section to add some custom buttons:
cp ../../../staticSiteSupport/toolbarSection.js client/components/toolbarSection/toolbarSection.js
npm install -g [email protected]
meteor-build-client-fixed --version
curl https://install.meteor.com | /bin/sh
export PATH=$HOME/.meteor:$PATH
meteor npm install
meteor-build-client-fixed ../../../build -u $ROOT_URL --path './'