Mercurial > hg > orthanc-stone
comparison Applications/Samples/build-web.sh @ 1190:f417a0ae282b
wip: TextLayer with new fonts
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Tue, 26 Nov 2019 15:27:48 +0100 |
parents | 5055031f4a06 |
children |
comparison
equal
deleted
inserted
replaced
1184:848dcba80d81 | 1190:f417a0ae282b |
---|---|
17 | 17 |
18 # files used by all single files samples | 18 # files used by all single files samples |
19 cp "$samplesRootDir/Web/index.html" "$outputDir" | 19 cp "$samplesRootDir/Web/index.html" "$outputDir" |
20 cp "$samplesRootDir/Web/samples-styles.css" "$outputDir" | 20 cp "$samplesRootDir/Web/samples-styles.css" "$outputDir" |
21 | 21 |
22 # build simple-viewer-single-file (obsolete project) | 22 # # build simple-viewer-single-file (obsolete project) |
23 if [[ $target == "all" || $target == "OrthancStoneSimpleViewerSingleFile" ]]; then | 23 # if [[ $target == "all" || $target == "OrthancStoneSimpleViewerSingleFile" ]]; then |
24 cp $samplesRootDir/Web/simple-viewer-single-file.html $outputDir | 24 # cp $samplesRootDir/Web/simple-viewer-single-file.html $outputDir |
25 tsc --project $samplesRootDir/Web/simple-viewer-single-file.tsconfig.json --outDir "$outputDir" | 25 # tsc --project $samplesRootDir/Web/simple-viewer-single-file.tsconfig.json --outDir "$outputDir" |
26 browserify \ | 26 # browserify \ |
27 "$outputDir/Platforms/Wasm/wasm-application-runner.js" \ | 27 # "$outputDir/Platforms/Wasm/wasm-application-runner.js" \ |
28 "$outputDir/Applications/Samples/Web/simple-viewer-single-file.js" \ | 28 # "$outputDir/Applications/Samples/Web/simple-viewer-single-file.js" \ |
29 -o "$outputDir/app-simple-viewer-single-file.js" | 29 # -o "$outputDir/app-simple-viewer-single-file.js" |
30 cp "$currentDir/build-wasm/OrthancStoneSimpleViewerSingleFile.js" $outputDir | 30 # cp "$currentDir/build-wasm/OrthancStoneSimpleViewerSingleFile.js" $outputDir |
31 cp "$currentDir/build-wasm/OrthancStoneSimpleViewerSingleFile.wasm" $outputDir | 31 # cp "$currentDir/build-wasm/OrthancStoneSimpleViewerSingleFile.wasm" $outputDir |
32 fi | 32 # fi |
33 | 33 |
34 # build single-frame | 34 # # build single-frame |
35 if [[ $target == "all" || $target == "OrthancStoneSingleFrame" ]]; then | 35 # if [[ $target == "all" || $target == "OrthancStoneSingleFrame" ]]; then |
36 cp $samplesRootDir/Web/single-frame.html $outputDir | 36 # cp $samplesRootDir/Web/single-frame.html $outputDir |
37 tsc --project $samplesRootDir/Web/single-frame.tsconfig.json --outDir "$outputDir" | 37 # tsc --project $samplesRootDir/Web/single-frame.tsconfig.json --outDir "$outputDir" |
38 browserify \ | 38 # browserify \ |
39 "$outputDir/Platforms/Wasm/wasm-application-runner.js" \ | 39 # "$outputDir/Platforms/Wasm/wasm-application-runner.js" \ |
40 "$outputDir/Applications/Samples/Web/single-frame.js" \ | 40 # "$outputDir/Applications/Samples/Web/single-frame.js" \ |
41 -o "$outputDir/app-single-frame.js" | 41 # -o "$outputDir/app-single-frame.js" |
42 cp "$currentDir/build-wasm/OrthancStoneSingleFrame.js" $outputDir | 42 # cp "$currentDir/build-wasm/OrthancStoneSingleFrame.js" $outputDir |
43 cp "$currentDir/build-wasm/OrthancStoneSingleFrame.wasm" $outputDir | 43 # cp "$currentDir/build-wasm/OrthancStoneSingleFrame.wasm" $outputDir |
44 fi | 44 # fi |
45 | 45 |
46 # build single-frame-editor | 46 # build single-frame-editor |
47 if [[ $target == "all" || $target == "OrthancStoneSingleFrameEditor" ]]; then | 47 if [[ $target == "all" || $target == "OrthancStoneSingleFrameEditor" ]]; then |
48 cp $samplesRootDir/Web/single-frame-editor.html $outputDir | 48 cp $samplesRootDir/Web/single-frame-editor.html $outputDir |
49 tsc --project $samplesRootDir/Web/single-frame-editor.tsconfig.json --outDir "$outputDir" | 49 tsc --project $samplesRootDir/Web/single-frame-editor.tsconfig.json --outDir "$outputDir" |