Mercurial > hg > orthanc-stone
view Applications/Samples/build-web.sh @ 311:3b29c9c77d9b am-callable-and-promise
Close branch am-callable-and-promise
author | Alain Mazy <am@osimis.io> |
---|---|
date | Tue, 02 Oct 2018 10:15:36 +0200 |
parents | be2660b6e40a |
children | daa04d15192c |
line wrap: on
line source
#!/bin/bash set -e # 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