File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6767 wasm-opt -O3 "$wasm_file" -o "./optimized-wasm/$filename" || cp "$wasm_file" "./optimized-wasm/$filename"
6868 done
6969
70+ # Download JS Wrappers and C# Zip manually since fetch_wasm.sh skips them
71+ curl -sL -o ./optimized-wasm/cdd-ts.js "https://github.com/offscale/cdd-ts/releases/latest/download/cdd-ts.js" || true
72+ curl -sL -o ./optimized-wasm/cdd-java.js "https://github.com/SamuelMarks/cdd-java/releases/latest/download/cdd-java.js" || true
73+ curl -sL -o ./cdd-csharp-wasm.zip "https://github.com/SamuelMarks/cdd-csharp/releases/latest/download/cdd-csharp-wasm.zip" || true
74+
75+ # Force python-all, java, and ts to true in the generated JSON since they are now present
76+ sed -i 's/"python-all": false/"python-all": true/g' cdd-ctl-wasm-sdk/assets/wasm-support.json || true
77+ sed -i 's/"java": false/"java": true/g' cdd-ctl-wasm-sdk/assets/wasm-support.json || true
78+ sed -i 's/"ts": false/"ts": true/g' cdd-ctl-wasm-sdk/assets/wasm-support.json || true
79+
7080 - name : Build cdd-docs-ui
7181 working-directory : ./cdd-docs-ui
7282 run : |
7989
8090 - name : Copy WASM Binaries to Web UI
8191 run : |
82- mkdir -p cdd-web-ui/public/assets/wasm
92+ mkdir -p cdd-web-ui/public/assets/wasm/cdd-csharp
8393 cp cdd-ctl/optimized-wasm/*.wasm cdd-web-ui/public/assets/wasm/ || true
94+ cp cdd-ctl/optimized-wasm/*.js cdd-web-ui/public/assets/wasm/ || true
95+ unzip -q cdd-ctl/cdd-csharp-wasm.zip -d cdd-web-ui/public/assets/wasm/cdd-csharp/ || true
8496 cp cdd-ctl/cdd-ctl-wasm-sdk/assets/wasm-support.json cdd-web-ui/public/assets/wasm-support.json || true
8597
8698 - name : Compute base-href and Build Angular App
You can’t perform that action at this time.
0 commit comments