view Applications/Samples/build-web.sh @ 295:b04b13810540 am-2

unified CMakeLists.txt into a single file for WASM/Native + bootstrap Command (to rework) + doc
author am@osimis.io
date Tue, 04 Sep 2018 15:09:42 +0200
parents
children be2660b6e40a
line wrap: on
line source

#!/bin/bash

# this script currently assumes that the wasm code has been built on its side and is availabie in Wasm/build/

currentDir=$(pwd)
samplesRootDir=$(pwd)

outputDir=$samplesRootDir/build-web/
mkdir -p $outputDir

cp $samplesRootDir/Web/index.html $outputDir
cp $samplesRootDir/Web/samples-styles.css $outputDir

cp $samplesRootDir/Web/simple-viewer.html $outputDir
tsc --allowJs --project $samplesRootDir/Web/tsconfig-simple-viewer.json
cp $currentDir/build-wasm/OrthancStoneSimpleViewer.js  $outputDir
cp $currentDir/build-wasm/OrthancStoneSimpleViewer.wasm  $outputDir

cd $currentDir