Mercurial > hg > orthanc-stl
comparison Resources/CreateJavaScriptLibraries/build-o3dv.sh @ 38:970994058acd
building O3DV
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 05 Apr 2024 08:19:54 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
37:2cc9950018ab | 38:970994058acd |
---|---|
1 #!/bin/bash | |
2 | |
3 # SPDX-FileCopyrightText: 2023-2024 Sebastien Jodogne, UCLouvain, Belgium | |
4 # SPDX-License-Identifier: GPL-3.0-or-later | |
5 | |
6 # STL plugin for Orthanc | |
7 # Copyright (C) 2023-2024 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 O3DV" | |
26 exit -1 | |
27 fi | |
28 | |
29 cd /tmp/ | |
30 tar xvf /source/$1.tar.gz | |
31 | |
32 cd /tmp/$1 | |
33 npm install --cache /tmp/npm-cache | |
34 npm run create_dist --cache /tmp/npm-cache | |
35 | |
36 cp -r /tmp/$1/build/engine/o3dv.min.js /target/ |