comparison Resources/CreateOHIFDist/build.sh @ 0:39585ba26f20

initial commit
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 15 Jun 2023 09:48:46 +0200
parents
children c34ecc350b32
comparison
equal deleted inserted replaced
-1:000000000000 0:39585ba26f20
1 #!/bin/bash
2
3 # SPDX-FileCopyrightText: 2023 Sebastien Jodogne, UCLouvain, Belgium
4 # SPDX-License-Identifier: GPL-3.0-or-later
5
6 # OHIF plugin for Orthanc
7 # Copyright (C) 2023 Sebastien Jodogne, UCLouvain, Belgium
8 #
9 # This program is free software: you can redistribute it and/or
10 # modify it under the terms of the GNU General Public License as
11 # published by the Free Software Foundation, either version 3 of the
12 # License, or (at your option) any later version.
13 #
14 # This program is distributed in the hope that it will be useful, but
15 # WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 # General Public License for more details.
18 #
19 # You should have received a copy of the GNU General Public License
20 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21
22 set -ex
23
24 if [ "$1" = "" ]; then
25 echo "Please provide the source package of OHIF"
26 exit -1
27 fi
28
29 cd /tmp/
30 tar xvf /source/$1.tar.gz
31
32 cd /tmp/$1
33 yarn install --frozen-lockfile
34 QUICK_BUILD=true PUBLIC_URL=./ yarn run build
35
36 cp -r /tmp/$1/platform/app/dist/* /target