Mercurial > hg > orthanc-stone
view Platforms/Wasm/build-web.sh @ 267:89d02de83c03 am-2
added declaretion of messages handled/emitted
author | am@osimis.io |
---|---|
date | Wed, 22 Aug 2018 14:59:20 +0200 |
parents | b4642964c355 |
children |
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) wasmRootDir=$(pwd) samplesRootDir=$(pwd)/../../Applications/Samples/ outputDir=$wasmRootDir/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/OrthancStoneSimpleViewer.js $outputDir cp $currentDir/build/OrthancStoneSimpleViewer.wasm $outputDir # cat ../wasm/build/wasm-app.js $currentDir/../../../orthanc-stone/Platforms/WebAssembly/defaults.js > $outputDir/app.js cd $currentDir